497 members online now
497 members online now
Welcome to the Official Google Analytics Solutions Community
Find optimization tips and how-to guides written by the Google team and other experts
Top Contributor

Google Analytics pitfalls (and how to avoid them)

In this article, we’re going to cover your basic Google Analytics pitfalls.

It’s easy to run head first into one of these issues and realise too late that you are not collecting proper data about your visitors and how they browse your site.


Let’s go through the list and hopefully you can fix these pitfalls or even prevent them before they happen.


  • Install Google Analytics correctly the first time


That might sound a bit obvious but there is virtually nothing retroactive in Google Analytics data collection and report processing. There are quite a few items to configure to get Google Analytics running smoothly. It’s okay to implement analytics in stages as long as you understand that there are no do-overs for historical data.

Define your data collection strategy and build a robust tagging plan to track everything you want/need to measure.


  • Don’t add the Google Analytics tracking code before defining your data collection strategy


Let’s re-iterate here: you *need* a data collection strategy.

Your data collection strategy translates into a tagging plan, which is a structured list of the elements you want to be able to track with Google Analytics. This means starting with asking yourself the right questions about conversion: How do I measure my site’s success? What data points do I want to capture about my visitors? How can I track complete user journeys?

This generally translates into a document that lists which special tracking such as events for click tracking, form submissions or custom dimensions to track attributes related to a page’s content or a visitor’s profile.

Once you have laid out that tagging plan, you can start deploying your tracking code. For easier installation, it is strongly recommended that you use a tag management system such as Google Tag Manager.

Of course, you could just install the basic tracking code on every single page of your site but that would only provide you with basic data as well. Your analytics mileage may vary.

  • Agencies: don’t create joint Google Analytics accounts for customers


If you work in a digital agency, there is a strong temptation to measure the performance of the client sites you work on. You *will* be tempted to measure multiple client sites with the same agency account in Google Analytics. Unfortunately, there will come a time when said client will want to part ways or gain administrative access to their data. Tensions ensue and customers end up creating their own Google Analytics account, re-tag their entire website and start from scratch with empty reports. To ensure smooth tracking, the best practice is to have the client create their own account and then ask them to delegate access rights for you to work the account as an agency.


  • Don’t forget to add tracking code to new site content!


A common mistake is to assume that new content will be auto-magically tracked by Google Analytics. While most content management systems will allow you to consistently include the Google Analytics tracking code, tactical landing pages - for instance - usually need to be created quickly. Tagging is often forgotten so make sure you use even basic tracking code in your page code. Remember that data collection is not retroactive so make sure your tagging is in place before your site launches!

Using Google Tag Manager is recommended to ensure smooth tracking.


  • Make sure you use the right tracking code!


tracking code.png

When you create your Google Analytics account, you receive a tracking number which can look like the following: UA-1234567-1


The “1234567” part of this ID is your account number. The “-1” part is your property (website or app) reporting database. This number, when found in your pages’ tracking code tells Google Analytics in which database to store the page, session and user data.

If you use the wrong tracking ID, you send data to the wrong property and as a result, your reports will be affected by “holes” in the graphs and tables.


If for some reason you want to use another property (for a development version of the website for instance) make sure you use the production (“live”) property ID.


  • Don't forget to define goals!


Goals allow you to measure Key Performance Indicators (KPIs) such as conversion rates.


google analytics goals.jpg

Most often, you will want to define goals just for key URLs or app screens reached by your visitors but you should remember that other types of goals exist too!

Usually, URL-based goals are meant for macro (strategic) conversions such as your main conversion rate (newsletter signup, form submission, purchase confirmation).

Event-based goals are usually useful for micro-conversions, i.e. conversions that are not crucial to your site's performance but indicate engagement with site features (add to cart, PDF download, zoom on product picture, click on homepage carousel, etc.)


If you don't set goals, you will have a hard time measuring how your site performs against your objectives.


  • Check that e-commerce option box!


If you want to track sales and transactions in Google Analytics, make sure you check the eCommerce options for your view(s). Go for the Enhanced eCommerce option if you can.

Then tag your product pages as well as conversion funnel pages and watch the orders roll in!


  • Internal search is a gold mine


If you have a search engine on your site, you want to be sure to capture what search phrases and keywords your users are looking for.

Identify the URL parameter that captures your search keyword on the search results page and use it in your view settings to enable search.

If i use “q” as the URL parameter containing my search keyword, i need to make sure that my search results page contains that URL parameter, along with the search phrase.


Tip: if your site registers a lot of searches, make sure you check the box to exclude the search parameter from the URL to avoid polluting your page reports.


There you have it!

The above pitfalls should now be easier to avoid by following these recommendations.

You should now be able to turn Google analytics into a tactical asset for measuring the performance of your digital campaigns!

about Julien Coquet

15+ years in web/digital analytics consulting, evangelist for Hub'Scan, an analytics tag quality assurance solution.

Taavi Kalvi
July 2016

Great article Julien. I like that.


One thing that I would add: Always maintain one unfiltered view as data once incorrectly filtered cannot be unfiltered. This way, you always have a complete record of your data.


I have seen it many times when marketers make changes around filters, something goes wrong and they have no way of getting that filtered data back because they don't have a raw data view.

Regarding filters, always test them in the test view before you go live. Smiley Happy




Amy H Rising Star
July 2016

Super helpful! I've shared this with a few of my clients as well. I love the tagging strategy, definitely something that isn't really thought about until after it's implemented. 

Suruchi S
July 2016

Thanks Julien for summarizing the common GA mistakes so well! This is super helpful.

Diane M
July 2016 - last edited July 2016

Hi there just have a couple issues I'm trying to work out.  I'm new to the community, so if I'm posting in the wrong place, please be sure to let me know.

I have customers who need to use Wordpress as they like to maintain and write posts.  But at the same time they are  hoping for some revenue and do have some PayPal implementation for sales.  

Site Search and Tracking within a Blog
For some reason I just can't get my internal site searches to show up in Google Analytics.  Could it be because the customer is using Word Press?  When they are querying through  search, a url parameter of "s" is coming up.  So after identifying that I set it up into the site search parameters in Google Analytics.  But alas no site searches are showing in the control panel.  in fact no pages are showing up at all under search in the control panel.  Hmm.  

Event Tagging

I would like to track when a customer clicks "order by paypal". I realize for most ecommerce sites of course there would be a thank you page. That destination would of course be the clincher for identifying conversions.  But since I'm just using Paypal for the transaction, I don't (maybe a mistake) have the ability to do a thank you  page.   Perhaps PayPal has a final pass back at the website and I'm just unaware of that.  

Any insights will be very much appreciated.  Thank you.



Taavi Kalvi
July 2016 - last edited July 2016

Hi Diane,


Great to hear from you! Smiley Happy


1. I recommend using the search that you can find above first. Maybe you can find the solutions pretty quickly.

2. If you couldn't find, start a discussion here: https://www.en.advertisercommunity.com/t5/Google-Analytics/ct-p/Google_Analytics


We will try to help you but this place is made for comments. Smiley Happy


Hope this helps.


Dave_Davis Top Contributor
September 2016

Good stuff @Julien Coquet

Site search is indeed a gold mine and one that surprisingly rarely tapped. 


Some solid advice there. 

Amrit E
September 2016

My analytics showing visits from analytics.google.com. Can you tell me the story behind this?

Paul H
October 2016

Are there best practices around making sure the .JS script for analytics from Google is authentics and valid?  My concern is that by adding a link to an external JS file, where we don't know at load time what the content is, we would leave our web page open to hackers reading the content of the fields.  Are there best practices to reduce/eliminate this risk?

Julien Coquet Top Contributor
October 2016

Hi @Paul H,


you can use Google's Tag Assistant plug-in to manually check for the presence of the tracking code on each page of your site. 

For large/enterprise sites, consider using a solution such as Hub'Scan (disclaimer: I work there) 

Biranit G
October 2016

Hi Julien,


You certainly seem to know your stuff, so I wonder if you could weigh in on the age-old debate of where to place the analytics tracking code. Google itself seems to offer two conflicting ideas:


According to Google, the code should go before the </header> -- but if I'm using PHP, it should go immediately after <body>:


Screen Shot 2016-10-18 at 16.02.14.png


(The exact same advice appears in the Analytics admin page for the tracking code)


 I don't really understand how the fact that I'm using PHP should change the location of the tracking code and why. And in any event, I am simply wondering what is the BEST PRACTICE - header or body?


Could you please offer your insights as to the pros and cons of each?


Many thanks,