A lot of people have Google Analytics installed twice without even realizing it. This is a big problem because then you’ll get two page views logged for every one visit, resulting in artificially inflated stats. 🙁
Luckily it’s pretty easy to see if you have this problem.
- Log out of your site or open a new private browsing window. (This is because some plugins may be set up to not add the code if you’re viewing your site while logged in.)
- Go to your homepage, right click, and select “View Page Source”.
- Do a CTRL+F search for your Google Analytics ID. This will look something like: UA-xxxxxxxx-xx
If you’ve set up Google Analytics correctly (and only once!) then you should get one result.
If you want to double check, you can also do a CTRL+F search for:
This is the snippet of code responsible for adding page views to Google Analytics. Once again, you should only see this once on your page!