Journal of a free Soul
16 Dec
Here are the quick and easy steps to implement, if you want a report of website traffic, excluding a specific country or territory.
However,it should be noted that, it is among the best practices to create new test profiles when you are testing our filters or other advanced analytics setups. The reason is that it is not unusual that some of your experiments might turn out to be wrong or do not meet your specific requirements, if you have multiple profiles, then you can safely delete the newly created one without loss of critical data. You should have one untouched raw analytics profile, always.
Having said that, lets move towards our setup, I have already created a new profile for the same website and name it “Filtered Traffic”
As soon as you create the new profile, click the edit button and scroll down to see the “Add New Filter” option.
Kindly note that Google Analytics have 2 types of Filter Setups,i.e. Predefined and Custom, we will select the Custom Filter.
Now select the Visitor Country option to mention the excluded region.
Now in the “Filter Pattern” box, enter your desired value or values.e.g. Filter Pattern: brazil|Argentina
Note:The pipe symbol | allows for multiples within the same pattern. Thus, you can mention one or many countries in the same pattern.
Another way is to put country names you want to exclude separated with | sign, and enclose it with ( ) in Filter Pattern field. For example if you want to exclude traffic stats from China, Australia and India the filter pattern will be(China|Australia|India) . And that’s all, now save this filter by clicking “Save Changes” button.
Kindly note that | and () are regular expressions, they have many uses, read about them at: Google’s Help Page
I am setting up analytics for my new projects and hence my future posts will around this topic. If you like to be informed about future posts, kindly subscribe to RSS of this blog. Also I have taken help and inspiration for this post from WasimAsif’s blog, thanks to him.
Leave a reply