Most Popular
Recently Added
Recently Updated

how to track across sub-domains

Note, if the javascript example is "hidden" below, please refer to this url:

http://www.opentracker.net/forum/how-track-across-sub-domains

If your site contains sub-domains and you want to track visitors across the different sub-domains then you need to register the top level domain (tld) name in Opentracker.

For example widgets.com is the TLD for http://www.widgets.com and plastic.widgets.com

So if you want to track across your sub-domains;

  1. register widgets.com in Opentracker

  2. modify the script as per below

  3. place the modified script in the source? code of your pages

Normally the first segment of script registered for the site "widgets.com" looks like this:

This needs to be modified to:

NOTE: the only change is the addition of the "." before the domain name.

This tells the cookie to attach itself to all sub-domains instead of just the single domain.


Properties ID: 000045   Views: 4658   Updated: 1 day ago