Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Man, I’ve been looking for a plug-in that could handle cross domain tracking for my websites for a LONG TIME. This plug-in is awesome.

    But just like vzaguski and worldwisewebs have indicated, line 1161 needs to be commented out and line 1156 needs to be updated to remove that last double quote.

    Works like a charm now!

    palbertus…I’m still looking for a better solution too. I actually have this code added in the nav-menu-template.php as described above, but it doesn’t work.

    They way I can tell is that if I click a link in the body of one of my wordpress pages that has the proper onclick syntax added to the hyperlink, I can see the utma, utmb, and utmz values getting passed to the new domain I’m linking too.

    But if I click on a link from the wordpress menu, those values are not getting passed. I’ve checked the code I updated in nav-menu-template.php multiple times and it’s correct as posted here, but doesn’t seem to function for me.

    I’m going to check with a developer. Ideally this would be best handled as plug in. Seems like an easy update though.

    Let me know if you have any success with it, maybe I’m doing something wrong.

    Nevermind. I just figured it out. the backslash is an escape in php so it will literally invoke the single quote.

    Thanks. I checked around and found some other sources using the this.href in the code. But one thing additional you have is backslashes around the ‘_link’. Is that intentional for wordpress? According to the google references, there are no backslashes in their code. I’m not sure if that will make a difference in how this works.

    <a href="http://store.firstfairway.com/golf-clubs-c5.aspx" onclick="_gaq.push(['_link', this.href]); return false;">CLUBS</a>

    \’_link\’ versus ‘_link’?

    Thanks for the info. very helpful. I’m trying to do the same thing with my Google analytics to track across multiple domains.

    I added the code as described above, but how do I know if it’s working? When I hove over the the menu item, it still shows the basic URL and when I click on it, nothing different seems to happen.

    Also does using this.href replicate putting the URL back into the the code the way that $attributes does?

Viewing 5 replies - 1 through 5 (of 5 total)