Google Analytics Custom Campaigns not reporting Revenue - google-analytics

I have created custom campaigns and completed standard ecommerce transactions with the UTM parameters set in the URL when the user hits the site initially, but my campaigns continue to say 0 revenue. My transactions are showing in Google Analytics, but they are not being attributed to the campaign. Can I have some help on the potential holes in my setup? Any insight will help.
Ecommerce Product and Revenue expected on the Campaigns
Campaigns that have no Revenue attributed to them

I found my issue, cache. I have done hard refreshes before every test, but I went into Chrome tools and clear EVERYTHING. Cookie, cache, everything. And Cross-Domain tracking for Custom Campaigns started working! For reference here are the scripts for the two sites:
Site 1:
ga('create','UA-xxxxxxx-x'','auto', { 'allowLinker': true });
ga('require', 'linker');
ga('linker:autoLink', ['site2.com']);
ga('require','ecommerce','ecommerce.js');
ga('send','pageview');
Site2:
ga('create', 'UA-xxxxxxx-x', 'auto', { 'name': 'client', 'allowLinker': true });
ga('client.require', 'linker');
ga('client.linker:autoLink', ['site1.com']);
ga('client.require', 'ecommerce', 'ecommerce.js');
ga('client.send', 'pageview');
Also, I added site1.com and site2.com to the Referral Exclusion List in GA and the UA key for site 1 and site 2 are the same.

Related

disable campaigns google analytics

I would like to disable Campaign Tracking on my GA property. I use Universal Analytics.
I've seen documentation here about method "_setCampaignTrack"
https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiCampaignTracking#_gat.GA_Tracker_._setCampaignTrack
But I'm wondering how I implement it in GA Universal.
I've tried this code:
ga('create', 'UA-37650441-9', 'auto');
ga('set','_setCampaignTrack', false);
ga('send', 'pageview');
So I added
ga('set','_setCampaignTrack', false);
But I'm not sure...please help me! ;)
Any suggestions would be really appreciated.
Thanks.
_setCampaigntrack was part of the older asynchronous code and I don't think that will work. AFAIIK there is no (documented) option to disable campaign tracking in Universal Analytics (looking at the field reference confirms this).
However you could override the campaign name/medium/source-fields with the respective set field calls:
ga('set', 'campaignName', '(not set)');
ga('set', 'campaignSource', '(not set)');
ga('set', 'campaignMedium', '(not set)');
or do the same thing via filters in your view settings. That should give a similar result.

Google Analytics event tracking counting all site hits?

I have been trying to set up event tracking for our company website and have hit a bit of a stumbling block.
I am tracking clicks to our telephone number. It appears that each website visit is being counted as call and appears under the tracking tab.
All I would like to measure is how many times people are 'clicking' to call us.
Am I overseeing something?
ga('create', 'UA-48180919-1', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['www........com/'] );
ga('send', 'pageview');
ga('send', 'event', 'calls', 'click', 'tel:00000000000', 9);
<a href="tel:0000 000 0000" onClick=”ga(‘send’, ‘event’, ‘calls’, ‘click’, ‘tel:00000000000’, 9);”>0000 000 0000</a>
I'm currently looking on Real Time/Events
Any help is appreciated.
Apparently, this is something that is not possible through Google Analytics alone. Instead, you have to use Google Adwords.

Single page analytics tracking

I am new to GOogle Analytics. I have a single page site. It has multiple tabs that are reflected in the URL. Main url is index.html and if you switch to a different tab the URL becomes index.html?FaqPage
Is there a way to setup Google Analytics to give analytics on all the tabs seperately? I tried
ga('send', 'pageview', '/index.html');
But the analytics only seem to track index.html and not any of the ther URLs.
Also tried the following (with proer tracking code) but doesnt seem to work:
ga('create', 'UX-xxxxxxx-x', 'auto');
ga('set', { page: '/index.html?FaqPage', title: 'Faq'}, { page: '/index.html?MemberPage', title: 'Member'});
ga('send', 'pageview');
You're on the right track. One solution is to send a virtual pageview whenever a tab is clicked:
ga('send', 'pageview', '/faqpage')
And do similarly for all your tabs. Here is some more info https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications.

Google Analytics Cross Domain Tracking Conversion Referral Issue

So I have two sites for a client, we'll say www.main.com is their main website and www.signup.com is a site where the user signs up for a certain service.
I recently switched signup.com over to universal analytics so that we could implement cross-domain tracking via the autolink plugin.
I used this article to help me set up the code on each domain.
Here is what I have on main.com:
<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-11865301-1', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['signup.com'] );
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
NOTE: I'm not sure what 'displayfeatures' is. I was told that a 3rd party vendor had to customize the code at one point and that I shouldn't remove anything.
And here is what I have on signup.com:
<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-11865301-1', 'auto'), {'allowLinker': true};
ga('require', 'linker');
ga('linker:autoLink', ['main.com'] );
ga('send', 'pageview');
</script>
I also have both domains listed in my Referral Exclusion List so that we don't see main.com as referrals for the signup goal.
What's happening now though, is that for almost all of our conversions, the source/medium is showing as (direct)/(none) and the referral path is showing as (not set). We cannot figure out why.
At the time of this posting there are 14 goal conversions for the day. All of them are reporting a referral path of (not set) and 13 of them are reporting a source/medium of (direct)/(none). There is one conversion that has it's source/medium listed as bing/organic, if that is any kind of clue.
I'm not finding a lot of results on the subject in my googling so this is my last resort. Any help would be appreciated.
UPDATE: So I've been researching this heavily for the past 24 hours and have found out more information.
The (direct) or (not set) referral sources are coming from main.com. The reason they are listed as direct or not set referrals is because we have main.com listed in the referral exclusion list. When I turned it off these referrals started coming is as main.com.
It's starting to look more and more like there is no way to take the original referrer from main.com and carry it over to signup.com.
Can anyone confirm or deny this theory?
When you link domains for cross-domain tracking, they should all be included in the autoLink.
ga('linker:autoLink', ['signup.com', 'main.com'] );

google analytics.js and cross domain tracking

I'm confused by the Google documentation for analytics.js
Need to track cross domains, e.g. main-site.com blog-site.com
I set up a new property in Google Analytics and received the tracking code for main-site.com.
Step 1: Installed tracking code at page bottom in main-site.com
<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-000000-X', 'main-site.com');
ga('send', 'pageview');
</script>
Step 2: instructions for analytics.js for cross domain (installed on main-site.com) Add the following before script ending tag.
// Load the plugin.
ga('require', 'linker');
// Define which domains to autoLink.
ga(‘linker:autoLink’, [‘main-site.com’, ‘blog-site.com’]);
Step 3: add tracking code to blog-site.com
// UA-000000-X is the tracking code number for main-site.com
ga(‘create’, 'UA-000000-X', {
‘allowLinker’: true
});
Problem: we need to track traffic that does not original in main-site.com. For example, a link from Facebook to blog-site.com should still count under the main-site property in GA.
For cross domain tracking you should be tracking the blog with the same tracking code number, so you will not have separate data for your blog and your main site, all the data will be in one place (if you want separate views of each site you need to set up additional profiles with profile filters to include only the traffic you want in that profile).
So if you're using the same tracking code for both, any visits to the blog (from e.g. facebook) should appear in that place. Is that not happening?
when you add the code to blog-site.com you add the entire snippet so the data is sent to the same account.
if you cant tell the difference between the 2 site s based on the url of the page with out the domain name then you need to add a filter that adds to each tracked page the host name (domain name)
see image for setting up filter

Resources