3. Connecting Websites

The final step for our system’s foundation is connecting your websites or applications which will enable our system to track sessions and clicks and place SubID parameters in your affiliate links. This is necessary to trace the conversion data back to the traffic data.

If you are cloaking your affiliate URLs, our system will place the SubID parameter in your affiliate URL during the redirect process.

If you are not cloaking your affiliate URLs, our system will be able to automatically place our click IDs in your affiliate URLs.

When your websites are fully connected, our system will place first party cookies to keep track of the session and determine pages where clicks originate. The lifespan of these first party cookies is 4 hours.

You can add as many websites to your account as you like and you can also add different sections of your websites separately within our interface in case you want to define different pixels for certain website sections.

Requirements for Click Tracking & Attribution

We can only work with your affiliate URLs if you follow some basic rules:

Connecting a website
  • Go to Data Sources > Websites
  • Click on ‘+ Add New Website
  • Copy your website URL and paste it in the field
    • If you add your website domain it will allow our system to track and attribute data for the entire website (recommended).
    • If you add URLs of specific pages you can define different ad network pixels / tags for these specific pages. Attribution and integration will only work for pages that were added to our system (we recommend to add the website domain).
  • Add relevant property IDs and tokens (e.g. Google Analytics, Google Ads, etc.) to utilise our integrations (optional)
  • Under ‘Show more integrations’ you will find further fields for ad network integrations
  • Select whether you use WordPress or not
  • Adjust advanced settings if necessary
  • Click on “Save and Integrate”
Not Using WordPress
  • Copy the JavaScript Snippet and paste it in the header of your website behind the Google Analytics tag. Please consider that via JS tag session and click events are tracked on client side, to track click events on server side please utilise our server side Clickout API.
  • In case you cloak your affiliate links click on the following button to read about our Clickout API endpoints (please don’t hesitate to contact us if you have any questions).
Using WordPress
  • Install our WordPress plugin to connect your website to our system and automatically place the necessary SubIDs
  • Our WordPress plugin is compatible with almost every redirection and cloaking plugin, so you don’t need to do anything else but install our plugin.
  • In case you see that our WordPress plugin is not compatible with your redirect method please make sure to use the ‘wp_redirect’ function, uncloak your outgoing URLs, use our clickout API or get in touch with us to find the best solution.
Consent Management

If your website uses a Consent Management Platform (CMP), you’ll need to consider how the wecantrack script interacts with your visitors’ consent choices. The standard v1 script places a first-party session cookie to track sessions and attribute clicks. This means it should only be loaded after a visitor has given their consent. You can configure your CMP to conditionally load the v1 script based on consent status.

With the v2 script (available in our new interface version), you have more flexibility: you can load a lightweight fallback version of the script for visitors who have not provided consent. This fallback version does not place any cookies and does not track sessions. It will only append click IDs to affiliate URLs and track clickouts.

The v2 script also has built in Cookiebot compatibility. Simply select Cookiebot as your CMP in the Consent tab of your website settings, and the JS tag will automatically adjust its behaviour: loading the full session tracking script when a visitor has granted statistics consent, and falling back to the cookie-free version when they have not.

Please note that while wecantrack provides the tools to support your consent flow, it remains your responsibility to ensure that consent and cookie management is set up correctly on your website in accordance with applicable privacy regulations.

V2 Script (Beta)

Now you can use a new version of our Javascript tag on your websites. The key differences and improvements from V2 script are:

  • Faster loading: Optimized performance ensures minimal impact on your page load times.
  • Automatic Link Monetization: It can be used for link monetisation features
  • Website settings will be loaded automatically through the script
Automatic link Monetisation

Via our new V2 script and wordpress plugin, you now have the option to activate our monetisation technology. This allows you to automatically monetise unmonetised outgoing links to generate commission through supported networks.

This functionality is utilising our Affiliate Link Generator feature, which needs to be set up prior.

 

Connecting a website – Video Guide
Testing session and click tracking

Please note that our dashboard refreshes once an hour, so if you want to test if the website connection works please use the log under Data Sources > Websites (‘Logs’ button of the corresponding website). It will show you the last 100 sessions and clicks registered for that website, thus this section is suited for testing and troubleshooting.

If something is unclear please contact us.