|
|
Question : Tracking Google Analytics data across domains
|
|
|
|
I have a web site that I am trying to track all the data.
Everything works fine except there's a search form on my website that goes to an external web site. How do I track the info on that external web site?
Is there any way to do that?
I found the following data from Google site but having hard time implementing it - http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html#multipleDomains :
Tracking Across Multiple Domains and Sub-domains In this scenario, you might want to enable tracking across a given domain and its sub-domains, and include a separate domain in the mix. For example, suppose you have an online store and you also want to track visitor and campaign data to your blog. The following shows key tracking code customizations for three example URLs. Primary: www.example-petstore.com
Asynchronous syntax _gaq.push(['_setAccount', 'UA-12345-1']); _gaq.push(['_setDomainName', '.example-petstore.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setAllowHash', false]); Traditional (ga.js) syntax var pageTracker = _gat._getTracker("UA-12345-1"); pageTracker._setDomainName('.example-petstore.com'); pageTracker._setAllowLinker(true); pageTracker._setAllowHash(false); In addition, you would use the _link() and _linkByPost() for any form or links to www.my-example-blogsite.com. This is not required for links to the sub-domain of this site, since the _setDomainName() function defined .example-petstore.com as the domain to enable cookie access for any other subdomains.
Secondary: dogs.example-petstore.com Asynchronous syntax Traditional (ga.js) syntax var pageTracker = _gat._getTracker("UA-12345-1"); pageTracker._setDomainName('.example-petstore.com'); pageTracker._setAllowLinker(true); pageTracker._setAllowHash(false);
Form that I am trying to get the data of: <form action="http://utsa.summon.serialssolutions.com/search/results" method="get"> <input name="spellcheck" type="hidden" value="true" /> <td class="textarea"><input style="font-size:.9em" name="q" size="40" type="text" /></td> <td class="buttons"><input style="color: white; background-color: #F6921E; font-size: 1em" type="submit" value=" Go " /></td> </form>
I am trying to find the # of clicks and also search results if possible before it goes to the EXTERNAL web site. Any thoughts?
|
|
|
|
Answer : Tracking Google Analytics data across domains
|
|
Yes, you will have to use the new code for analytics.
And please read the documentantion I gave on the first comment. It is a small, simple and clean page. Your questions seem to indicate you have not read it. You can build your own category hierarchy so that it makes sense to you.
After setting all up you will find this info in Google Analytics on the left nav bar Content area and Event Tracking subarea. You will only see it 24 hours after the online change,
|
|
|
|