# Mautic does not track users when they change from visitor to identified contact

**URL:** <https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824>\
**Category:** General Discussion\
**Created:** [April 21, 2022, 2:51pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824 "2022-04-21T14:51:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnumax](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gnumax/32/7061_2.png) [@gnumax](https://forum.mautic.org/u/gnumax)\
**Post date:** [April 21, 2022, 2:51pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824/1 "2022-04-21T14:51:25Z")

</div>

Hi people & support, 🙂

I will tell you what is happening to me, in case you can give me some idea of what to look for.

I have a Mautic on a server (4.2.1) and a WP with WooCommerce on another server.

I log in as an unidentified user to the store and browse the store. Mautic identifies the “visitor” by IP and does the tracking of what I am visiting on the web.

Without deleting cookie and without changing browser, I log into the store with username/password. The mautic\_id remains the same as I have not changed user\_agent or IP or anything.

After registering, it assigns me another mautic\_id and creates in Mautic a “new” contact to which it adds the initial tracking of registered user, tagged, etc.

_Note_: I use WP Fusion PRO to integrate WooCommerce with Mautic.

If after a while I go back with the same browser, same IP, but logged in as a shopper in the store, it no longer tracks my visits to products, blog, etc.

It is as if Mautic stopped merging the mauitc\_id that I had when I was an unidentified user (visitor) with the mautic\_id of the user already identified as a contact.

Has something like this happened to you? I have several installations of Mautic with 4.1.1 and 4.1.2 and it does not happen to me, only in 4.2.0, so I wanted to rule out that it was not a bug and that it really is a bug in some configuration, although I doubt it.

Thanks for your comments. 🤗

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 21, 2022, 4:13pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824/2 "2022-04-21T16:13:23Z")

</div>

Hello @gnumax,

Can you confirm your perform your test with a browser disconnected from Mautic session?

Pierre

---

<div class="post-metadata">

**Author:** ![gnumax](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gnumax/32/7061_2.png) [@gnumax](https://forum.mautic.org/u/gnumax)\
**Post date:** [April 21, 2022, 4:32pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824/3 "2022-04-21T16:32:22Z")

</div>

> [@pierre\_a](#):
>
> Can you confirm your perform your test with a browser disconnected from Mautic session?

Hi @pierre_a 🙂

Correct, I test from another browser (also from a mobile with another IP and same user/email) and it does not track the previously identified contact.

Thx!

---

<div class="post-metadata">

**Author:** ![gnumax](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gnumax/32/7061_2.png) [@gnumax](https://forum.mautic.org/u/gnumax)\
**Post date:** [April 21, 2022, 5:30pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824/4 "2022-04-21T17:30:43Z")

</div>

Hello Pierre, thank you in advance for your interest in my problem. 🤗

Checked steps of logout/user cache browser&var/cache 👍

We are sending the event mt(‘send’, ‘pageview’, {email: ‘my@email.com’, firstname: ‘John’}); from our WP but Mautic don’t update the contact with this emails and firstname, do you know why Mautic don’t update the contact? we have the mtc\_id 27 in our session of WP and the contact 27 in Mautic are not updated.

Merci!

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 21, 2022, 5:36pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824/5 "2022-04-21T17:36:55Z")

</div>

> [@gnumax](#):
>
> We are sending the event mt(‘send’, ‘pageview’, {email: ‘my@email.com’, firstname: ‘John’}); from our WP but Mautic don’t update the contact with this emails and firstname, do you know why Mautic don’t update the contact? we have the mtc\_id 27 in our session of WP and the contact 27 in Mautic are not updated.

If you are looking for a contact with the e-mail address “[mailto:my@email.com](mailto:my@email.com)” does it exist in your Mautic contact database?

Pierre

---

<div class="post-metadata">

**Author:** ![gnumax](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gnumax/32/7061_2.png) [@gnumax](https://forum.mautic.org/u/gnumax)\
**Post date:** [April 21, 2022, 5:54pm UTC](https://forum.mautic.org/t/mautic-does-not-track-users-when-they-change-from-visitor-to-identified-contact/23824/6 "2022-04-21T17:54:51Z")

</div>

Hi @pierre_a🙂

Advanced Site Tracking: Enabling this option activates some additional tracking methods unique to WP Fusion. When Advanced Site Tracking is active:

If an anonymous visitor on your site is being tracked in Mautic, and later registers an account, submits a form, or makes a purchase, WP Fusion will merge the anonymous tracking data with the new contact record. This gives you a more complete picture of the visitor’s history on your site before they provided an email address.

If a user is logged in to your site, WP Fusion will send a mt(‘send’, ‘pageview’, {“email”:“EMAILADDRESS”} ); event to Mautic’s tracking script, to track pageviews for logged in users in cases where they default Mautic tracking can’t properly identify them.

I rely on the official documentation of the plugin: [Site Tracking Scripts | WP Fusion](https://wpfusion.com/documentation/tutorials/site-tracking-scripts/#soporte-mautic)

And the Mautic documentation 😉

 ![Contact tracking _ Mautic 2022-04-21 19-56-32](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/14113ab9474d5761da70d40a6d44f523eefb14d7.png)

Regards!
