All Collections
Website Tracking
How to Install the Tracking Script
How to Install the Tracking Script
Rikke Søndergaard avatar
Written by Rikke Søndergaard
Updated this week

How to Install the Tracking Script

As a general rule of thumb, the Tracking Script can be installed in any website as long as it's in the tag or header section.

In this Article

Install the Tracking Script

Locate the Tracking Script

1. Find the Tracking Script by clicking the Profile Icon and go to Settings.

2. Select the Section you want the website data to be stored in.

3. Go to the Tracking Script Tab in the left menu and copy the script.

Now, you're ready to install it in your website.

Tracking script Verification

After setting up a tracking cookie on your website, you can run a Profile search using cookie ID, to verify that the tracking script works properly.

1. Enter the cookie ID and press Search.

2. Click View Profile to view Profile card in Audience.

3. Go to Website interactions to see the Profile's interactions on the website with the tracking script installed.

Run Tracking Script Independently or Connect your own cookie banner

4. Connect your own cookie banner

If you already have a Cookie banner in your website, there's no need to create a new one. Simply connect your Cookie banner to the Tracking Script and start collecting visitor data.

5. Toggle the Run Tracking Script Independently option.

When you turn on this feature, Profiles will be created with their browsing behaviour, and they will get a Cookie consent Event.

6. You may choose to run the Tracking Script only when a certain cookie matches a value. In this case, Profiles will only be created as the conditions are met.

7. Tick the Match cookie value to start tracking box and enter a cookie name, match type and value.

Please refer to your own development team in order to make sure your cookie banner is paired with the Tracking Script.


If you choose to connect your own Cookie banner, it's important that the Cookie banner is enabled in your website and communicating with the Tracking Script.

If your Cookie banner stops appearing in your website, or communicating with the Tracking Script, data collection will not be interrupted but no new Profiles will be created. Profiles' browsing data will still be stored, but no new data will come in. When your Cookie banner starts working again, the Tracking Script will continue to create new Profiles as they provide Cookie consent via your Cookie banner.

If your visitors' cookies expire, existing browsing data will remain in Profiles but no new data will be collected in them. Whenever a new cookie is created, a new Profile will be created. When they've been identified, the two Profiles will merge and the new browsing behaviour will be in the same Profile that contains the previous data. Read more about Profile merge.

Cookies expire according to your Section's Cookie settings and your visitors' browsers and cookie preferences (ITP). Make sure that your Section's Cookie settings are aligned with your data collection efforts to make sure Profiles are up-to-date with their latest browsing behaviour.

About Cookie Lifetime

In the Cookie settings of your Section you can find some additional options as to how data is tracked and stored in APSIS One Profiles, and for how long.

If your own Cookie banner has a specific setting for how long cookies should prevail in visitors' browsers, make sure that you set the Cookie Lifetime in APSIS One to a period of time that is greater than or equal to the one in your Cookie banner.

About Tag Management Systems

You can install the Tracking Script with a Tag Management System (TMS).

The Tracking Script is fully compatible with Google Tag Manager, and any other TMS that support JavaScript snippets.

To install with Google Tag manager, simply add the Tracking Script in the Tags section as a Custom HTML Tag. Make sure that the triggering is set to All Pages.

How to Install the Tracking Script in WordPress

You can install the Tracking Script in WordPress with a Script plugin.

Since WordPress has a variety of options and allows businesses and independent developers to create custom solutions, we suggest that you browse their plugin library and choose a plugin that fits your needs. Take a look at the WordPress plugin library...

The most important aspect is that you install the Tracking Script in the tag or header section, so that it loads as early as possible.

What's Next

Did this answer your question?