• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Issue with GA tracking

Issue with GA tracking 11 years 5 months ago #25838

I'm not sure why, but my goals aren't being tracked.


In my head i have the standard classic GA code.
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxx-1']);
_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);
})();

Then added a onClick event to track the event on the form button. (This does not seem to work)
onClick="_gaq.push(['_trackEvent', 'Forms', 'immigration-help-en']);"


I also tried to added code to the thank you message.
<script>
  _gaq.push(['_trackPageView','/virtual/forms/referral-form']);
_gaq.push(['_trackEvent', 'Forms', 'immigration-help-en']);
</script>

Neither seem to be tracking.

Side note: I also noticed it seems, my actual page views weren't being tracked. External viewers such as viewers from other cities could be seen in the Real Time Overview. I could see my views if I used a browser such as Tor..


Any ideas? BTW, i tried the RSForm GA plugin (and that didn't seem to do goals like I had originally wanted)
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!