Zen Cart Logo
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Views: 225,787

Results 281 to 300 of 660
3 Jul 2007, 3:03 AM
#282
cudaboy71 avatar

cudaboy71

New Zenner

Join Date:
Apr 2006
Posts:
54
Plugin Contributions:
0

Re: Google Analytics Integration

i guess a simple 'thank you' post is too short to post. so, thank you in a much longer than necessary format ;)

3 Jul 2007, 3:20 AM
#283
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Any time. :smile:

11 Jul 2007, 4:07 AM
#284
gb2007 avatar

gb2007

New Zenner

Join Date:
Feb 2007
Posts:
16
Plugin Contributions:
0

Re: Google Analytics Integration

econcepts,

I want to get the google analytics working on my site. However when I read the README file I am not understanding your second point as below:

  1. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

My question is which file I need check? In includes/templates/, I can't find a file that looks like [your_template]?

thanks a lot!

11 Jul 2007, 11:28 AM
#285
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

gb2007,

Let me first point out that I did not make the module itself (nor the Readme that came with it). I do understand how it works though.

Having said that, the answer to your question is as follows:

  1. if you are running any of the newest versions of Zen, then that line is already included in your default install so just by-pass that step and everything will work fine.

  2. If you are running older versions, or want to "just make sure" it is there, then you will find that line in the following file:
    /includes/templates/[your_template]/common/tpl_main_page.php

Keep in mind that [your_template] means your CUSTOM template name ... not "[your_template]" exactly.

So, if you named your custom template "mycustomtemplate", then the path to the file would look like this:

/includes/templates/mycustomtemplate/common/tpl_main_page.php

12 Jul 2007, 4:00 AM
#286
gb2007 avatar

gb2007

New Zenner

Join Date:
Feb 2007
Posts:
16
Plugin Contributions:
0

Re: Google Analytics Integration

eric,

think i follow the exact instruction to install GA module on my site. However when I go to GA site to check the status, it still says that "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.". AM I missing anything here or it's just a time issue and i should wait a little bit longer?

BTW, I copied the code from the README file to tpl_main_page.php but I notice that code is different from the code on GA site. WIll that be an issue?

thanks,
gb2007

12 Jul 2007, 11:21 AM
#287
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

gb2007:

eric,

think i follow the exact instruction to install GA module on my site. However when I go to GA site to check the status, it still says that "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.". AM I missing anything here or it's just a time issue and i should wait a little bit longer?

BTW, I copied the code from the README file to tpl_main_page.php but I notice that code is different from the code on GA site. WIll that be an issue?

thanks,
gb2007

My suggestion would be to "start over" from the beginning. If you are using the Google Analytics that is available from the Downloads section, then the only thing you should need to copy from the readme file is the portion of PHP code that eventually will insert the Google Tracking code on the bottom of your pages (should be pasted just above the closing "</BODY> tag on your page).

That alone will not install the module though. You have to follow the first few steps as well. Upload the proper files to your website as indicated in the readme, then run the SQL file from your Tools > Install SQL Patches (in the admin).

After all that, you need to CONFIGURE the system by entering your GA Number in the "Configuration > Google Analytics Configuration" section (of the Admin).

The code you are copying to the tpl_main_page.php file is NOT the actual Google Analytics code. It is simply the PHP code used to insert the tracking into the footer of your web site pages.

13 Jul 2007, 8:46 PM
#289
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

taydu:

Is this the same hack with simple google analytics ? The download link you gave is to simple google analytics.

I'm not sure what hack you are talking about. Also in your post, you say "Is it the same with Simple Google Analytics" ... "the link you gave is to Simple Google Analytics".

Let me know what you are looking for so I can point you in the right direction.

13 Jul 2007, 10:37 PM
#290
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

ok my question is google analytics intergration and simply google analytics are two different hack? if so where can i download google analytics?

14 Jul 2007, 1:45 AM
#291
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

taydu:

ok my question is google analytics intergration and simply google analytics are two different hack? if so where can i download google analytics?

There are two variations of the module. If you read back in this thread a page or two you will see that one of the mods is no longer supported (At least that is what the posts say).

The module that still is available, to my knowledge, is found here:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=412

The other one was taken down and no longer available as far as I can see with the most recent posts. Again, if you page back a few pages here (and even further to find more info), you'll get that same idea.

14 Jul 2007, 4:14 AM
#292
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

thank for your reply.

Are you currently using that hack (simply google analytics)? I follow every steps in the readme but still geting "Unknowing date" when i login google analytics to check the status.

http://www.zen-cart.com/forum/showthread.php?t=53701&page=23

can you please help thanks

14 Jul 2007, 11:58 AM
#293
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Make sure you have CAREFULLY followed the steps. Unless you are installing Conversion Tracking and / or Goal Tracking, there is no need to manually edit any files.

I use the module all the time and it works fine.

15 Jul 2007, 6:14 PM
#294
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

what about step3 ?

  1. At the bottom of templates/[your_template]/common/tpl_main_page.php
    Add this just before the </body> tag:
<?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?>

can you please take a look https://www.bestbuyfta.com/zencart I view the source code and the account is there ..

16 Jul 2007, 12:47 AM
#295
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Yes, you have to follow step 3. I was specifically talking about the circumstance that would arise if you were trying to install Conversion Tracking or Goals.

Yes as well, it looks like the TRACKING code is installed correctly. However, that doesn't mean you have it setup correctly on the Google side. Are you sure you gave Google the proper url to check (verify)?

It should work pretty easily, however, there are some minor things you need to work on out the Google end as well and since I can't see that, I can only say the TRACKING code is in place (by looking at your source), however, that doesn't tell me if you setup your actual Google Account properly.

16 Jul 2007, 12:52 AM
#296
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

since I install ZenCart on a sub directory (/zencart) should I enter https://www.bestbuyfta.com/zencart in google setup or just https://www.bestbuyfta.com? Well I tried it both ways and still no luck.

what are the proper steps to add new site on google side to make it work ?

16 Jul 2007, 1:11 AM
#297
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

You should enter the URL / directory of the page that you installed the tracking code on.

So, if that directory is under "/zencart", then you will want to tell Google to look here:

http://www.yourwebsite.com/zencart/

If you have the tracking code on the root, then you will want to point here:

http://www.yourwebsite.com/

It sounds like you have followed the steps to add a site to Google and get the tracking code (or you would not have got this far). However, there must be something you are missing. Again, without having a full look at it from all angles, It is tough to tell you what you may have missed.

16 Jul 2007, 3:13 AM
#298
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

hmm this is weird,

I create a .htm file and paste the java script code provide form google analytics and upload it to the top directory (public_html) and google detect the code, but when i upload it to a sub directory (i.e. public_html/zentest) and change the url in google setting and it can't even detect it.

16 Jul 2007, 6:07 AM
#299
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

thanks econcepts, finally got ti go work. Just Missed missed the forward slash at the end and it didn't pick it up.

16 Jul 2007, 11:08 AM
#300
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Glad you finally got it working. :smile: