Changing from First-Party to Third-Party Cookies

Prev Next

The Cookie Control plugin converts the client-side cookie (first-party, cookie option 1) into a server-side cookie (third-party, cookie option 3). Visitors who return while the plugin is active keep their everId.


Before You Start

Warning

Switch to server-side cookies only if your Track Domain is a subdomain of your own website. See Browser Cookie Restrictions and Mapp Intelligence.

Switch the cookie option and activate the plugin with its configuration at the same time. The plugin migrates existing cookies only. The cookie setting for your integration method is described in the Configuration section below.

Read the notes on costs and activation in Cookie Control before you start.


Configuration

Choose your integration method:

Set the migration, then activate the plugin:

wtSmart.extension.cookie_control.config({
    action: '1->3',
    // use a date in the future
    lifeTime: '01 Jan 2030 00:00:00'
});
wtSmart.extension.cookie_control.activate();

You do not need the track ID and track domain. All parameters are described in Integration and Activation.

In the same change, set the property cookie to 3 in wtSmart.init.

In the Tag Integration, the plugin is available only as a custom plugin. You enter your configuration in the content of this plugin. Requirements and the plugin file are described in Technical Requirements and Download. The integration is described in Integration and Activation.

In the same change, select the option for server-side cookies (third-party) in the setting Cookie settings of the Mapp Intelligence plugin.

Define the configuration before the first tracking request:

var wtcc_config = {
    // track ID and track domain where the server-side cookie is set
    trackId: '111111111111111',
    trackDomain: 'data.exampleshop.com',
    // use a date in the future
    lifeTime: '01 Jan 2030 00:00:00',
    action: {
        action: '1->3'
    }
};

All parameters are described in Integration and Activation.

In the same change, set the cookie option to 3.


After the Migration

When the integration period agreed with Mapp ends, complete these steps:

  1. Remove the plugin from your website.

  2. Check the share of new and returning visitors in your reports.