I run this web site http://www.workingdays.us on which many links are javascript actions (within the home page) I want to be able to trace with Google Analytics.
Exemple :
<a id='m1d' href='#am1d' onclick="increment_changed('nb_j',-1);" class='plus_moins' title='Remove one day to the period' >-</a>
But In page analytics is displaying for each of those javascript links same "82%" (see screenshot) which obviously is wrong.
I think have followed google guidelines regarding "enhanced link attribution" https://support.google.com/analytics/answer/2558867?hl=en and I don't understand what's wrong
1- my google code analytics is up to date
<script type='text/javascript'>var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-17269285-3']);_gaq.push(['_trackPageview']);(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
2- All my links have a unique id
3- Enhanced link attribution option is enabled within google analytic's admin panel