Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ktm8ok

Members
  • Content count

    1
  • Joined

  • Last visited

Profile Information

  1. Hi guys, I think I came across a tricky one and so far didn't find the solution... I installed the Google Analytics module for osCommerce, everything works great, except the checkout_success.php page is not tracking. Even the page itself is not showing up in GA content, so the code is absolutely not working on that page... and obviously the ecommerce data is not tracking as well... Everything else is working, the funnel is showing all the steps, etc.etc. Except this last page. Please take a look ate this very short code that I copied from the live checkout_success.php page: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-1180598-1"); pageTracker._trackPageview(); } catch(err) {} pageTracker._addTrans( "138","affiliation","33.85","tax","9.85","Los Angeles","California","United States" ); pageTracker._addItem( "138","34479","NYLON BALL 0.062500", 1.587500 mm, 1/16 Grd:2 Lot:34479","Nylon Balls, Stock","0.08","300"); pageTracker._trackTrans(); </script> The only idea that comes to my mind what causes the problem is the fact that the product (NYLON BALL 0.062500", 1.587500 mm, 1/16 Grd:2 Lot:34479) has a " in it........ I hope this is not the case..... Do you think so??? I am pretty experienced with installing Analytics (at least until now I believed so...) but I am simply not able to find a solution for this... FYI the original code looks like this: <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-1180598-1"); pageTracker._trackPageview(); } catch(err) {} <?php include(DIR_WS_MODULES . 'analytics/analytics.php'); ?> </script> Any help / fresh ideas would be appreciated! Best, Adam
×