Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,170

Results 1,401 to 1,420 of 2,165
1 Feb 2011, 4:13 AM
#1401
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Simple Google Analytics - Support

Hi econcepts,
WHEW! It appears there was a "product_info" folder including a tpl_main_page file under my custom template. I'm not sure why there was such folder there. I just removed it and it's now puling the info from the correct tpl_main_page file where the script is. It now all works perfectly. Thanks much for helping me out here, and teaching me how to use the debug feature in the process! I owe you a big one ...

1 Feb 2011, 4:31 PM
#1402
trusupport avatar

trusupport

New Zenner

Join Date:
Feb 2011
Posts:
1
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I am using ZC v1.3.9h on a new install. I am using the template lite_green by 12leaves.com.

In the instructions under step 3 (part B) it says to modify html_header.php, my template does not have this file?

Where should I make the following code changes?

2 Feb 2011, 3:19 AM
#1403
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Simple Google Analytics - Support

trusupport, it's under the template_default, here:
/includes/templates/template_default/common/html_header.php
save it under your template here:
/includes/templates/[your_template]/common/html_header.php
and paste the code as indicated in the install file.

2 Feb 2011, 2:03 PM
#1404
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

Thannaree:

Hi econcepts,
WHEW! It appears there was a "product_info" folder including a tpl_main_page file under my custom template. I'm not sure why there was such folder there. I just removed it and it's now puling the info from the correct tpl_main_page file where the script is. It now all works perfectly. Thanks much for helping me out here, and teaching me how to use the debug feature in the process! I owe you a big one ...

Anytime. :)

2 Feb 2011, 2:08 PM
#1405
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

trusupport:

I am using ZC v1.3.9h on a new install. I am using the template lite_green by 12leaves.com.

In the instructions under step 3 (part B) it says to modify html_header.php, my template does not have this file?

Where should I make the following code changes?

Thannaree said it but I wanted to clarify one thing that can be confusing to some.

trusupport, it's under the template_default, here:
/includes/templates/template_default/common/html_header.php

COPY that file to your custom template directory (which will activate the zen cart overrides) found here:

/includes/templates/[your_template]/common/html_header.php
and paste the code as indicated in the install file.

(where [your_template] is replaced by the actual name of the template directory you are using.)

Just wanted to clarify as I see many getting confused with wondering 'how to save it' etc...

Thanks to Thannaree for the original response.

3 Feb 2011, 12:14 PM
#1406
jar3300 avatar

jar3300

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Before I go any further, I'd like to know how badly I screwed up. I'm normally not so stupid (really). I was following the directions to a T, with one exception. I was going down the upgrade path. When I realized something wasn't working, I noticed that I was using the upgrade instructions when I hadn't installed it before. If I now follow the CORRECT instructions, will it overwrite what was done to the database? Will everything be okay? Geez, what a dope.
Thanks
Dopey

3 Feb 2011, 2:37 PM
#1407
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

The files should remain the same for upgrade. The only thing that was different was the SQL patch.

I would run from the beginning (non-upgrade) the new install and you should be ok.

It will write over your DB info but I would suggest you start with a clean slate any how to ensure you have a fresh install.

3 Feb 2011, 7:16 PM
#1408
jar3300 avatar

jar3300

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Re: Simple Google Analytics - Support

A clean install would imply that I also did the smart thing of backing up my database before tinkering. I guess I really had a brain fart. How difficult is it to manually remove the changes to the db?
Live and learn (most of the time)
Jim

4 Feb 2011, 1:47 PM
#1409
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

jar3300:

A clean install would imply that I also did the smart thing of backing up my database before tinkering. I guess I really had a brain fart. How difficult is it to manually remove the changes to the db?
Live and learn (most of the time)
Jim

If you didn't backup the db this time no big deal.

Just run the install script (first time install not upgrade) it will automatically remove the previous DB entries and then reinstall fresh.

5 Feb 2011, 8:04 AM
#1410
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Simple Google Analytics - Support

On my store www.ribn bon sbas kets.com I have had the mod installed for years but not all the transactions are being tracked in the google ecommerce. For instance in a one month period google ecommerce only tracked 9 but there are more then too many to count. I've always just left it because i dont have time but now im thinking that it would be wise to have a more accurate conversion rate to track. All the basic things like making sure the admin and google settings are set are done.

I have a feeling that it may have to do with the code showing up in multiple places when viewing the source but im not sure. The store has not yet been upgraded - its 1.3.8 Any help would be greatly greatly appreciated. :unsure:

5 Feb 2011, 8:04 AM
#1411
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Simple Google Analytics - Support

On my store ww w.r ibb o ns ba sk e ts. co m I have had the mod installed for years but not all the transactions are being tracked in the google ecommerce. For instance in a one month period google ecommerce only tracked 9 but there are more then too many to count. I've always just left it because i dont have time but now im thinking that it would be wise to have a more accurate conversion rate to track. All the basic things like making sure the admin and google settings are set are done.

I have a feeling that it may have to do with the code showing up in multiple places when viewing the source but im not sure. The store has not yet been upgraded - its 1.3.8 Any help would be greatly greatly appreciated. :unsure:

5 Feb 2011, 2:59 PM
#1412
jar3300 avatar

jar3300

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

If you didn't backup the db this time no big deal.

Just run the install script (first time install not upgrade) it will automatically remove the previous DB entries and then reinstall fresh.

I did the install and set up SGA in the Admin. When I ran the install patch I got these errors.
41 statements processed.
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_TRACKING_TYPE" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists

When I check the status at Google it say it isn't installed.
The site is rusticranchfurniture.com

Thanks
Jim

5 Feb 2011, 9:01 PM
#1413
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Simple Google Analytics - Support

jar3300:

I did the install and set up SGA in the Admin. When I ran the install patch I got these errors.
41 statements processed.
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_TRACKING_TYPE" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists

When I check the status at Google it say it isn't installed.
The site is rusticranchfurniture.com

Thanks
Jim

Run the uninstall and then the install sql

6 Feb 2011, 2:28 PM
#1414
jar3300 avatar

jar3300

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Ran the uninstall, 5 statements processed. Reran the install and got the same error message.
Google still says it is not installed.
Thanks
Jim

7 Feb 2011, 3:00 PM
#1415
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

ksookma:

On my store ww w.r ibb o ns ba sk e ts. co m I have had the mod installed for years but not all the transactions are being tracked in the google ecommerce. For instance in a one month period google ecommerce only tracked 9 but there are more then too many to count. I've always just left it because i dont have time but now im thinking that it would be wise to have a more accurate conversion rate to track. All the basic things like making sure the admin and google settings are set are done.

I have a feeling that it may have to do with the code showing up in multiple places when viewing the source but im not sure. The store has not yet been upgraded - its 1.3.8 Any help would be greatly greatly appreciated. :unsure:

I went to your site and you are using a different Google Analytics Module than the one this thread supports.

You are using "Google Analytics by Andrew". This is the thread for Simple Google Analytics.

The version of code you are using has a number of problems with tracking ecommerce transactions. My suggestion would be to uninstall it, remove all associated files and changes then install my Simple Google Analytics mod.

Easy install, no problems tracking.

7 Feb 2011, 3:05 PM
#1416
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

jar3300:

Ran the uninstall, 5 statements processed. Reran the install and got the same error message.
Google still says it is not installed.
Thanks
Jim

No, you don't need to uninstall and re-run the SQL. That is all fine (ignore the error messages as it just means the mod is already installed.)

The reason you are not getting any tracking and Google says not installed is because you have not entered your Google Analytics tracking id into the site yet. :)

I went to your site and did a view source. Your tracking id is "UA-xxxxx-xx". This is just filler I included in the mod (placeholder). You need to get the Google Analytics id from within your analytics account and then place it into the section found in the "Google Analytics Configuration" within the Zen Cart Admin (found under the 'Configuration' menu option.)

Once you add that tracking id and save, you'll need to go back to your GA account and 'verify install' for the profile you are tracking.

Google will then be able to verify the code exists and the tracking ID is correct. Shortly after (give it about 24 hours or so) you should start seeing tracking in your Google account.

8 Feb 2011, 1:56 AM
#1417
jar3300 avatar

jar3300

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I forgot after the reinstall to configure it again. I set the id, checked the same way you did and Google still says it isn't installed. Is this Bizarro world?

Profile Name: rusticranchfurniture.com
Website URL: http://rusticranchfurniture.com
Web Property ID [?] : UA-7009853-9
Tracking Status: warning Tracking Not Installed (Last checked: Feb 7, 2011 5:54:21 PM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.

Thanks
Jim

8 Feb 2011, 4:40 AM
#1418
stylishbb123 avatar

stylishbb123

New Zenner

Join Date:
Feb 2011
Posts:
1
Plugin Contributions:
0

Re: Simple Google Analytics - Support

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....

a[08-Feb-2011 04:26:03] PHP Warning: require(includes/templates/orange/google_analyticsgoogle_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 131
[08-Feb-2011 04:26:03] PHP Warning: require(includes/templates/orange/google_analyticsgoogle_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 131
[08-Feb-2011 04:26:03] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/orange/google_analyticsgoogle_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 131

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?

8 Feb 2011, 2:21 PM
#1419
bubbas454 avatar

bubbas454

New Zenner

Join Date:
Feb 2010
Posts:
18
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

I appear to be having the same issues as Jim

I have configuered everything in admin but still getting this error at analytics:

Profile Name: https://www.themakeupartistboutique.com
Website URL: http://www.themakeupartistboutique.com
Web Property ID [?] : UA-21172541-1
Tracking Status: Warning Tracking Not Installed (Last checked: 08-Feb-2011 06:19:49 )
The Google Analytics tracking code has not been detected on your website's homepage. For Analytics to function, you or your web administrator must add the code to each page of your website.

Any idea?

Many thanks

Emma

8 Feb 2011, 2:26 PM
#1420
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

jar3300:

I forgot after the reinstall to configure it again. I set the id, checked the same way you did and Google still says it isn't installed. Is this Bizarro world?

Profile Name: rusticranchfurniture.com
Website URL: http://rusticranchfurniture.com
Web Property ID [?] : UA-7009853-9
Tracking Status: warning Tracking Not Installed (Last checked: Feb 7, 2011 5:54:21 PM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.

Thanks
Jim

Try adding a trailing slash '/' after your domain name within your Google Analytics profile and then 'recheck' again. Let me know if that finds it on the page.