Skip to main content
All CollectionsWebsite Tracking
How to Install the Tracking Script
How to Install the Tracking Script
Updated over 7 months ago

How to Install the Tracking Script

Tracking Script can be added in any website as long as it's in the head section.

The Apsis One Tracking script can be installed in three different ways:

  • Source code in CMS header section

  • With Tag Manager Systems

  • Plug in via WordPress


In this Article


Locating Apsis One Tracking Script

1. The Tracking Script is found in Settings. Go to Settings in the top right corner.

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

3. Go to Tracking script tab in the left menu.

4. Click the Copy Tracking script button.

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

Cookie consent

If you choose to connect a Cookie banner from another provider (not Apsis One), it's important that the Cookie banner is enabled in your website and communicating with the Tracking Script.

If the 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 the Cookie banner starts working again, the Tracking Script will continue to create new Profiles as they provide Cookie consent via the Cookie banner.

Cookie expiration

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 behavior will be in the same Profile that contains the previous data. Read more about Profile merge.

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

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 the Cookie banner from another provider 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 the Cookie banner.

Verification of Tracking script

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

By enabling Run Tracking script independently, APSIS One will collect data as soon as the script is triggered on your website. Therefore, this feature requires you have a banner installed on your website, requesting consent from visitors to stay GDPR compliant. This applies to all websites operating in the European market.

1.Connect Cookie banner to the Tracking Script and start collecting visitor data, when consent is given.

2. Toggle the Run Tracking Script Independently option.

With this feature turned on, Profiles will be created with their browsing behavior,

and they will get a Cookie consent Event.

A screenshot of a computer

Description automatically generated

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.

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

A screenshot of a computer

Description automatically generated

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

Complete the tracking setup by adding tracking to the domain.


Install Tracking Script with Google Tag Manager

You can use "Google Tag Manager" to add APSIS tracking code to your website.

  1. Go to Google Tag Manager. Add New Tag.

A screenshot of a computer

Description automatically generated

2. Click on "Choose a tag type to begin setup".

A screenshot of a computer

Description automatically generated

3. Use the search functionality to search for "Custom HTML"

A screenshot of a computer

Description automatically generated

4. In the HTML field within the Custom HTML section, paste the tracking code:

A screenshot of a computer

Description automatically generated

5. Select the "All Pages" and filter "Page View" as the trigger

if you want to count all your pages.

6. Click on the "Save" button

7. Click "Submit" to submit your changes

8. Then click on the "Publish" button


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?