Tracking strategies
Overview
Not all audiences are the same, and visitors in different cohorts exhibit different behavior. Sitefinity Insight gives you the flexibility to change how the tracking cookie behaves when your visitors log in - become a known contact, and log out - become anonymous visitors again. You configure this behavior to improve the mapping between your visitors to contacts and which actions are attributed to different customer journeys.
The following sections provide an detailed description of the configuration options, how they interact, and when to use them.
Persist
In Persist mode, the tracking cookie is persisted in the user agent (browser).
If a visitor logs in, then log out, and another visitor logs in, they will be mapped to the same contact.
Persist is the default behavior.
Use the following diagram to get a better picture of the relationship between the user actions (on the left), and how Sitefinity Insight maps their journey. In this scenario, we have:
- An anonymous (logged out) visitor
- Who logs in, becoming a known contact,
- A second anonymous user,
- Who logs in, becoming a known contact.
In this scenario, these users share the persisted cookie and Sitefinity Insight maps their actions into one customer journey (shown on the right).
RECOMMENDATION: We recommend using this mode, unless your audience has very specific behavior.
Renew
In Renew mode when the Remove tracking cookie on logout option is selected, Sitefinity Insight creates a new tracking cookie and a new mapping to contact on every login.
If a visitor logs in and logs out and another visitor logs in, the two visitors will be mapped to different contacts.
You use this setting when multiple people are sharing the same user agent.
In Renew mode when the Remove tracking cookie on logout option is unchecked, Sitefinity Insight still distinguishes different contacts, but the anonymous visitors’ data between the two login sessions are included in the respective customer journeys.
Use the following diagram to get a better picture of the relationship between the user actions (on the left), and how Sitefinity Insight maps their journey. In this scenario, we have:
- A logged in (a known contact) visitor,
- Who logs out, becoming an anonymous visitor,
- A second physical user who is logged in and is a known contact,
- Who logs out, becoming an anonymous visitor.
In this scenario, Sitefinity Insight maps the first two visitors into one customer journey, and the last two visitors – into a separate customer journey (shown on the right).
RenewOnlyForNewUserLogin
In RenewOnlyForNewUserLogin mode, Sitefinity Insight creates a new tracking cookie only if the currently logged visitor differs from the last known one.
Therefore, if a contact logs out and then logs in again, she is recognized as the same contact. However, if a contact logs out, and another visitor logs in, the second visitor is recognized as a new contact and a separate mapping is created.
However, there are differences in the behavior, depending on the Remove tracking cookie on logout option.
- If the Remove tracking cookie on logout option is selected, and the user logs out, the anonymous traffic is processed on next user login. If the user, who logs in, is the same, Sitefinity Insight maps the anonymous traffic to this user journey. If this is a different user, a new tracking cookie and a new mapping are created and Sitefinity Insight does not attribute this anonymous traffic to the contact journey.
- If the Remove tracking cookie on logout option is not selected, when the contact logs out, the anonymous traffic is attributed to her journey.
Use the following diagram to get a better picture of the relationship between the user actions (on the left), and how Sitefinity Insight maps their journey. In this scenario, we have:
- An anonymous (logged out) visitor
- Who then logs in and becomes a known contact,
- Then logs out again, reverting to an anonymous visitor,
- Who then logs in and becomes a known contact again,
- Then logs out again, reverting to an anonymous visitor,
- A second physical user who logs in and becomes a known contact
In this scenario, Sitefinity Insight maps the first five visitors into one customer journey, and the last one into a separate customer journey (shown on the right).
Configure a strategy
To set up the desired cookie handling strategy, perform the following:
- Log into your Sitefinity CMS backend as administrator.
- Navigate to Administration » Settings » Advanced.
- In the tree on the left, click DigitalExperienceCloudConnector.
- In the Tracking cookie handling on login dropdown, select the strategy.
- Click Save changes to save your changes.