Leah Zorychta
Leah Zorychta

Reputation: 13449

How can I tell if I'm including google analytics twice?

I have a web app and I include google analytics. My active users seems to of spiked and I'm incredibly paranoid that I'm somehow double counting my analytics.

Is there any way to see if I'm doing this?

Upvotes: 0

Views: 2662

Answers (2)

sp89
sp89

Reputation: 418

  • As Nebojsa mentioned, you can inspect source and search for ga.js or analytics.js to see if it's in your application twice.
  • Look through your source code to see if you have the partial rendering in multiple places (ex. header and footer)
  • Setup another Google Analytics account and test locally if its double counting your visits. See this post for setting up GA on localhost
  • Use the Google Analytics Tag Assistant to verify that everything is setup correctly. It will tell you if there are any implementation problems, including multiple tracking codes. It also helps with Adwords, re-marketing and other Google product scripts.
  • Use the Google Analytics Debugger. This would probably be the most helpful to determine if a single hit is being double counted as it walks you though every single function call the analytics urchin makes.

Upvotes: 1

Nebojsa Susic
Nebojsa Susic

Reputation: 1260

just open source in the browser and look-up for code of analitics...par example

_gaq.push(['_setAccount', ...

Upvotes: 0

Related Questions