From 7a7507d62795efaf5aa7cd9ac3b44b7b29bf27cd Mon Sep 17 00:00:00 2001 From: Bradley Wright Date: Fri, 1 May 2015 11:31:11 +0100 Subject: [PATCH] Add documentation for addLinkedTrackerDomain method --- docs/analytics.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/analytics.md b/docs/analytics.md index e8d6e075..404e3e6c 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -160,3 +160,15 @@ Pull `print-intent.js` into your project, and initialise it after analytics (see ## Error tracking Pull `error-tracking.js` into your project, and initialise it after analytics (see [Create an analytics tracker, above](#create-an-analytics-tracker)), to track JavaScript errors. + +## Tracking across domains + +Once a Tracker instance has been created, tracking across domains can be set up +for pages like: + +```js +GOVUK.analytics.addLinkedTrackerDomain(trackerIdHere, nameForTracker, domainToLinkTo); +``` + +Once this is done hits to that page will be tracked in both your local and the +named tracker, and sessions will persist to the other domain.