Filters and views are the building blocks of your Google Analytics account. Setting up specific Google Analytics views is important for any business, but where should you start?
I am amazed by how many Google Analytics accounts are set up with only one property and view without further modifications.In this post I will guide you through a ton of Google Analytics setup best practices based on my learnings in auditing and setting up Google Analytics accounts.
It’s quite a long post, so make sure to take some notes along the way.
Introduction to Google Analytics Views
I will start with a quick introduction on Google Analytics views and account structure.
There are four levels that correspond with the Google Analytics account structure.
- Google Analytics account user – connected to Google account and email address.
- Analytics account.
- Property.
- View.
Each user can create up to 100 accounts, 50 properties per account and 25 views per property.
Google allows you to set up 25 views on one property so make sure to use them wisely!
Here are a few general recommendations:
- Set up each client in a separate account if you run a consultancy firm. Best way is to let each client create an account and have you added after.
- Use one property per website unless you want to roll up the measurements of multiple websites (roll-up reporting). Or if you want to apply cross-domain tracking across multiple websites you own.
- Set up different properties for apps and websites.
Let’s continue with a list of best practices you can immediately apply to your Google Analytics account(s).
1. Start With a Measurement Plan
I can’t stress this enough – before even thinking about setting up your Google Analytics account structure, you should get your measurement plan ready.
At the end, the return on your optimization efforts is directly tied to your measurement plan.
A couple of things you need to think about in this phase:
- What are my online objectives and KPIs?
- What are my most important Marketing Channels?
- What are the different audiences / personas that I want to serve?
- What does my content structure look like?
- What domains are involved? Just one or more and also subdomains?
- Do I have a separate mobile website or responsive design?
- Do I need to track a mobile app?
- Do I need to merge any CRM data with my Google Analytics data?
- What additional tools do I currently use?
- Do I have any specific reporting automation requirements?
- What companies/individuals need to have access to our data?
- What are the requirements per stakeholder?
Taking your time to answer these questions in-depth will really pay off in the long run.
This information will be a great help in defining what views to set up and what data to collect in each of them.
2. Create Three Basic Views First
Here is an important rule of thumb: always create at least three Google Analytics views in your account:
- Master View
- Test View
- Raw Data View
The Master View is your working view. It means that you usually apply many different filters and some other modifications to get the most accurate and actionable data in your view.
The Test View is very important and serves – like the name already implies – as a testing environment. This is where you test all of your filters first. Of course you could always skip testing a filter, but even experienced users should refrain from doing this.
The Raw Data view is an untouched view where you don’t apply any modifications (like filters) that alter the data collection process. This view allows you to always go back if anything goes wrong in your working view(s).
3. Start With A Test View
“It takes time (as much as 24 hours) before filter effects become visible in your data.”
In my experience the effect of filters is almost directly visible in your Google Analytics data (real-time reporting).
This is why I recommend to start the Google Analytics view setup process with setting up a test view first. By doing this you will ensure no bad data is collected in your other views.
4. Apply a Temporary Filter
Another simple rule is:
“Add a filter (e.g. 99 DONT REMOVE – campaign medium) to ensure that Google Analytics does not collect any data yet in other views”.
Example of steps to take:
- Set up a test view.
- Add a filter that helps prevent data from being stored in the reporting view.
- Copy this view to set up other views.
The point is that you don’t want wrong/bad data to be collected in your working views before you have all settings right.
There are different approaches as you could also get the other view settings (including goals) in the test view configured before copying your initial view. This can be very efficient if you work on a complex Google Analytics configuration.
Remember to always make sure to not modify the data collection process in your raw data view.
5. Set up a Repository of Filters
A often get asked:
“How can I keep a repository of filters without already applying them to my new views?”
Google Analytics allows you to set up and modify filters at the account and view level.
You need to have edit access at the account level to properly work with Google Analytics filters.
The best way to do this, is by setting up an initial overview of filters on the account level.
Later on it is very easy to apply an already defined filter at one or more reporting views.
6. Test Your Filters First
Once again I want to emphasize the importance of testing your filters first. You wouldn’t be the first one messing up your data in your Google Analytics views because you didn’t test the filter first.
Google Analytics comes with a great built-in verify your filter feature which can help in some cases.
However, keep in mind that this doesn’t work on the more advanced filters which you want to apply once you become a more experienced filter and RegEx user.
Another issue with the verification feature is that it doesn’t work on small datasets or in new views where you haven’t stored any data yet.
7. Think About The Order of Filters
The order of your filters does matter.
Here is an example:
- Your site stores a ton of different technical query parameters in the URL.
- Your site pages are accessible with and without a slash (/) at the end.
In this case you want to remove the technical query parameter and probably also to append a slash at the end of all URLs.
You wouldn’t get the desired results if you would first apply a slash at the end of the URL before removing the query parameters.
This isn’t the most easy concept to grasp and it might take some time before you get accustomed to applying advanced filters and being able to properly judge their impact.
8. Test the Bot Filtering Option
It might sound like a no-brainer that you don’t want bot/spam traffic to appear in your account.
Remember, we already talked about keeping a raw data view. It means you don’t want to turn the “Bot Filtering” option on in your raw data view.
You need to set up two views to learn more about the impact of the “Bot Filtering” option on the collection of your data.
In most cases I recommend to run a test for a week. You can then segment and analyze your traffic to find out more about the specific differences in the data collection process of both views.
9. Use the Share Goals Function
Setting up macro and micro goals is one of the most important configurations in Google Analytics.
In general there are two approaches if you want to share a goal in multiple views:
- Set up a test view and test everything before setting up new views and copying all settings (including goals) to them.
- Set up a test view and all other views (but no data collection yet). Test your goals in your “test view” and add them to the other views later on.
What option to choose depends on your workflow and unique situation.
Here is how you can share a goal with other views after you have set it up in your Test View first:
Step 1: navigate to goals and select the goals you want to share.
Step 2: share template link.
Step 3: copy the link that is shown in the next screen.
Step 4: select the view and goal ID where you want the goal to appear.
And this is it!
At the time of writing you can copy multiple goals at once, but apply them to one destination view at a time.
10. Apply Naming Conventions
The same as with campaign tracking, you want to apply naming conventions to both your filters as well as your views.
I find it very useful to work with numbers in front of your filters and views to easily recognize them.
Another advantage of using numbers is that it is more easy to set up your filter order. Especially when you get more familiar with view filters, you will want to set up this naming convention.
A few general tips:
- Filters: use a number for category of filter, e.g. 1 for exclude filters. You can use 1.1, 1.2, 1.3 etc. if you need to apply multiple filters in one category.
- Views: if you expect to set up just 9 views or less, you can use 1, 2, 3 etc. However, if you expect to set up more than 9 views, you should use 01, 02, 03 etc. to keep them in order. Start with the Master, Test and Raw Data View on top.
This article from Dominic Hurst provides some great additional tips on naming conventions and why this is crucial to get right.
11. Align Time Zone with AdWords
Google Analytics allows you to set up a time zone for your Google Analytics account.
As a best practice, match the time zone in any AdWords accounts that you have linked to the property and views so reporting by hour of day is aligned as much as possible.
12. Exclude Technical Query Parameters
On the property level, raw data is collected including any query parameters.
There are multiple ways to filter technical query parameters out of your data:
- Via Google Tag Manager.
- Via view settings in Google Analytics view.
- By applying a filter to remove all query parameters at once.
A best practice is to remove all query parameters that don’t have any meaning in your analysis.
Usually most websites deal with technical query parameters that cause your content reports to store “duplicate” pages.
For many reasons make sure to filter them out!
13. Be Cautious with Default Page
The default page can ruin your content reports and in most cases you want to keep it blank in all of your Google Analytics reporting views.
Here is example of when you want to set up a default page in your Google Analytics account:
“Even though www.example.com/ may be the same page as www.example.com/index.php, they show up as two separate entries in your reports. You can configure Analytics to treat them as the same page by defining the Default page for your site.”
14. Set the Currency Right
This is one of the easier settings in your Google Analytics views.
Just make sure to set the Currency to display the currency symbol in your reports. Further it doesn’t have any impact on your data.
15. Link Your AdWords account(s)
Google Analytics allows you to link one or more AdWords accounts to your reporting view(s):
A few things to keep into account:
- Make sure to only link the appropriate AdWords account(s).
- It’s up to you whether you want to link to all views including raw data view. This as it not directly impacts the data collection process.
- Leave auto-tagging on; only very advanced AdWords and Analytics users should choose the second setting if they have a good reason to do so.
16. Strip the Site Search Query Parameter
Many sites have a Site Search module implemented. Let’s look at an example:
In this case, the Site Search parameter is keyword.
You will want to filter it out in your Google Analytics views:
By doing this:
- Google Analytics will still show the search queries in the Site Search reports.
- You won’t have to deal with duplicate Search URLs in the content reports.
17. Enhance Insights with Calculated Metrics
Google Analytics let’s you create your own set of metrics in addition to the predefined metrics.
On the view level you can create:
- Five additional, calculated metrics in the free version of Google Analytics.
- Fifty in GA 360.
Calculated metrics are incredibly powerful for analysis and optimization. One big drawback is that they can’t be directly used via the Google Analytics API.
18. Use Real-Time Analytics
One of the wonderful things of Google Analytics is that you can test your data in real-time.
Here is an example:
Leverage this report to test your filters and Google Analytics view settings in real-time.
It might take some time before the data is displayed in your reports, so this feature can be really useful if you don’t want to wait!
19. Use Debugging Tools
In addition to real-time reporting, there are a ton of debugging tools nowadays that can help to test your Google Analytics setup.
Here are five tools that I use on a regular basis:
- Google Tag Manager Preview & Debug mode
- GA Debugger
- WASP Inspector
- Tag Assistant
- Analytics Pros dataLayer Inspector+
20. Add Users to the Appropriate Views
We have talked a lot about setting up multiple views, but how do you deal with user access?
A few rules to keep in mind:
- Limit the number of users with edit and manage users access.
- Keep your list of users up-to-date.
- Restrict access to certain data if needed.
For example, you want to be the only one with edit level access to the Master and Raw Data View. The Raw Data view is a crucial asset and make sure to treat it that way.
As Google Analytics works top-down with access rights, giving edit level access on the account level will result in edit level access on all properties and views in that account. Be warned!
21. Update and Add Views
Keep in mind that the implementation, configuration, reporting and optimization phase are all ongoing.
You can’t expect to have the same data needs in the upcoming five years.
Keep track of your views and settings in a separate environment (e.g. spreadsheet) and make sure to modify or add views where appropriate.
22. Use Your Data to Learn and Optimze
Last but not least, use your data instead of just collecting it!
You could create 20 views for instance:
- Master view, test view and raw data view. (3)
- Desktop, tablet and mobile view. (3)
- Organic, cpc, non-cpc affiliate, email, referral and social view. (7)
- US-view and non-US view. (2)
- Blog directory, news directory and services directory view. (3)
- Two User-ID views. (2)
But what if you only use two of them?
Be mindful about which Google Analytics views to create and make sure to use them to optimize the outcome of your channels and website!
Well, this is it from my side. I hope you have picked up some new ideas to further enhance your Google Analytics account structure and views setup!
One last thing... Make sure to get my automated Google Analytics 4 Audit Tool. It contains 30 key health checks on the GA4 Setup.
Dominic Hurst says
Great list Paul. Totally concur over creating some default views (eg test and raw) So many people don’t do this.
Also copy view is a great tool as it brings in existing data rather than hitting the reset button. Just wish goals came across.
Naming convention again is a must. An old post but you can see, whether its exports or API usage, how you set things up in GA affects a lot of things down the line – https://dominichurst.com/2014/04/04/naming-convention-for-account-property-and-view-google-analytics-2/
Paul Koks says
Thanks for your comment Dominic and great resource. I will link to it in this post! Cheers, Paul
Tom McCracken says
Hi Paul, thanks for putting this together. I love that the first best practice is a measurement plan. This is one of the things that seems most difficult for most sites. I think mostly because you need to bring together stakeholders to determine what to measure and devs to figure out how to measure.
If you have the time I would love to get your opinion on a project we have developed to help people implement measurement plans in CMSs like WordPress and Drupal. It’s called Intelligence: http://intelligencewp.com/.
I am also working on streamlining GA property setup. So far I have automated goal and custom dimension management. I plan to implement view setup in the future and but needed to gather some best practices first. Your article has some great guidance.
Thanks,
Tom
Paul Koks says
Hi Tom,
Thank you for reaching out and I am glad this article is helpful! Yes, the measurement plan is crucial for getting real ROI out of GA.
Your tool sounds very promising. Will check it out at a later time.
Cheers,
Paul
Adil says
Hi Paul,
Nice article. In filters, I would also recommend lowercasing utm parameters & request URI.
Paul Koks says
Thanks for your comment and great suggestion Adil. I had chosen to not go into detail in which filters to apply, but I have another resource that touches on that: https://online-metrics.com/google-analytics-filters/.
Renato Bonário says
Hello Paul, good morning!
I’ve been reading your articles and you show me the web analytics is a amazing way to work, because we can view many informations about marketing campaign, optimizations and other things. So i’m trying to get GAIQ and wanted to know what skills i’ll need to develop to start in data analysis career? Could you help wit this?
Paul Koks says
Hi Renato,
Thanks for your comment and I am glad my articles are helpful for you.
You might want to check out these articles:
– https://online-metrics.com/web-analyst/
– https://online-metrics.com/accelerate-your-web-analytics-career/
– https://online-metrics.com/free-google-analytics-support/
And make sure to check out my start here section as well!
Best of luck,
Paul
Renato Bonário says
Hello Paul, you never disappoints me! ^^
Thank you so much to help me, i will follow indications and read those articles in this weekend.
Again thank you so much!
Paul Koks says
Hi Renato,
Sure, I am happy to help you where I can. :-)
Best,
Paul
Jackie says
My company has site xyz.com, but we do digital publication on our server and they are under xyz.com/digital_media. Under digital_media, each company has their own folder and then their own magazines. I want to track and analyze the data for each magazine, so I’m trying to figure out the simplest way to do this. I have one account for my company, xyz and one property, http://www.xyz.com. Since there are only 25 views for each property, I really can’t put all the magazines issues under one property. Am I able to create a different property, xyz.com/digital_media and have both ID numbers on our site?
This is what it looks like:
Company xyz – 10000000
Xyz.com
Xyz.com/digital_media
Xyz.com/digital_media/companyA
Xyz.com/digital_media/companyA/Spring2017
Xyz.com/digital_media/companyA/Summer2017
Xyz.com/digital_media/companyB
Xyz.com/digital_media/company/Spring2017
Xyz.com/digital_media/company/Summer2017
Xyz.com/digital_media/companyC
Xyz.com/digital_media/companyC/Spring2017
Xyz.com/digital_media/companyC/Summer2017
How do I track the magazines separately?
Thanks for any advice.
Jackie
Paul Koks says
Hi Jackie,
First of all, tracking subdirectories in different views is usually a bad idea. You will have to deal with (not set) value dimensions when people navigate from one “company” directory to the other. In addition, it would be too much to get a view for each company.
In a sense they are already tracked separately, two URLs:
– Xyz.com/digital_media/companyA/Spring2017
– Xyz.com/digital_media/companyC/Spring2017
You can distinguish between them in one view based on /companyA/ vs /companyC/.
In this case and for this purpose I would work with one view. Of course you can set up other views for different purposes as explained on my site.
You can use landing page segmentation to see whether people go from one company directory to another in one session.
You can set up content grouping to group pages per company in a logical structure and see which pages are most popular, where people enter your site.
You can use page value to determine the correlation between digital media page consumption and goal conversions.
There are a ton of things you can do, without having to create additional views for this purpose.
Hope this helps!
Best,
Paul
Wes Redding says
Great article, Paul!
I wonder if you’d mind expanding on the ’99 Don’t Remove’ Campaign Medium filter and just what that does. I think that will keep the new Views I create from collecting data until I’m ready but I’d like to know for sure, and just what the filters settings actually mean.
Also, do we *not* add the ’99 Don’t Remove’ filter on our ‘Raw Data’ view?
Thanks for this great resource!
Paul Koks says
Great question Wes and thanks for reaching out!
– You’re right – the filter ensures that you don’t collect any data before you have your settings in place.
– I have used “99 Don’t Remove” for naming convention purposes – so in my case it is usually the last filter in the list. And I remove it once everything is ready to roll!
– The “filter pattern” isn’t that important as long as you set it up in a way that it ensures it doesn’t match with any hit coming in, that’s the trick.
– For the Raw Data View, if needed and relevant, this specific filter can be applied in that view as well – until you start collecting data. The remark refers to that you shouldn’t modify the data collection process of the Raw Data View once it goes live.
Hope this helps clarify!
Best,
Paul
Aditi says
Hi Paul,
Thank you for the amazing list of items one should set up/ configure when they start using Google Analytics.
I’ve seen a lot of marketers setting up google analytics without creating any test view or filter view. In the end, it’s the client who suffers when data gets lost :(
Anyway, I wanted to suggest you a tool I use for debugging: Omnibug & Event Tracking Tracker. Both are chrome add-ons and are quite useful.
Cheers & Keep Sharing,
Aditi
P.S. I’m sharing this post on twitter to help marketers learn how to set up GA Account well :)
Paul Koks says
Hi Aditi,
Thanks for your comment, I appreciate it. And, I will check out your tools. :-)
Best,
Paul
Seth E says
Great article. We’re building an internal audit checklist so I’m referencing a bunch of your posts.
The company offers data governance solutions aimed at Adobe, but I really enjoy the debugger from ObservePoint if you want to consider adding that to your debugging tools list.
https://chrome.google.com/webstore/detail/observepoint-tagdebugger/daejfbkjipkgidckemjjafiomfeabemo?hl=en-US
Paul Koks says
Thanks for the heads up Seth! Will take a look at your suggested tool. Cheers!
Deyeng says
Hi Paul,
My client has a big website with different business departments involved. what they want is each department units should have a reporting view setup in gA. I am thinking of setting up segments rather than having multiple analytics views but my problem is these people aren’t that technical. 2nd option is to create gA views and use advance filters to remove the data that doesn’t belong to other department units. The URL’s are built this way /test/accounts/, /test/loans/, /test/credits/ and so on.
I wonder if this possible without losing data consistency.
Thanks
Paul Koks says
Hi Deyeng,
I recommend working with segments here. Setting up different views with filters on subdirectories will greatly influence data quality. You will get a lot of (not set) data points when visitors travel from one section (not being measured / filtered out) to other ones (being measured).
Best,
Paul