Quote Originally Posted by stylishbb123 View Post
Hi,

My version of Zen Cart (quite old due for upgrade) is V 1.3.8a.

I installed Simple Google Analytics in an attempt to get google Ecommerce working.

The install seemed to go OK, however when I did a test order, using "test bean bag" found in "pet bean bag" directory.

The checkout_succes page didn't load completely, it loaded the background and nothing else.

After reading online I downloaded and installed the ZenCart debug utility and it began outputting messages like the one below....




Basically whats happening is that the html_header file cannot find the google_analytics.php file. After changing things around a bit and copying the google_analytics file into 3 different places namely

my_template/checkout_success/google_analytics/
my_template/checkout_success/
my_template/google_analytics/

There is no more output from the debug utility.

However being the sceptic that I am, I'd like to ask... Even though all seems well, will the actual google analytics have survived the copying and pasting of files into different places in order to overcome the error, I'm thinking not?
Copying it into those three areas probably isn't a good idea. That could throw off tracking.

The reason you got a blank page is because there is a PHP error in your code (that you inserted to to 'require' the file on the page.)

Looking at your error messages, it appears you are missing a 'slash' in the following location.

google_analytics/google_analytics.php

I would remove all areas you added the file to, only add it as directed in the install, and then make sure you have the slash in place so it can find the file in the proper location.

Let me know if that works.