Two Google Analytics Datas Differ in User & Session - wordpress

I'm currently running a website written by Wordpress: amninogym.com.
I'm using two google analytics property: UA-147275396-2 and UA-147275396-3 (deleted UA-147275396-1 by the way).
UA-147275396-2 is connected to the plugin named 'ExactMetrics' which is 'Google Analytics Dashboard for WP (GADWP)'.
UA-147275396-3 is connected to Google Tag Manager.
What is weird is that the User & Session counts for these two differs.
Roughly, UA-147275396-2 reports twice of Users & Sessions counts than those of UA-147275396-3.
I tried to find whether I hardcoded the snippet of UA-147275396-2, but I was not able to find any.
Please teach me how to solve this problem.
Thank you!

There are 2 possibilities for this:
The plugin is is not working correctly and sending duplicate data
GTM is not installed on all pages thus GA property firing from GTM is not capturing all users.
I tried to visit your site but it was not loading. Is it live?

Related

Real-Time Data shows visits of pages that don't exist for the selected domain

In Google Analytics, I have navigated to All Accounts-> SomeDomain.
I see a lot of traffic to that domain.
However, most pages listed there are from another domain of mine.
Real-Time for example shows this:
This is hilarious because this page doesn't exist on that domain.
I thought that it shows only traffic to the domain that I have selected above after "All accounts".
Is that not correct?
Or does anybody know any situation where this might happen?
This goes on since months already.
My GA is managed via GTM.
I don't use any CMS.
In GTM, I have a GA Page View Trigger:
I don't see where I could have made a mistake.
Does anybody do?
Thank you.
Create a custom report with dimension Hostname and metric Sessions (for example). You'll see what domains send data to your GA Property.
May be somebody stole code of your site (including trackers).
You can filter alien domains in GA settings for View.
UPD. Lookup table to push GA ID's depending on Hostname.

Google Analytics opt out for mobile devices such as iPhone?

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.

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.

How do you setup a Google Analytics account for a website that already has the tracking code?

I have FTP access and am re-designing a website and I want to see historical traffic data from their Google Analytics, but they do not have a Google Analytics Account and can not get in touch with their last web person who set it up.
The tracking code has been in place for several years. There are a lot of articles about how to add Google Analytics code to a website but how do you setup a Google Analytics account with tracking code that is already there?
The best way is to ask person who set it up. But if it is impossible - here is the article, which help You - http://savvydealer.com/reclaim-your-google-analytics-account/
This is the only one way.
There are 2 options,
Ask for the Authoritative person to add you as an Admin, so you can easily get access. If this option may not possible then,
You can replace old tracking code with new tracking code.

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.

Resources