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)
Related
Google Analytics documentation seems light on this topic, but historically businesses have been able to track social sharing interactions on their websites - 'Social Plugins' - via. both ga.js and analytics.js. See here: https://support.google.com/analytics/answer/1316556?hl=en
For use case example, as a business, an analyst would like to understand how often website content is shared onto social networks by website visitors.
The problem I'm having is, I can't easily find what the gtag.js equivalent is of this functionality. The closest I can find is to send a gtag event called 'share' - but not sure if this will populate the Social Report under Acquisition in Google Analytics.
Could anyone please advise how to track Social Interactions via. gtag.js for Google Analytics?
//ga.js
_gaq.push(['_trackSocial', network, socialAction, opt_target, opt_pagePath]);
> https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial
//analytics.js
ga('send', 'social', [socialNetwork], [socialAction], [socialTarget], [fieldsObject]);
> https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions
Note: I found this website which website - https://www.balkanweb.com/peshq-te-barabarte-pavaresisht-nga-madhesia/ - which does seem to use gtag event 'share' function but I am just not sure if it populates the Social reports in GA as I can't see any documentation to support that.
gtag('event','share',{method:'twitter',event_action:'tweet',content_id:targetUrl})
I made a test and I confirm that the share event mentioned does not end up in the social report but in the event report.
Since the gtag.js documentation does not mention social hits (the parameter can only be: CONFIG, SET or EVENT) I believe there is currently no way to send that type of interactions from the website with gtag.
Sadly there is no way to translate this social hit type from UA (Universal Analytics) to GA4 (Google Analytics 4) directly.
The Universal Analytics to Google Analytics 4 migration guide (by Google) mentions this in the Hit types section of the document comparing the two:
Universal Analytics hit types include page hits, event hits, ecommerce hits, and social interaction hits.
In contrast, Google Analytics 4 data is event-based, with the principle that any interaction can be captured as an event. As such, Universal Analytics property hit types translate to events in a Google Analytics 4 property.
Further down the document it also says:
[...] it’s better to rethink your data collection in terms of the Google Analytics 4 model rather than port your existing event structure to Google Analytics 4.
There is something quite basic that confuses me. I use Google ads conversion tracking with Google Tag Manager, and I don't understand how my google analytics know about these ads in the first place. I mean, the conversion tags I create in Google Tag Manager don't include the Google Analytics tracking code at all.
What am I missing?
Thanks
It knows based on the url structure of the incoming links.
This link gives a good overview.
UTM Codes: How to Track Campaign URLs in Google Analytics
This tool allows you to see how the different urls are built and decomposed in GA.
campaign-url-builder
Essentially the structure is integrated and google analytics logically decomposes and presents the data in a meaningful format based on URL.
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 have an Adwords campaign, it sends users to Website-1.
And there is Website-2 and I want to track whether users that came to Website-2 have ever clicked on Adwords banner leading to Website-1 or not.
I could have set third-party cookies on Website-1 corresponding user is from Adwords and then get this info on Website-2. The problem is I don't have access to Website-1.
Is there any way to gain this info? I do have access to Adwords campaign, it's Google Account, Google Analytics on Website-2, it's Google Account and Website-2 itself. In other words, I have access to everything except Website-1
You might use third-party redirect/counter, for example different ad-serving tool like AdForm, where you should be able to generate unique redirect URL in bulk for your campaign.
Disadvantages:
you loose gclid information on AdWords tracking (because of redirect) and you need to use manual UTM tagging
You need to pay ad-serving fee (few bucks for thousands of visitors) and someone to set it up
You would only know if that someone clicked AdWords Ad, not really visited (beacuse you would count before that someone landed)
In conclusion: don't do it if you don't have direct access to GA of website-1
Yes you can do this in a pretty simple way, just set up Cross Domain tracking as described here:
https://support.google.com/analytics/answer/1034342?hl=en
This will save original source information (including AdWords) wen user goes from Website-1 to Website-2. On Website-1 you need to edit Analytics code (on all pages) and add so called autoLink:
ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['example-2.com'] );
Make sure that on both websites youre using newest version of Google Analytics: Universal Analytics, because this will not work in older version
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.