Skip to main content

Dynamic URLs for Custom Links

Re: Custom links (on the sidebar)…

It'd be amazing to be able to have dynamic URLs there, depending on whose account is clicking.

For example, when tom@example.com clicks the custom sidebar url, it appends his email as a url parameter, and when sally@example.com clicks the custom sidebar url, it instead appends her email as a parameter; thus, our external services will be able to know who is clicking our external links.

This is very useful for many use-cases

Status: Complete4 comments

Log in to comment and vote

Comments4

  • Heartbeat Support

    Team•

    Nov 6

    Hi Jordan,

    Thanks for sharing this idea! When you add a custom link with Add Link in Settings > Community > Sidebar, you can put {{member.email}} or {{member.id}} in its URL, and Heartbeat fills in the details of whoever clicks it, on web, desktop and in the phone app. For example, https://example.com/?email={{member.email}} opens with the email address of the member who clicked.

    The tags need to be typed exactly like that, with no spaces inside the braces. Blaise, {{member.id}} gives you an ID for the person clicking.

    Eric, these tags don't work in a Course or a post at the moment. There's a separate request for that here, so feel free to add your vote: https://feedback.heartbeat.chat/p/insert-user-info-variables-in-posts-and-course-lessons

    Social Capital System, a link like yours works when you add it as a custom sidebar link. A Sign Up Link also fills in someone's first and last name if you add &firstName= and &lastName= to the end of its URL, but filling in their email or other onboarding questions this way isn't possible at the moment. Feel free to post that as its own request so others can vote on it!

    Let me know how it goes! 😃

  • Social Capital System

    •

    Aug 29

    Please add a pre-populating onboarding fields via URL parameters (e.g., ?email=...&name=...)

    And supporting dynamic links.

    I need to send user identitiy on a external website (because Heatbeat doesn’t have some advanced mechanics, embed is blocked on a apple devices)

    I need to send user identity in link. how i can do that ? https://www.external.com/diagnostic?email={{member.email}} or ?id={{member.id}} not works

  • Eric Granata

    •

    Aug 31, 2025

    +1 – Query string parameters that could be insert into anywhere URLs are accepted would be so rad. Logged in user info, current page info, etc.

    Was hoping to do something like this for an external assignment in a course.

  • Blaise Gulaj

    •

    Mar 27, 2025

    This is very much needed - any ID that we can use to identify the person making the click