diff options
author | robocoder <anthon.pang@gmail.com> | 2010-10-14 18:02:52 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-10-14 18:02:52 +0400 |
commit | 84d843a40ab9155d0452252cc1fd4d30335fc976 (patch) | |
tree | 25ab8c8738f987c84abe3d8872c5aa262f961923 | |
parent | 865fb15b3322a25f0b13f8ed0ad4a4820688eee4 (diff) |
restore revision history
git-svn-id: http://dev.piwik.org/svn/trunk@3250 59fd770c-687e-43c8-a1e3-f5a4ff64c105
-rw-r--r-- | core/Tracker/javascriptTag.tpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/Tracker/javascriptTag.tpl b/core/Tracker/javascriptTag.tpl new file mode 100644 index 0000000000..f0370aca3d --- /dev/null +++ b/core/Tracker/javascriptTag.tpl @@ -0,0 +1,12 @@ +<!-- Piwik --> +<script type="text/javascript"> +var pkBaseURL = (("https:" == document.location.protocol) ? "https://{$piwikUrl}" : "http://{$piwikUrl}"); +document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); +</script><script type="text/javascript"> +try { + var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$idSite}); + piwikTracker.trackPageView(); + piwikTracker.enableLinkTracking(); +} catch( err ) {} +</script><noscript><p><img src="http://{$piwikUrl}piwik.php?idsite={$idSite}" style="border:0" alt="" /></p></noscript> +<!-- End Piwik Tag --> |