Grow your CSS skills. Land your dream job.

jQuery and Google Analytics (urchin) conflict

  • # March 31, 2010 at 2:43 pm

    Hi Everyone,

    New to this forum after reading Chris’ stuff and using his screencasts for a while, and wow it’s a busy one!

    Has anyone experienced a problem when using jQuery on a site which also uses Google Analytics (specifically the old urchin.js version)? I’m updating a site at the moment that uses it, and have added a nice jQuery FAQ plugin (http://www.dscoduc.com/2008/11/faq-jquery-plugin/), which is looking great. Uploaded it, and the site owner wanted to check that the new FAQ page is now registering in Analytics properly. She went and checked and said that all her stats have gone, including historical ones, and it’s now showing only zeros. Eeek!

    I hastily restored the site to how I found it, and the GA came back up with all the data. Phew!

    After some googling and reading, I understand conflicting JS functions or variables could be to blame. Does anyone know what it is in jQuery (or maybe the jQuery FAQ plugin) that is causing the conflict so I can change it? If anyone has already seen this and knows, it’ll save me a lot of time!

    Many thanks,

    shotodan

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".