Analytics crossdomain tracking

This commit is contained in:
Cathy J. Fitzpatrick
2013-03-22 02:43:49 -06:00
parent cd17c58c27
commit 9dedae601a

View File

@@ -152,8 +152,13 @@ if (!$psim) {
<?php } else { ?>
_gaq.push(['_setDomainName', 'psim.us']);
<?php } ?>
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
if (window.history && history.replaceState && location.search.match(/__utm/)) {
_gaq.push(function() {
history.replaceState(null, '', location.pathname);
});
}
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';