Google Analytics Plugin - track file downloads
AJ Mercer <[email protected]> Wed, 29 Jan 2014 17:43:58 +0800
| Newsgroups | gmane.comp.cms.farcry.devel |
|---|---|
| Message-ID | <CAPURtC36zeoWnh-+muW0BW2_7a57oL5tffjB=T1gsB7x6E5O1g@mail.gmail.com> |
I have a link like
<a class="dmFile"
href="/documents/financial-services-guide/download">Financial Services
Guide</a>
and the farcry JS looks like this
<script type="text/javascript">
$j.ga.setTracker('UA-nnnnnn-n', { downloadClasses:['dmFile'] });
$j.ga.trackURL('/about-us/financial-services-guide');
(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);
})();
</script>
I am not seeing any stats in GA for downloaded files
As I understand it, the class/downloadClasses combo is meant to do some GA
magic - or have I missed something?
--
*AJ Mercer*
<webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org
community="Open" /> <http://webonix.org>
http://twitter.com/webonix
Railo Community Manager <http://www.getrailo.org/index.cfm/community/team/>
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
---
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/groups/opt_out.