Skip to content

Server-side Tracking Script ​

With server-side tracking, Click2Buy conversions are measured through your Google Tag Manager Server-Side (GTM-SS) container, using our official tag template.

The Click2Buy attribution is stored in a first-party cookie set by your server container on your domain. No Click2Buy script is loaded on your pages: the tag uses the events that your Web GTM container already sends to your server container.

Prerequisites ​

Before starting, you must have:

  • An active and functional GTM Server-Side container.
  • This container hosted on a subdomain of your main site (e.g. sgtm.yoursite.com), so that it can set first-party cookies.
  • A Web GTM container that sends its events to your server container (server_container_url parameter in your Google Tag).

If you don't have this setup, use client-side tracking instead.

Installation ​

The installation guide and the tag template are available on our GitHub repository. The guide walks you through:

  • importing the template into your server container, and creating the tag and its trigger
  • configuring your web container so that it sends all events to your server container
  • publishing and testing your setup with the GTM Preview mode

Once your setup is published, test it as described in the Publishing and Validation section of the installation guide.

Data and privacy ​

Our tag only measures conversions from users redirected by Click2Buy. No personal data is collected.

The first-party cookie only contains an anonymous identifier of the Click2Buy click, used to attribute the conversion to our solution.

Click2Buy complies with the GDPR. For any question about data protection, you can contact our Data Protection Officer (DPO):