Analytics - (Cross-site | Cross-domain) tracking - Site linking

Card Puncher Data Processing


cross-site tracking is a tracking technique that permits to follow a user across web sites (ie to follow users from site to site)

Cross-domain measurement makes it possible for Analytics to see sessions on two related sites (such as an ecommerce site and a separate shopping cart site) as a single session. This is sometimes called site linking.


You can follow users from site to site by:

Query String

<a href=""></a>

This method will not be fully accurate especially when the user share the URL. One way to avoid this problem is to append:

  • a timestamp to implement a validity. (ie if the id has a timestamp of more than 3 minutes, the id value is not valid)
  • the user agent string or other browser or device-specific metadata. (if the metadata does not match, you'll know the client ID originated from someone else)



Google Analytics

For Google Analytics, see Set up cross-domain measurement (analytics.js)

ga('create', 'UA-XXXXX-Y', '', {
  'name': 'sampleTracker',
  'allowLinker': true,
  'cookieDomain': ''
ga('sampleTracker.require', 'linker');
ga('sampleTracker.linker:autoLink', ['']);
ga('sampleTracker.send', 'pageview');


Discover More
Cross Site / Cross Domain Request

A request is: same-site if its target's URI's origin's registrable domain is an exact match for the request's initiator's (the parent), and cross-site otherwise. A cross site request is also known...
Devtool Tracking Cookie Identifier Counter
How does a tracking cookie work? A step by step example

This page shows you a basic example of a tracking ... cookie so that you can understand and implement the underlying mechanisms. These cookies are third-party cookie. A tracking cookie is also known...
Card Puncher Data Processing
Web Analytics - Cookie Identifier

A cookie identifier is a cookie that helps identify a consumer. You can follow users from site to site by merging various cookie identifiers into a profile. They are better known as tracking cookie....
Chrome Cookies
What is a Cookie? (HTTP Set-Cookie Header )

A cookie is: a key-value data with some associated that control how the browser should manage them. set by a HTTP response via the set-cookie header The received cookies by the browser can be...
Chrome Cookie Configuration
What is a Third-party (3P) Cookie and how it works?

Third party Cookies are cookies created by other sites (ie that comes from another domain (ie a third party) than the hosted web page. These sites own some of the content, like ads or images, that you...

Share this page:
Follow us:
Task Runner