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

**URL:** <https://forum.mautic.org/t/smart-url-clarification-help-need-to-associate-pageviews-with-existing-user-from-third-party/22668>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [February 10, 2022, 6:05pm UTC](https://forum.mautic.org/t/smart-url-clarification-help-need-to-associate-pageviews-with-existing-user-from-third-party/22668 "2022-02-10T18:05:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpflanz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tpflanz/32/6827_2.png) [@tpflanz](https://forum.mautic.org/u/tpflanz)\
**Post date:** [February 10, 2022, 6:05pm UTC](https://forum.mautic.org/t/smart-url-clarification-help-need-to-associate-pageviews-with-existing-user-from-third-party/22668/1 "2022-02-10T18:05:18Z")

</div>

**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](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](http://m.searchcentered.com)

[searchcentered.com](http://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](http://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](https://www.mautic.org/blog/developer/tracking-visitor-data-by-smart-url)

- This is my tracking code - [https://i.imgur.com/XsBkrkH.png](https://i.imgur.com/XsBkrkH.png) / view-source:[https://www.searchcentered.com/](https://www.searchcentered.com/)
- This is my test user - [https://i.imgur.com/w2CWhE9.png](https://i.imgur.com/w2CWhE9.png)
- When I visit - [https://www.searchcentered.com/?email=t.pflanz@gmail.com](https://www.searchcentered.com/?email=t.pflanz@gmail.com) in a seperate browser with cleared cookies, no page visits are attributed/logged
- Screencast - [https://i.imgur.com/ddpYLm3.gif](https://i.imgur.com/ddpYLm3.gif) Mautic is open in Chrome. The website is viewed in Firefox
- Just in case it’s relevant, here are my cron jobs - [https://i.imgur.com/6jgjWp0.png](https://i.imgur.com/6jgjWp0.png)

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [February 11, 2022, 10:38pm UTC](https://forum.mautic.org/t/smart-url-clarification-help-need-to-associate-pageviews-with-existing-user-from-third-party/22668/2 "2022-02-11T22:38:14Z")

</div>

After checking your configuration, I visited this site:

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

```

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4e940eaea0901b7d421cf7edb9c1981b97d5c528.png)

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.

---

<div class="post-metadata">

**Author:** ![tpflanz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tpflanz/32/6827_2.png) [@tpflanz](https://forum.mautic.org/u/tpflanz)\
**Post date:** [February 12, 2022, 2:03am UTC](https://forum.mautic.org/t/smart-url-clarification-help-need-to-associate-pageviews-with-existing-user-from-third-party/22668/4 "2022-02-12T02:03:24Z")

</div>

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.
