Zen Cart Logo
Forums / General Questions / Google Analytics & Zencart

Google Analytics & Zencart

Locked

Views: 1,438

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Feb 2007, 1:06 PM
#1
blushfashions avatar

blushfashions

Zen Follower

Join Date:
Jul 2006
Location:
South Shields - UK
Posts:
118
Plugin Contributions:
0

Google Analytics & Zencart

Hello

I'm trying to get Google Analytics working on my site:

"Copy the following code block into every webpage that you want to track. Click in the box below to select the entire code. Copy and paste the code
segment into the bottom of your content, immediately before the </body> tag
of each page that you are planning to track. If you use a common include or template, you can enter it there.

Could somebody tell me the best spot to place the code?

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-1309869-1"; urchinTracker(); </script>

Yours BlushFashions

https://www.blushfashions.com

8 Feb 2007, 1:18 PM
#2
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Google Analytics & Zencart

the bottom of

includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

just above the </BODY> tag

8 Feb 2007, 1:25 PM
#3
blushfashions avatar

blushfashions

Zen Follower

Join Date:
Jul 2006
Location:
South Shields - UK
Posts:
118
Plugin Contributions:
0

Re: Google Analytics & Zencart

Many Thanks Chrome Orange

Got that sorted!

Yours BlushFshions

8 Feb 2007, 1:44 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Google Analytics & Zencart

please note that this line

<script src="http://www.google-analytics.com/urchin.js" will cause your SSL pages to appear un secure and will ( depending on the browser ) throw the security error popup box, firefox just blocks out the padlock.
8 Feb 2007, 2:04 PM
#5
blushfashions avatar

blushfashions

Zen Follower

Join Date:
Jul 2006
Location:
South Shields - UK
Posts:
118
Plugin Contributions:
0

Re: Google Analytics & Zencart

Yes see what you mean about the security

oh well back to the beginning:cry:

Yours BlushFashions

8 Feb 2007, 2:56 PM
#6
blushfashions avatar

blushfashions

Zen Follower

Join Date:
Jul 2006
Location:
South Shields - UK
Posts:
118
Plugin Contributions:
0

Re: Google Analytics & Zencart

Hello Merlinpa1969

After removing the google code from tpl_main_page.php I found when going to the checkout in explorer I was still getting the security popup that was asking me if I wanted to display unsecure items Y/N. On clicking No I noticed that a side box graphic I had for a link to Tazbar.com was not displayed. However I've since disabled the sidebox graphic in banner manager and the security popup does not appear anymore when going to the checkout. Is this happening because the graphic is stored in a folder I have called custom_graphics in my public folder?

Yours BlushFashions

https://www.blushfashions.com

8 Feb 2007, 3:01 PM
#7
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Google Analytics & Zencart

this is because you are using <img src="http:// IMAGE HERE >

try making it totally relative,

8 Feb 2007, 3:35 PM
#8
blushfashions avatar

blushfashions

Zen Follower

Join Date:
Jul 2006
Location:
South Shields - UK
Posts:
118
Plugin Contributions:
0

Re: Google Analytics & Zencart

Yes I see where I was going wrong, I thought the graphic was stored locally, but instead it was stored on another server.

Yours BlushFashions