I'm trying to set up a Google Analytics Goal using the following settings(this is a simplified version of what's being used):
Goal setup: custom,
Goal type: destination,
Destination: "Equals to" /en-us/industries/chemical-petrochemical ,
Value=Off,
Funnel=Off
Here's the Google Tag Manager Javascript I use on the page:
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TSLS6W');</script>
When I hit the /en-us/industries/chemical-petrochemical page on the site, I see the page being hit under Content in the Real-time reporting section of Google Analytics, so I know it is seeing the page. However, I never see anything registered in the Conversions section of the Real-time reporting.
Does anyone have any ideas on what the problem could be?
It turns out a filter was preventing the goal from being reached. The filter was pre-appending the hostname of the URL.
Related
I am auditing your Google Analytics account, and because of the non-standard implementation, I can't figure out how GA (universal analytics) is pushed into the site. Google Tag Assistant is detecting the Google Tag Manager container, but this is not where tracking is initiated (container is empty).
This is all that I see :
<script async="" src="https://www.googletagmanager.com/gtm.js?id=GTM-NVMXXXX>m_auth=>m_preview=>m_cookies_win=x"></script>
<script async="" src="https://www.google-analytics.com/analytics.js"></script>
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', });
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'>m_auth=>m_preview=>m_cookies_win=x';
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NVMXL73');</script>
Update:
There is no UA-related item in the devtools>network section. I can see only analytics.js
Tag Assistant occasionally only registers GTM. On refresh, it shows the correctly executed tag sometimes, and the UA tag with an error other times.
Error :
At the same time, I'm looking at a real-time UA report, and the site is definitely being tracked.
I hope someone can shed some light on this. We are looking to move tracking to Google Tag Manager but are unsure where the current tracking is coming from.
Maybe the problem is that you are watching a different google tag manager account so you can not see the container full.
Ensure you are administrator and that you are using an administrator acount.
If you are not the administrator, request via google tag manager or via google analytics become one. Then you will be able to see the container full.
The GA might only comes from GTM or hard code on website.
Here is a way :
Open the devtool
Search for the UA property id in Network
Click one of the request
See the Initiator, there should have information about it is coming from tag manager or hard code to website.
Or you can share the screenshot from your side and let us check.
Update
From the screenshot you provided.
It's installed through hard-code in the loadGA.js
You might need to see if you have the permission to check the source code or you need to ask the related developer to do it for you and remove them.
I'm having some troubles with GTM and iframe.
My website has a button that redirects to Shore for booking. On mobile a new tag opens.
I can see at Content on Google Analytics:
/
/bookings/my-website/services?layout=nolayout&locale=es&origin=nolayout&theme_color=1f1f1f
/virtual/select-service
/virtual/booking-success
The problem is that I loose the medium. At the begining is Organic/cpc...
But on step 2 it creates a new sesion (none)/(direct). It's false.
Could you help me keep the medium on the /virtual/{{Event}}?
My GTM configuration is:
Trigger:
Custom Event
Event name: .*
Some custom events: Event -> matches RegEx -> (select)|(success)|(booking)
Tag config:
Track Type: Page View
Enable overriding settings on this tag (checked)
Fields to Set:
Field name: Page -> value: virtual/{{Event}}.
Tag firing options:Once per page
It's strange because medium is ok when the reservation is through Facebook or Instagram. It just fails on the website.
Thank you!
This is very likely an issue with the changing of domains as users navigate to the widget. Unless cross-domain tracking is specifically set up, when a user visits Site A and then Site B, and both sites have the same Google Analytics (or GA through GTM) tag, the visit to Site B will record a source/medium of either direct/none or {Site A}/Referral, depending on your referral exclusion setup. This is regardless of the source/medium was recorded for the visit to Site A.
In your scenario, hit 1 (/) is your own domain, and then (I'm guessing) hits 2-4 are on Shore's domain (probably connect.shore.com according to the help page).
To remedy this, you need to setup cross-domain tracking. The official guide for GA through GTM is here, but another excellent resource is Simo Ahava's blog. Note that cross-domain linking needs to be setup with every page in the funnel. This means if you are using GTM to deploy GA for the booking virtual pageviews, but are using the direct embed code to put GA on your own site (step 1), with analytics.js, then you need to follow the guide to enable it there.
I used to work with Google Analytics and build Custom Campaigns with the Campaign URL Builder.
Once I've moved to Google Tag Manager, I've stopped seeing any new campaigns in my Google Analytics page.
some facts:
No I'm not an idiot, and I've triple checked that I'm building the URL right in the Campaign Builder. (https://ga-dev-tools.appspot.com/campaign-url-builder/)
Again, I'm not an idiot, there are no Filters In my GA which hides all the new Campaigns.
I'm getting this error in my GA page:
"Property betzavta.me is not receiving hits. Either your site is not receiving any sessions or it is not tagged correctly."
=> though all the other GA functionalities are working currectly (Events, logged users, Real Time data and so on...)
I did install the Tag assistant chrome extension, and it only gave me warnings which say that I should ignore those warnings :-) :-)
Is there anything specific (Trigger, Tag, Variable) that I should define in GTM so the campaign URL will be sent to GA, because so far I didn't see anything about that.
Again, all the other GA things have migrated successfuly to the GMT ( the GMT sends them correctly to the GA).
All my Tags
Thanks
GTM is nothing more than an additional layer between site and GA. GTM doesn't do anything by itself, so utm parameters don't reach GA (and we presume they are correct), then you did something wrong setting up GA through GTM. What exactly you did wrong - it is pure guesswork, unless you provide more details. At least, example of a utm-tagged link and screenshot of the settings of you main GA tag in GTM.
I mistakenly used google analytics code of another website and now, in another site's google analytics report, it shows wrong URLs (because it is of my new website's),
How can I remove those URLs/Pages from google analytics' account.
Example,
I have abc.com website's google analytics code and I mistakenly used it in def.com's website.
There is a URL on def.com/new-year and it shows on abc.com's google analytics on Acquisition => All Traffic => Channels,
Is there any way I can remove the record from google's generated table ?
You have the following options:
Use the time selector and set it to a date after the wrong tracking code was removed.
Use the hostname secondary dimension in the report and thus remove all traffic to the wrong hostname.
Duplicate the view and then delete it. But you will lose all the data so this is rather drastic.
From a previous question I've come to know that I can't enable Demographics and Interest Reports with Universal Analytics tracking code. So I've created a new property for my account using Classical Analytics.
I've also set Enable Demographics and Interest Reports to ON under Property Settings and uploaded the tracking code to the desired site (it is a Facebook Application hosted on GAE if that matters, website link).
As adviced by Google I've changed my tracking code to use DoubleClick instead of Analytics:
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://')
+ 'stats.g.doubleclick.net/dc.js';
As far as I can tell, everything is configured as expected and my tracking id is receiving data.
Still, when I try to access any of the desired Demographic and Interested reports It says that my tracking code can't be validated. This is really weird since, as stated above, my code is already using dc.js.
If i try to click on the Validate tracking code button it basically tells me the same thing again:
So, am I missing something? Are we supposed to click Skip Validation?
p.s.: I've been struggling to get Demographics and Interest Reports to work for over a week (and yes, this is getting very frustrating...). Any help is highly appreciated.
Update
It is now possible to Enable Demographics and Interest Reports also in Universal Analytics [check this answer).
The data should show up in your reports soon (usually couple hours). Following up on Ishara's answer, I just wanted to stress that there is a requirement to update your website policy according to these instructions:
If you change your Analytics tracking code to support Display
Advertising, you are required to notify your visitors by disclosing
the following information in your privacy policy:
The Google Analytics features you've implemented based on Display Advertising (e.g., Remarketing, Google Display Network Impression
Reporting, the DoubleClick Campaign Manager integration, or Google
Analytics Demographics and Interest Reporting).
Visitors can opt-out of Google Analytics for Display Advertising and customize Google Display Network ads using the Ads Settings.
did you Enable display advertiser features .
" Enable Demographics and Interest Reports in the Admin interface: click on Admin (top-right orange navigation), then on "Property Settings", then on the checkbox below the Demographics and Interest section "
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxxx-1', 'xdomain.com');
ga('send', 'pageview');
</script>
Please try the above code and Enable display advertiser features. Lets see after that.
Demographics doesnt work with Google Sites - yet
If your using google sites to have your website (which I am unfortunatly) your limited to your access to your source code, so you cant make the necessary adjustments to add the demographics (blacks and whites and girls and boys to your site) data to your analytics, you only get the Original analytics (visits per day etc.).
My complaint on the Forums
To enable demographics data, you need to put in that piece of code, well you cant edit google sites to add that code in. Also your "site manager" in google site only has 1 option related to Google Analytics, either turn it off or turn it on, and put in your UA_code.
Google Please fix this, why does your free and amazing Demographics Analytics service not included with your Google Sites package, kind of embrassing on your part (big guy)