I need to do multi domain tracking. The old version of GA said to include
onclick="pageTracker._link(this.href); return false;"
in the tag. The new code to include in the tag is
onclick="_gaq.push(['_link', 'https://www.xyz.com/whatever']);
can I change the domain to this.href like the old code so that I can do a universl replace? ie.
onclick="_gaq.push(['_link', this.href]);
I am not familiar with the [] in the function call.
Thanks in advance for your help.
Yes, this should work. We do something nearly identical on one of our sites.
Don’t forget to finish it with the
return falseas in your first example. Here is a test case that should work the same as GA suggests – http://jsbin.com/#previewDocumentation here – http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._link