Error while using piwik tracking code in custom header

Moved Technical Support
  • Re: How To: Piwik and NodeBB

    I tried to use the code mentioned in this topic, but am getting an error in console. Webpage where I added the code is:

    _paq.push() was used but Piwik tracker was not initialized before the piwik.js file was loaded. Make sure to configure the tracker via _paq.push before loading piwik.js. Alternatively, you can create a tracker via Piwik.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order. ["setCustomUrl", ""]

    Can anybody help me come out of this?

Suggested Topics

| | | |