13 lines
548 B
Text
13 lines
548 B
Text
|
:javascript
|
||
|
var _paq = _paq || [];
|
||
|
_paq.push(["trackPageView"]);
|
||
|
_paq.push(["enableLinkTracking"]);
|
||
|
|
||
|
(function() {
|
||
|
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://#{extra_config.piwik_url}/";
|
||
|
_paq.push(["setTrackerUrl", u+"piwik.php"]);
|
||
|
_paq.push(["setSiteId", "#{extra_config.piwik_site_id}"]);
|
||
|
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
|
||
|
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
|
||
|
})();
|