tracking cookie

Tracking Cookie Remove – Mautic 3 plugin

Fast Reliable Well documented Mautic plugin

Your contacts often use shared devices? Then tracking users logged into your website without being merged must be a problem for you too. Here is the solution! Clear tracking cookies during logout so that next time a user logs in the two won't be merged.

version:3.0.0

Purpose

Vanilla Mautic’s tools provide a solution to track what pages do visitors – even anonymously – visit on our site. 

If you also want to track users on a site where they can log in with a password, it’s a good idea to use the tracking code with the email added as a parameter after the user logged in. Setting the email identifies the contact toward Mautic that allows us to contact the user via Mautic messages. Also at the same time it istructs Mautic to log the following events (page visits) to the current contact.

But if another user logs in, Mautic does not change the IDs of the tracked contact, but treats  as if the two different users were the same, thus merging them.

The cookie of the currently tracked contact is always stored to the Mautic domain. Deleting a cookie on the host page therefore does not change which user Mautic tracks. 

The ‘Tracking Cookie Remove plugin allows you to delete cookies associated with your Mautic domain using a javascript API call. This allows to securely change the tracked contact following a logout or when another user logs in on our site.

How does it work?

Mautic JS API

Tracking takes place on the client side, so the deletion of the cookie must also take place on the client side. The feature is integrated into the Mautic JS API.

What can it be used for?

Untrack

If a user logs out, we can stop tracking by calling the appropriate JS function.

Replacing a Tracked User at login

When a user logs in, you can invoke the JS function to delete the tracking cookies to prevent two different users from being merged when identifying the logged-in user to Mautic with an email address.

Dependencies

The plugin requires phpbolt php extension to be installed in the runtime environment.

Mautic LeadEngine plugins

  • Your cart is empty.

Verziótörténet

3.0.0

  • new function Show version number at the settings page.
  • new function Show version history link at the settings page.
  • optimization New version numbering logic aligned to the major Mautic versions.
  • bugfix

1.0.3

  • new function Add detailed documentation.

1.0.0

  • new function First version.
  • Your cart is empty.

Version history

3.0.0

  • new function Show version number at the settings page.
  • new function Show version history link at the settings page.
  • optimization New version numbering logic aligned to the major Mautic versions.
  • bugfix

1.0.3

  • new function Add detailed documentation.

1.0.0

  • new function First version.