According to Clicky Analytics, the site http://www.houseofwords.com, specifically the page http://www.houseofwords.com/other/sight-gags.html, got 162 clicks/visits on Feb. 9. Ave time spent there was 24 sec, giving a (clicky) bounce rate of 77%. Certainly not great.
Google Analytics says it was 2 clicks. Most visits were from reddit.com. I had just posted a link to http://www.houseofwords.com/other/sight-gags.html on reddit. That's why the traffic. There's nothing wrong with Clicky. The problem is Google Analytics (using "new" Search Console.) The same scenario has played out many times.
ga snippet (in header) -----------
<script type="text/javascript">
(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','https://www.google-
analytics.com/analytics.js','ga');
ga('create', 'UA-82097736-1', 'auto');
ga('send', 'pageview');
</script>
Clicky snippet (just before </body> ) - Just for reference -------------
<script src="//static.getclicky.com/js" type="text/javascript"></script>
<script type="text/javascript">try{ clicky.init(101008026); }catch(e){}
</script>
<noscript><p><img alt="Clicky" width="1" height="1"
src="//in.getclicky.com/101008026ns.gif" /></p></noscript>
Neither script has an onClick, never-the-less, Clicky script words.
Related
I am trying to implement a Google Analytics user-level custom dimension on a site.
I have read here that the code to do this looks something like this:
ga('set', 'dimension2', value );
If I include that script in page X, will the hit for page X's page-view include that dimension/value? Or will it only apply to future hits that that user initiates?
Since you're setting a user level scoped CD, it will apply to all previous hits in the session as well.
I'd recommend you do the ga('set') before you perform ga('send'), this way you utilize the pageview hit to set this CD, not the next hit.
Edit:
Your regular implementation looks like this:
<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('set', ...); //do you sets here
ga('send', 'pageview'); //this is the send
</script>
<!-- End Google Analytics -->
Alternatively, you can just run this and just do "set" and "send" separately, though you'd want to execute the set/send very close to when you load the page:
<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');
**//removed ga(send) stuff**
</script>
<!-- End Google Analytics -->
To verify, use dev tools, look at your networks tab. Search/filter for "collect" you'll see the calls made to GA. Look for the parameters for the call, specificall cd1, cd2, cd3 etc...look for the cd# that's the same index as the cd you've set. Verify the data there is correct.
I set up google analytics on my 'coming soon' website about 4 days ago but the dashboard's only showing my local visits. I know for certain that there have been visits to the website after analytics was set-up because I've gotten a number of email signups. Here is the ga code snippet i added within the head tag of my html.
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-Removed-my-ga-account-id', 'auto');
ga('send', 'pageview');
</script>
I am setting a virtual page tracking ga js in order to capture a form submission, and track the conversion.
I have been following instructions on how to do it:
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
I've written the snippet:
<script type="text/javascript">
(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','https://www.google-analytics.com/analytics.js','ga');
ga('set', 'page', '/contacto-pergola.html');
ga('send', 'pageview');
</script>
Right before the ADWORDS conversion snippet.
I have registered a new goal containing:
Goal Setup: custom
Goal Type: Destination
equals to: /contacto-pergola
However after I load the destination page which should trigger the virtual page sent:
http://sungates.es/pergola-bioclimatica/distributeur.html#ancreErreur
Analytics doesn't track anything.
I would appreciate any help.
Thanks
I'm using Angulartics to implement events and tracking on my site.
See: https://github.com/luisfarzati/angulartics
We're currently injecting the analytics tracking code with GTM. If we don't inject the snippet, there's no traffic visible in Analytics.
See snippet:
<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');
</script>
The events are sent and everything seems to work in GTM. We don't need to use
ga('create', 'UA-XXXXXXXXX', 'auto') in the injected code because the UA ID is already set in GTM, so there is some magic Google is doing with linking up GTM with analytics.
Basically, without (//www.google-analytics.com/)analytics.js loaded, we see no traffic.
I thought this would work, but clearly it doesn't.
Can anyone help me out with this?
Thanks
It's my first time setting up Event tracking for Universal Analytics for moonstone.co.za . I have added the tracking code just before the tag:
<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-10', 'auto');
ga('send', 'pageview');
</script>
Then for every button I added the jquery:
<div class="textwidget"><a href="http://www.moonstone.co.za/moonstone-protector/" target="_blank" onClick=”ga(‘send’, ‘event’, ‘protector-compliance-service’, ‘click’, ‘compliance-and-risk-management-page’);”><img src="http://www.moonstone.co.za//wp-content/banners/moonstone-protector-compliance.jpg" /></a></div>
But I can't see the events in the real-time reporting (I have waited a while as well to look) or in my event dashboard. I tried to debugging it but I'm lost. Any thoughts? Thank you in advance.