Add Piwik javascript
This commit is contained in:
parent
473e30382c
commit
c062a00861
24
js/piwik.js
Executable file
24
js/piwik.js
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* piwik.js
|
||||||
|
*analytics code for lainchan
|
||||||
|
* Usage:
|
||||||
|
* $config['additional_javascript'][] = 'js/piwik.js';
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Piwik -->
|
||||||
|
var _paq = _paq || [];
|
||||||
|
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
||||||
|
_paq.push(["setCookieDomain", "*.lainchan.org"]);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//lainchan.org/piwik/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||||
|
_paq.push(['setSiteId', 3]);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
<!-- End Piwik Code -->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user