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,, 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 ( == -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 type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-46026086-2']);
  _gaq.push(['_setDomainName', '']);
 _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://') + '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


Any ideas?
  • 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.

Sign In or Register to comment.