Google Analytics opt out for mobile devices such as iPhone? - google-analytics

Is there a way to implement google analytics opt out extension on a mobile browser? I am developing a site and it requires checking the site out on mobile. How do I stop the google analytics code that is in my site from picking up these views?

The question is not fully clear - do you have problem with some part of code responsible for Google Analytics service? Or you just want to exclude your testing visits. In other words you don't want to clutter Google Analytics reports with your data (testing visits etc.).
If this second case is a sense of your question, then the easiest way is to create a filter (based on your network IP) in Google Analytics.
To create a filter, please:
1/ Login to Google Analytics
2/ Go to the ADMIN section
3/ In Account column, please enter "All Filters"
4/ Click red button Add filter
5/ Use predefined filter > exclude > traffic from IP adresses
If this is not the answer which you expect, please give more details :)

In your backend, which generates your site (HTML), you should detect using User-Agent if the client is in fact a mobile device and do not add Google Analytics (or GTM) script to the page.

Related

How does Google Analytics filters duplicate site entrances

We are implementing a native analytics system and want to apply the same tracking principles Google Analytics uses. We've figured everything out but one thing:
Every time I refresh a page with an url that has utm-parameters attached to it, Google Analytics somehow figures out that it's not actually a visit but the same page that gets refreshed and shows only one visit in its dashboard from that particular source.
Is anybody aware how GA specifically does that so I can replicate it in our system?
I know that I can use
performance.navigation.type
in my JS script, but it doesn't give me desired results.
Any help would be much appreciated.
Attribution in GA happens on the Google servers, so JavaScript will be of limited use. Basically since a reload means that the user has the same client id and no change in the channel (source, medium and campaign are the same as in the previous visit) the existing session will be continued (a change of campaign/source information would trigger a new Google Analytics session).
Google has a very nice chart that explains how campaign information and traffic source information is processed.

Ignore Specific Computer Google Analytics

I need a way to remove my own traffic and interaction from my Google Analytics.
I know of all the IP and cookie based solutions but IPs can change and cookies can be erased.
One thing I did think of is that I'm always logged into my Google account and I'm always using Chrome. Is there any way to use this to my advantage? It would be really nice if I could just ignore based on my Google Account.
Browser Extensions
Use a browser extension to prevent you from being tracked on analytics. I use the Block Yourself From Analytics extensions because it allows you to configure the sites you want to prevent traffic on.

Ban a URL from showing up in Google Analytics

All,
There is a website that doesn't seem legitimate that and keeps showing all of these page views in my google analytics. Is there a way to ban certain URLs from being processed in google analytics?
You can make an IP address not show up by adding it to a filter.
Please look at http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=55481, even though it talks about excluding internal addresses, it should work well as a guide how to do it with the "difficult" site too.
Edit: To filter on referrals you need to create a custom filter.
See http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=55492 for a guide.
http://support.google.com/analytics/bin/answer.py?hl=en&topic=1034830&answer=1034842 talks specifically about excluding referrers.
Note that the filters will only act on future data, the referrals that are already collected will still show up.

Does anyone use Google Analytics? How Google does it to avoid counting the owner of the website as visitor?

I don't want to be counted as visitor every time I test my page in the hosting. Does Google know i'm the owner of the site by checking if i'm logged in my Gmail account?
I don't think Google does anything like this automatically. But they do provide instructions for excluding based on IP address (or range) and apparently also now by cookie. If you use a CMS or admin interface, you could put the code they provide in an HTML file that you then include into the admin interface pages by IFRAME (to ensure that the cookie stays set for anyone who uses that interface).
One option is to install Ghostery addon your browser. Ghostery can block trackers and scripts used on webpages likes google analytics, google adword and other adwares.
You can also block or unblock the trackers for a specific site or specific tracker for a particular site.This add on is available for Firefox and chrome browsers. If you have this installed on your browser, your visit wont be counted as google analytic script wont be executed.
You can learn more about ghostery at: http://www.ghostery.com/about
There are also often application specific ways of blocking google from counting administrators. For example I've used a wordpress analytics plugin that would automatically not include the tracking code if the user was logged in as an administrator. If you are application has the concept as admin then you could write something similar that controls when the code is added.
If you visit your site frequently from connections with a dynamic IP address, eg. home broadband, then excluding IP addresses is not particularly practical. To go beyond IP exclusion, you can create an isolated page on your site that only you know about that includes a call to Analytics to label your cookie.
The Google Analytics _setVar() function lets you label yourself with an arbitrary string, eg. 'internal'. You only need to do this once per browser as long you don't clear your cookies.
Having labelled yourself as 'internal', you can create an Advanced Segment within Google Analytics to exclude visitors with that label.
Google Analytics relay on you embedding a call to their JavaScript see this link - do not confuse it with how Google does page ranking.
So the answer to your question is that your pages should be smart enough to recognize when the request comes from you and skip the call to the JavaScript.

Can I filter out my traffic in google analytics?

I have a site running Google analytics and I end up being a large fraction of the traffic to it (like 1 of the 2 hits per day). Is there any way I can set it so that my browsing doesn't skew the numbers so much? I'd be happy if it just didn't record anything for accesses that are logged in as my Google account.
Use the Filter Manager in your analytics settings
http://www.google.com/support/analytics/bin/answer.py?answer=55481&cbid=-1j8it19c4uzvt&src=cb&lev=answer
You can use filter to exclude
Traffic from a a domain
IP address
Sub directory
or you can use a custom filter. You can edit your site to set a campaign code if you login in and use the custom filter to exclude that campaign code.
You can also try out the ip filter if you use the same machine.
One option would be to use an ad blocking or javascript disabling extension in your browser to prevent google analytics from being loaded.
A neat solution is to simply stop the tracking javascript from being sent to the browser based on a cookie set on your machine. This can be done by simply adding a few lines of code to your page. Take a look at this article for a full explaination.
If you login there logged in as a site user, maybe you basing on this you just do not put the JavaScript for Google Analytics in the output HTML. This is a typical case when you are an administrator and you do not want to mess the results basing on your activities.
If you are able to touch the code that runs your site I think this is the simplest way to go.
If it is not the case, please provide some more details.

Resources