Script Tracking Serveur-Side
Introduction
Thanks to the implementation of our conversion tracking script, Click2Buy can capture sales confirmations generated by users coming from our solution. This tracking allows brands to accurately measure the ROI of traffic sent to retailer sites via the Click2Buy Where to Buy solution.
To optimize data collection and ensure data integrity, we recommend a Google Tag Manager Server-Side (GTM-SS) architecture. By moving the implementation server-side, you eliminate reliance on third-party cookies and instead collect more reliable first-party data while respecting user privacy.
⚠️ Essential Prerequisites
Before starting, you must have:
- An active and functional Server-Side GTM (GTM-SS) container.
- This server container must be hosted on a subdomain of your main site (e.g., sgtm.yoursite.com) to allow the creation of first-party cookies.
- A Web GTM (client-side) configuration that sends its data to your server container (using the server_container_url parameter in your Google Tag).
Implementation via Google Tag Manager
We have developed an official Google Tag Manager template to easily implement Click2Buy conversion tracking.
This template allows retailers to set up tracking without writing any custom code. To install the tag, simply refer to our GitHub documentation, which includes:
- Detailed installation instructions
- The template file to import into Google Tag Manager
- Steps to configure the tag
👉All documentation and required files are available here: https://github.com/Click2Buy/gtm-server-template
Domains to whitelist
Our tag uses multiple subdomains to function correctly. If your security policy blocks the loading of external scripts, it is necessary to allow the following domains.
You can allow:
- *.clic2buy.com
- *.clic2drive.com
- *.click2buy.com
Or allow the following specific domains:
rs.clic2buy.com (mandatory) Domain where the tracking script is hosted.
t.clic2buy.com (mandatory) Domain used for our third-party cookies. It allows retrieving the anonymous ID assigned to users from our solution on your site.
analytics.clic2drive.com (mandatory) Domain that allows retrieving basket information via the user ID and recording the sale validation.
Data collected
Our tag only collects basket confirmations coming from Click2Buy redirects.
No personal data is collected.
When a user arrives on the retailer’s site via the Where to Buy solution, an anonymous cookie is created to identify the traffic source and measure conversions.
Click2Buy is GDPR compliant.
For any questions related to data protection, you can contact our DPO:
Artaches Kherounts📧 dpo@click2buy.com📞 +33 3 66 72 29 04