Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 11:11:01 AM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12786 Posts in 1519 Topics by 6455 Members
Latest Member: fabiochappel1230
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Zen cart
| | | |-+  Google Analytics
« previous next »
Pages: [1] 2 Print
Author Topic: Google Analytics  (Read 952 times)
Andy c
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 581



WWW
« 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  mad mad

any ideas please
Logged
FionaJMD
Fiiiiiioooooooooooonnaaaaaaaaaaaaaaaaa
Global Moderator
Part of the Furniture
*****

Karma: 5
Offline Offline

Posts: 310



WWW
« 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
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« 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
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 581



WWW
« 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
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« 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
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 581



WWW
« 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
Member (ds)
Part of the Furniture
*****

Karma: 23
Offline Offline

Posts: 463


WWW
« 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
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 581



WWW
« 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 Offline

Gender: Female
Posts: 943


Currently Online: 109 visitors - 21 Members.


WWW
« 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

If you want the Rainbow,you have to put up with a little Rain
Facebook Articles
Graphic & Web Design Services
Business Network
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« 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 Offline

Posts: 310



WWW
« Reply #10 on: September 19, 2011, 02:36:51 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




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 Offline

Gender: Female
Posts: 943


Currently Online: 109 visitors - 21 Members.


WWW
« Reply #11 on: September 19, 2011, 04:36:01 PM »

possibly ;) , i havent looked at it on yours as yet ...


Rainee x
Logged

If you want the Rainbow,you have to put up with a little Rain
Facebook Articles
Graphic & Web Design Services
Business Network
Andy c
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 581



WWW
« 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 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
Members - (ws)
Shareholder ;o)
*****

Karma: 2
Offline Offline

Gender: Male
Posts: 581



WWW
« 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
Pages: [1] 2 Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009