PIWIK integration

  • Trying to post Piwik code into the javascript section

    on LINE 1 I'm getting

    Expected an identifier and instead saw '<'. Missing ";" before statement

    on LINE 2 I'm getting

    Expected an identifier and instead saw 'var'. Unrecoverable syntax error. (15% Scanned)

    <script type="text/javascript">
    var _paq = _paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" /
    (function() {
    var u="//piwik.********.com/piwik/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '1']);
    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);

  • Admin

    Try without the script tags.

  • Hi I did that but Piwik is not picking up any traffic

    On my browser with ad blocker piwik is showing up as a tracker but nothing is getting registered.



Looks like your connection to NodeBB was lost, please wait while we try to reconnect.