The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Ecommerce Tracking Receipt Page

mreeemreee Member
in Help edited December 2013
I've recently finished another site, miraclehair.com, and had thought I set up the google ecommerce tracking correctly. I had orders go through this weekend but no transactions have gone through. Actually, analytics isn't even tracking a pageview on my receipt page. Here's the tracking code right above </body>
<!--start Google Analytics Code-->
<script type="text/javascript" charset="utf-8">
	if (window.location.hash.search(/utma/) == -1 && typeof(fc_json.custom_fields['ga']) != "undefined") {
		if (fc_json.custom_fields['ga'].length > 0) {
			window.location.hash = fc_json.custom_fields['ga'].replace( /\&amp;/g, '&' );
		}
	}
</script>
 
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-46026086-2']);
  _gaq.push(['_setDomainName', 'miraclehair.com']);
 _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_setAllowAnchor', true]);
  _gaq.push(['_trackPageview', '/receipt']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
 
^^receipt_only_begin^^
^^analytics_google_ga_async^^
^^receipt_only_end^^

Any ideas?
Comments
  • Nevermind... I made a mistake. I figured it out.
  • fc_joshfc_josh FoxyCart Team
    Hey mreee.
    Glad you got it figured out. We are here to help if you need anything at all.

    Thanks,
    Josh
Sign In or Register to comment.