Question

distinct_id is not merged in the URL of In-app notification

  • 25 January 2020
  • 3 replies
  • 116 views

Userlevel 1
Badge +2

Has anyone tried merging distinct_id into the URL of In-app notification? Like this:

ZRLwWXp85GGPD-XehkiDM7jVpxQZhwNhE5llib2gOwRoZ7y0k1AjWsTVdrfVXw4htvDX4UG9boOjQh8dJ52c2G4F4B2W26xpUBWfrWxlViMykrkYQjYwMvsNi0-OfByY2QpeTPsg

 

This help article shows that it works, it also works for me with {{$name}} or other default properties, but distinct_id just leaves an empty space in the resulting URL.

 

I've tried different syntax as per article: {{$distinct_id}} and {{${$distinct_id}}}, neither works.


3 replies

Badge +1

I don’t think you can access distinct id by default.

I would add a custom people property with the value. 

Also you can use the API to run through all your people and copy the distinct id in a people property 

Userlevel 1
Badge +2

Hey @cubez, I believe the distinct_id might not be reachable automatically as a user property to target in messages.

You might need to set the distinct_id as a user property first to be able to target it in the messages. For example, if you have stored the username as a user property, you would be able to target them on your messages. Examples here on how to set user properties https://developer.mixpanel.com/docs/javascript#section-storing-user-profiles

I see how this can be confusing since each user can get a distinct_id assigned to them already but I hope this helps you out!

Userlevel 1
Badge +2

Thanks for the hint, @willyv, however, I got distinct_id merged into email messages just OK.

Hence, the question why it doesn't work for in-app pop-up. I've sent this question to support as well, response pending.

Reply