mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 23:01:05 -05:00
Analytics crossdomain tracking
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user