single page application - Angulartics Piwik - Which line(s) should I comment in tracking code? -
i'm using angulartics track single web app. angulartics documentation says in order work need comment automatic tracking lines , quote:
"make sure delete automatic tracking line vendor snippet code!"
// google analytics example ga('send', 'pageview'); // <---- delete line!
since i'm using piwik i'll attach snipet of code provide:
<!-- piwik --> <script type="text/javascript"> var _paq = _paq || []; (function(){ var u=(("https:" == document.location.protocol) ? "https://{$piwik_url}/" : "http://{$piwik_url}/"); _paq.push(['setsiteid', {$idsite}]); _paq.push(['settrackerurl', u+'piwik.php']); _paq.push(['trackpageview']); _paq.push(['enablelinktracking']); 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); })(); </script> <!-- end piwik code -->
my question here is, lines should comment? following ...
_paq.push(['settrackerurl', u+'piwik.php']); _paq.push(['trackpageview']);
?
thanks help
piwik uses following line start tracking page views:
_paq.push(['trackpageview']);
Comments
Post a Comment