Mautic Community Forums

trackingId lead token in email

Hello,



I’m trying to create a campaign email and I need a unique field to reference for a URL I’m adding to the email. Rather than create a new field with it’s own unique, random value per contact, I was hoping to be able to insert the tracking ID that Mautic generates for each contact, like this http://mydomain.com/followup/user/{trackingId}/, but that field doesn’t come up in the typeahead choices when I start typing the token. I also can’t find it anywhere in the Contact record. Where I do see it is when posting to an external webhook, so I know it’s there in the record somewhere.



My workaround will be to post it to a webhook, and then have the webhook update a Mautic contact field via API, but that seems redundant and unnecessary.



If the trackingId isn’t available, is there another token I can use that is unique for each contact record?



Thanks!

Hello,

I’m trying to create a campaign email and I need a unique field to reference for a URL I’m adding to the email. Rather than create a new field with it’s own unique, random value per contact, I was hoping to be able to insert the tracking ID that Mautic generates for each contact, like this http://mydomain.com/followup/user/{trackingId}/, but that field doesn’t come up in the typeahead choices when I start typing the token. I also can’t find it anywhere in the Contact record. Where I do see it is when posting to an external webhook, so I know it’s there in the record somewhere.

My workaround will be to post it to a webhook, and then have the webhook update a Mautic contact field via API, but that seems redundant and unnecessary.

If the trackingId isn’t available, is there another token I can use that is unique for each contact record?

Thanks!