Jump to the post that solved this thread.
Not Solved [How To?] Adding tracking code to the AdminCP - Where?
Not Solved

I've just tried this and unfortunately I'm now getting errors within the admincp:

Parse error: syntax error, unexpected 'text' (T_STRING), expecting ',' or ';' in /home/[domain]/public_html/web/admin/inc/class_page.php on line 228

The entire file: http://pastie.org/private/lb9d2uxzkrr7grxspuz3q

Even Notepad++'s syntax highlighting doesn't like the tracking code I put in where most text under the code is gray; even after making it all one line, it still generates errors.

The tracking code is:

<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["setDomains", ["*.boa-clan.com"]]);
  (function() {
    var u="TRACKING URL HERE";
    _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);

Changing "<script type="text/javascript">" to "<script>" also did nothing.

I even tried using the image tracking fallback but that didn't work either
MyBB Extras = Nope.
Jump to the post that solved this thread.

Messages In This Thread
RE: Adding tracking code to the AdminCP - Where? - by groovybluedog - 2016-06-01, 03:26 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)