"Smart URL" Clarification & Help. Need to associate pageviews with existing user from third party

Your software
My Mautic version is: 4.1.2
My PHP version is: 7.4.27
My Database type and version is: https://i.imgur.com/OI6Sny3.png

Your problem

Hi,

I am new to Mautic and I’m trying to wrap my head around a few things. I hope someone is kind enough to help me all the way through.

My Mautic installation is at m.searchcentered.com

searchcentered.com is my tracked domain

How can I add/associate a cookie to an existing contact who has not yet visited a page?

Situation.

  1. A new contact is added in Mautic manually. This person has never visited my website.
  2. I need to send them an email outside of the Mautic system. This email has links to searchcentered.com
  3. When the user clicks the link, I need their pageviews to be associated with the contact/email address that is already in Mautic

I don’t know what I’m doing wrong. I think I have followed the instructions here (but maybe I am misunderstanding them) - https://www.mautic.org/blog/developer/tracking-visitor-data-by-smart-url

After checking your configuration, I visited this site:

https://www.searchcentered.com/?e=test%40test.com

And when I checked what has been sent back to mautic I saw the url:

So tracking script seems to send back the email from the e parameter on the URL. Now please check that email field in your Mautic (Configuration → Custom Fields → email) is publicly updateable and that you always append e parameter in your links before you send it out (just like you see above).

Just in case its not clear e parameter has to be appended to all the links in your email and e parameter will be different for each contact (message).

Hope it helps.
Regards, M.

Whoops. I didn’t mean to delete my last comment.

Thank you. That helped.

The article that I was following seems to have a few mistakes.

1 Like