Can't get outbound tracking to work in GA

1 replies
I made a website in Xsitepro2 and it's working fine. I have Google Analytics installed and also working. I can't the outbound tracking to work though. I am using this setup:

<a href="http://website.com" onClick="javascript: pageTracker._trackPageview("/outgoing/website");">Website</a>

It's not working for me. Any idea what I am doing wrong? I have Hostgator hosting.

I usually have no problems with Google Analytics when I use Wordpress and this method.
#outbound #tracking #work
  • Profile picture of the author victorroestad
    You need to change the quotes inside the parentheses with
    ('/outgoing/website') not ("/outgoing/website").

    Sorry for the short description, but I have not posted enough posts to
    post links, so I can't write down your whole example :p

    Hope it's understandable still (and hope it will make it work...it should)


    Warmest regards,

    Victor A. Roestad

    P.S. I stopped counting the amount of times small stuff like the above
    problem made my javascript code unusable...lol...javascript is so sencitive.
    {{ DiscussionBoard.errors[1516379].message }}

Trending Topics