|
Andy c
|
 |
« on: September 16, 2011, 02:18:04 PM » |
|
Having never used this before as I could never get it working I thought I would give it a go again Have installed simple Analytics but just cannot get it working .. I have found many different versions of suggestions but just can't get past the verification have tried putting the code in the head/ footer / both even tried in default temp with nothing happening  any ideas please
|
|
|
|
|
Logged
|
|
|
|
FionaJMD
Fiiiiiioooooooooooonnaaaaaaaaaaaaaaaaa
Global Moderator
Part of the Furniture
   
Karma: 5
Offline
Posts: 310
|
 |
« Reply #1 on: September 16, 2011, 02:32:03 PM » |
|
I love reading the Google Analytics when they work, but mine seem to be there and work for 10 days then no visitors LOL.
|
|
|
|
|
Logged
|
|
|
|
|
Baa
|
 |
« Reply #2 on: September 16, 2011, 03:21:57 PM » |
|
How long have you given it to verify? Sometimes it takes a time.
If it's been 24 hours or more are you still seeing the yellow triangle?
What code are you putting in footers/headers and on what file?
|
|
|
|
|
Logged
|
You cannot conduct today's business with yesterday's methods and expect your business to grow Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
|
|
|
|
Andy c
|
 |
« Reply #3 on: September 16, 2011, 06:08:42 PM » |
|
How long have you given it to verify? Sometimes it takes a time.
If it's been 24 hours or more are you still seeing the yellow triangle?
What code are you putting in footers/headers and on what file?
oh Ok ..I thought it would be almost instant like the others verifications that I have done on my site <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25757464-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? ' https://ssl' : ' http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> got it from google
|
|
|
|
|
Logged
|
|
|
|
|
Baa
|
 |
« Reply #4 on: September 18, 2011, 04:42:24 PM » |
|
You don't say what file you put that in.
Was it "tpl_main_page.php" in your custom template common folder?
|
|
|
|
|
Logged
|
You cannot conduct today's business with yesterday's methods and expect your business to grow Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
|
|
|
|
Andy c
|
 |
« Reply #5 on: September 19, 2011, 12:41:43 AM » |
|
I've put the code in many places ..but right now it is in template/my template/common//html header & tpl footer It was working 3 days ago ..well in working I say it looked like it was working but on verification it was still not found ,sooo don't know if it was or not
|
|
|
|
|
Logged
|
|
|
|
|
Baa
|
 |
« Reply #6 on: September 19, 2011, 09:56:01 AM » |
|
Try the code in tpl_main_page.php (your custom template folder in the right folder) at the end directly after the </body> tag.
|
|
|
|
|
Logged
|
You cannot conduct today's business with yesterday's methods and expect your business to grow Moon Stag Designs - Silver, Gold and Gemstone Jewellers. Jewellery for men, women and children.
|
|
|
|
Andy c
|
 |
« Reply #7 on: September 19, 2011, 12:29:00 PM » |
|
that's the thing I don't have a main page in my template ..only in my temp default
|
|
|
|
|
Logged
|
|
|
|
Rainee Bows
hobnob keeper
Shareholder ;o)
   
Karma: 19
Offline
Gender: 
Posts: 943
Currently Online: 109 visitors - 21 Members.
|
 |
« Reply #8 on: September 19, 2011, 01:10:28 PM » |
|
have you tried following the steps outlined by google that could otherwise be effecting your verification if you have the code in the right place ? http://www.google.com/support/analytics/bin/answer.py?answer=57053
|
|
|
|
|
Logged
|
|
|
|
|
seamus
|
 |
« Reply #9 on: September 19, 2011, 01:31:51 PM » |
|
that's the thing I don't have a main page in my template ..only in my temp default
you can take that file from includes/templates/template_default/templates and copy it to you computer then upload the same file back into the templates directory in your temlate and then add the code to that. if there is a template file missing from your template, zen cart will use the template file thats in template_default all you need to do is copy the file from template_default and put it in your own template and edit it there
|
|
|
|
|
Logged
|
|
|
|
FionaJMD
Fiiiiiioooooooooooonnaaaaaaaaaaaaaaaaa
Global Moderator
Part of the Furniture
   
Karma: 5
Offline
Posts: 310
|
 |
« Reply #10 on: September 19, 2011, 02:36:51 PM » |
|
Do you think this could be my issue then, the code is in the wrong place.
|
|
|
|
|
Logged
|
|
|
|
Rainee Bows
hobnob keeper
Shareholder ;o)
   
Karma: 19
Offline
Gender: 
Posts: 943
Currently Online: 109 visitors - 21 Members.
|
 |
« Reply #11 on: September 19, 2011, 04:36:01 PM » |
|
possibly  , i havent looked at it on yours as yet ... Rainee x
|
|
|
|
|
Logged
|
|
|
|
|
Andy c
|
 |
« Reply #12 on: September 22, 2011, 04:07:59 PM » |
|
still getting this on my site .. Although I am receiving daily Activity keeps saying Tracking Status Tracking Not InstalledLast checked: 31-Dec-1969 16:00:00 PST The Google Analytics tracking code has not been detected on your website's home page. this is the source code from teh top <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25757464-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? ' https://ssl' : ' http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
|
|
|
|
|
Logged
|
|
|
|
Bri
Settling In

Karma: 0
Offline
Posts: 63
|
 |
« Reply #13 on: October 27, 2011, 02:37:55 PM » |
|
These are the instructions on google analytics site that I received. Paste this code on your site: For any PHP pages, put the following code in a file (for example, analyticstracking.php) and upload it to your site. Then, add the following line to each template page immediately after the opening <body> tag: <?php include_once("analyticstracking.php") ?>
I pasted the code into /public_html/includes/templates/template_default/common/tpl_main_page.php it seems to be the only php file with body tags in it, is this correct?
The php file I made with the tracking code in, I uploded to /public_html/includes is this correct?
|
|
|
|
|
Logged
|
|
|
|
|
Andy c
|
 |
« Reply #14 on: October 28, 2011, 07:43:44 AM » |
|
sounds right ,mine works fine... but it still isn't correct or been found yet no one seems to know why
Tracking Status Tracking Not InstalledLast checked: 31-Dec-1969 16:00:00 PST 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.
|
|
|
|
|
Logged
|
|
|
|
|