Both Cross-Domain and Sub-Domain Tracking Example
If you will be tracking on both cross and sub domains you can use the example below.
//put on the primary site
woopra.config({
domain: 'primary-domain.com',
cookie_domain: '.primary-domain.com',
cross_domain: 'secondary-domain.com'
});
//put on sub domain
woopra.config({
domain: 'primary-domain.com',
cookie_domain: '.primary-domain.com',
cross_domain: 'secondary-domain.com'
});
//put on cross domain
woopra.config({
domain: 'primary-domain.com',
cookie_domain: '.primary-domain.com',
cross_domain: 'primary-domain.com'
});
Updated almost 5 years ago