Capturing outoing link clicks with Google Analytics

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sticheno
    Member
    • Jul 2008
    • 38
    • 4.2.x

    [Forum] Capturing outoing link clicks with Google Analytics

    I'm wanting to capture outgoing clicks to select sites from my new VB4 forum. I'd like to be the only person (as admin) to be able to add these of course. Doing this manually is simple of course--you add a snippet of javascript to a link as follows:

    Code:
    <a href="http://www.somesitename.com/" onClick="javascript: pageTracker._trackPageview('/outgoing/somesitename');">
    Has anyone found a way to do this through some kind of BB Code or template alteration in VB4? You can't simply add it to the URL BB Code without causing some issues of course. There's reference to a change in and old 3X version referring to this possibility. Thanks in advance, and let me add my thumbs on on VB4. My 19K members adjusted quickly with only minor grousing that comes with any change.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...