We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9930
    • 23 Posts
    I’m trying to track an outbound link using Google Analytics on a ModX site. Instructions from GA indicated to setup the URL like this:

    <a href="http://www.folding-bike-store.com" onClick="javascript: pageTracker._trackPageview("/folding-bike-store.com");" target="_blank">


    After doing this via the HTML tool and saving the page in ModX, the HTML has changed to this:
    <a onclick="javascript: pageTracker._trackPageview(" href="http://www.folding-bike-store.com" target="_blank">


    As a result, tracking is not working.

    I’m a ModX noob. Sorry if I missed something in the documentation or forums. Anyone have insight on this?

    Thanks
    • Which version of MODx are you using ? Evo or Revo ?
        • 9930
        • 23 Posts
        The MODx version on the system info page is blank undecided but the version codename says rev6066. Does that help?
          • 9930
          • 23 Posts
          Did some digging and it appears to be Evolution 1.0.2.

          Anyone have guidance on how to fix this issue?

          Thanks
          • Regardless of that issue, you are running an insecure version of Evo. you should definitely upgrade to the latest ... and it might just have a side effect of fixing your issue.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 9930
              • 23 Posts
              Thanks rthrash. Will do.