![]() |
|
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Zen Cart & osCommerce Tips, advice and help on how to use the most popular free E-commerce shopping carts available. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have installed the Simple Google Analytics Module and it appears in my Admin>Configuration.
I have signed up with Google analytics and inserted my unique analytics account number in the relevant box and clicked update. I was under the assumption that doing this would add the code needed on all my pages for google to track. However, when I go to my Google Analytics account, it says the tracking codes have not been installed... Any ideas? Regards Arkie..... |
|
|||
|
I've never used the Analytics mod for Zen so I don't know how it works, but I doubt it would insert the code for you because it won't have permission to write to the required files. There's probably some code you need to add to the footer of the page yourself. If you read the readme file that would have come with the mod, it should tell you how to do this.
To add the Analytics code by hand without a Zen mod, you need to add the code Google gives you to the footer of your site. To see how to do this and get around the SSL problem see my last post on this thread about adding it to OSC. How to add Google Analytics to osCommerce You use the same principle to add it to Zen.
__________________
Lawrence |
|
|||
|
hi Lawrence
From what I can make out, the mod should insert the code on all pages. However, it's not doing what it says on the tin, so happy to try your method... Unfortunately in Zencart, I don't seem to have footer.PHP? Is it called something else in Zen? Thanks Arkie |
|
|||
|
The mod cannot insert code into other pages as the server would never allow it to as it wouldn't have write permisions for the file.
I've just checked the install instructions and it gives you some code to insert into a file which hasn't been done. No.3 on the install list is PHP Code:
__________________
Lawrence |
|
|||
|
Still hasn't resolved the problem unfortunately...
How about we try the other method you described? Just don't know which PHP file to insert the code into as I don't seem to have a footer.PHP Arkie... |
|
||||
|
Quote:
Open /includes/templates/template_default/common/tpl.footer.php Save a copy of that file to /includes/templates/NAMEOFYOURCURRENTTEMPLATE/common Then edit the file you just copied as per Lawrence's instructions.. Done |
|
|||
|
You now have the Google code three times on each page which is only going to confuse Google. You need to remove two of them. I suspect one of them is from the Zen mod, if so, you should leave that one on as it'll add features to your store that the code alone won't have and remove the other two.
Also, one of them doesn't switch to SSL when someone views a secure page creating a cert error. This is the footer of one of your SSL pages. PHP Code:
__________________
Lawrence |
|
|||
|
Why is life so damned complicated....?
So do I have to open every page and remove them or is there an easier way? And I haven't got a clue what the SSL part of your message means, what do I do about it? Finally is having google analytics worth all this trouble, should I just delete it? Thanks Arkie... |
|
|||
|
Just delete the code from the template file that Dazina gave you.
If you click login on your site, you'll see what I mean about the SSL problem. BTW How do you know it wasn't working before? You have to visit your site when the code is installed before Google will be aware that it is installed, it also doesn't update immediately so you have to wait. What was probably happening is that it was working fine from when you added the bit of code I pointed you to in one of my previous posts but Google hadn't had a chance to update your status yet,
__________________
Lawrence |
|
|||
|
The reason I don't think it was working before is because when I went to my google analytics control panel, it had a message telling me that the code wasn't installed.
But after inserting the code as described by Dezina the message changed and it told me it was gathering the information. With regard to the SSL problem, are you saying that removing the code I put in manually, it will solve this problem? Thanks Arkie.... |
|
|||
|
You need to remove the two unneeded bits of GA code and leave the php code that came with the mod.
The reason that Google didn't show it as installed initially is because someone has to visit your site before Google knows the code id there, and even when they do, there's a bit of a time lag before GA confirms a hit.
__________________
Lawrence |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Analytics eCommerce Tracking Module | Lawrence | PHP/HTML/CSS/JavaScript and Servers | 2 | 22-10-2009 10:53 PM |
| How to add Google Analytics to every page on your osCommerce store | Lawrence | Zen Cart & osCommerce | 12 | 09-02-2009 02:29 AM |
| Problem with Google Checkout Payment Gateway. | percept08 | PHP/HTML/CSS/JavaScript and Servers | 1 | 06-06-2008 06:42 AM |
| 5 Differences Between Google.com & International Google Search Results | SEOBook | SEO and PPC | 0 | 29-09-2007 08:25 PM |
| google analytics | Tinkerbell | PHP/HTML/CSS/JavaScript and Servers | 1 | 27-08-2007 04:03 PM |