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.
Related
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.
i've implemented two tracking code in one of my website. The double tracking code works properly for imps etc but not for bounce rate:
First tracking property: 60%
Second tracking property: 10%
Using the official debug mode of Google Analytics everything seems ok.
Any ideas or suggestion?
EDIT
<script>
[..Ga library..]
ga('create', 'UA-XXXX-X', 'auto', 'oldTracker'); //Old
ga('create', 'UA-YYYY-Y', 'auto'); // New
ga('oldTracker.send', 'pageview');
ga('send', 'pageview');
</script>
New to google analytics so bear with me. I added the event tracking to my code, but when i check in the reporting behavior event tab it's blank. Here is my code.
<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-XXXXXXXXX', 'auto');
ga('send', 'pageview');
</script>
here is an example of my a tag
<a href="http://example.com/" target="_blank" class="app-logo" ga('send', 'event', 'Link', 'Click', 'example.com');>
In google-analytics, for the correct website, look on the "realtime/events" page and see if events are appearing there (they should appear here within a few seconds, after being triggered on your website).
If not, you might have added a filter, to filter out events generated by traffic from your own IP. You can find this filter under "admin" and then "all filters". If so, remove it (or temporarily change the IP-address, so it doesn't match). After that, generate a few events on your website and look again on the google-analytics page, under realtime traffic / events page.
If they work under realtime, it should also work in non-realtime (but it might take 24-48 hours to appear there!)
Not sure if this just a typo in your example, but you are missing the event handler in your link:
The event handler ("onclick") is the bit that specifies which action shall trigger the javascript code. If you just dump the event call in the HTML it will not even be recognized as JS.
We tried to implement auto link cross domain but it doesn't seems to work. Here is the case:
We have 2 different domains:
source.com
destination.com
When user visits source.com and click on Submit button, he is automatically redirected to the destination.com (the redirection is on the server side and not the client).
We want to have the ability to track the user action on both domains and treat it as the same user.
We have the following code on the source.com domain:
ga('create', 'UA-XXXXXX-X', 'auto', {'allowLinker': true});
ga('create', 'UA-XXXXXX-X', {'name': 'newTracker'});
ga('newTracker.send', 'pageview');
ga('send', 'pageview');
ga('require', 'linker');
ga('linker:autoLink', ['destination.com'], true, true);
And this code on the destination.com domain:
ga('create', 'UA-XXXXXX-X', 'auto', {
'allowLinker': true
});
ga('send', 'pageview');
This code is not working. we tried to use the same UA id for both but the client id seems to change between the domains and therefore I move from source.com to destination.com I see in analytics 2 different users.
We also tried to pass ourselves the _ga parameter but it also doesn't seems to work
Can anyone please advice? We can't understand what we are doing wrong.
It can be great if you can show an example code and not just reference (:
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'] );