Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,184

Results 761 to 780 of 2,165
3 Jul 2008, 2:00 AM
#761
xrobvx818 avatar

xrobvx818

New Zenner

Join Date:
Mar 2008
Posts:
17
Plugin Contributions:
0

Simple Google Analytics - Support

econcepts:

The number should bee entered EXACTLY as Google shows it. If your number has the "-" then add it. If not don't.

Google has a variety of ways of giving the tracking number.

thanks

i cant seem to get it to work, when i look at my source it has the google analytics account number on the bottom of every page. on google's end everything is fine because when i used to just have a "coming soon" splash page as my home page it was reporting. but i've never had it report on my zencart pages. right now im using it with the urchin tracker.

my website is http://www.kingpinstatus.com

3 Jul 2008, 2:24 AM
#762
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple Google Analytics - Support

Thank you for you response. I have completely uninstalled Andrews even the data base. What I was saying is do you have to add this

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4694054-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
```To the tpl_main_page.php along with the this code in the module
 ```php
<?php
  require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
  ?>
  
```This is what I need to know. Thank you
3 Jul 2008, 7:55 AM
#763
xrobvx818 avatar

xrobvx818

New Zenner

Join Date:
Mar 2008
Posts:
17
Plugin Contributions:
0

Re: Simple Google Analytics - Support

xRobVx818:

thanks

i cant seem to get it to work, when i look at my source it has the google analytics account number on the bottom of every page. on google's end everything is fine because when i used to just have a "coming soon" splash page as my home page it was reporting. but i've never had it report on my zencart pages. right now im using it with the urchin tracker.

my website is http://www.kingpinstatus.com
It actually works now i redid the sql install patch i think that helped it.

3 Jul 2008, 9:04 AM
#764
knighs2 avatar

knighs2

New Zenner

Join Date:
May 2007
Posts:
42
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi Guys,

I was wondering if anyone has had a similar issue to me.
Ive been running the mod and after some time testing which urls to put in finally got Anylitics to capture goal data.

However although im showing X amount of people clicking on product pages its not showing that ANY of them moved on to view cart, billing etc Although there have been sales. View cart gets no hits at all.

I removed view cart and just had product pages and then login/billing etc
Again lots of hits but no one moving from products to checking out.

Instead it shows the customers as entering on the billing page, or the login etc and then it goes down the funnel.

I do have SSL on the checkout. Is there a problems going from non SSL to SSL ? Could that by why they dont travel down the funel ?

Thanks

Shane

3 Jul 2008, 11:26 AM
#765
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

countrycharm:

Thank you for you response. I have completely uninstalled Andrews even the data base. What I was saying is do you have to add this

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-4694054-1"); pageTracker._initData(); pageTracker._trackPageview(); </script>
>  ```php
<?php
  require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
  ?>
  
```This is what I need to know. Thank you

No. You do not need (or want) both codes in there. The only thing you need to install on the tpl_main_page.php is the:
```php
<?php
  require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
  ?>
  

portion of code. My contribution does the rest for you.

3 Jul 2008, 11:29 AM
#766
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

knighs2:

Hi Guys,

I was wondering if anyone has had a similar issue to me.
Ive been running the mod and after some time testing which urls to put in finally got Anylitics to capture goal data.

However although im showing X amount of people clicking on product pages its not showing that ANY of them moved on to view cart, billing etc Although there have been sales. View cart gets no hits at all.

I removed view cart and just had product pages and then login/billing etc
Again lots of hits but no one moving from products to checking out.

Instead it shows the customers as entering on the billing page, or the login etc and then it goes down the funnel.

I do have SSL on the checkout. Is there a problems going from non SSL to SSL ? Could that by why they dont travel down the funel ?

Thanks

Shane

It sounds like you have set something up wrong with regard to the funnel the goal is associated with. This is typically the problem when you experience the issues you are seeing.

I would go back and recheck the urls you setup for the funnel and make sure you got the "head match" turned on as well.

3 Jul 2008, 2:20 PM
#767
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple Google Analytics - Support

Thank you for your help again. I had it that way for about 2 weeks and google was not collecting any data what so ever. I added the other code from google and it started showing data again. I don't know whats with that. I can not get any data to collect for the E-Commerce part of it. I have it checked Yes, an E-Commerce Site in the edit on google.
Thank you

4 Jul 2008, 7:10 AM
#768
razmear avatar

razmear

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I just wanted to thank the author for making this available. Its rare that you get such easy to follow instructions and setup was flawless and took about 30 minutes.
I'm now 'waiting for data' on the analytics site and no problems or errors on Zencart.

:clap: :clap: :clap:

Best Regards,
Eric Burke

6 Jul 2008, 1:02 AM
#769
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Razmear:

I just wanted to thank the author for making this available. Its rare that you get such easy to follow instructions and setup was flawless and took about 30 minutes.
I'm now 'waiting for data' on the analytics site and no problems or errors on Zencart.

:clap: :clap: :clap:

Best Regards,
Eric Burke

Thanks and glad you like it Eric. I've got some good response from it.

6 Jul 2008, 2:30 AM
#770
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple Google Analytics - Support

econcepts did you read my other post from the other day. Thanks in advance.

8 Jul 2008, 12:27 AM
#771
timstoel avatar

timstoel

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I am not sure I did this right but it appears to be working.

I added

*<?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?> *

to the very end of the tpl_header.php file and it seems to be working ok. I don't know if this is the RIGHT way to do it, but it looks like it is A way to do it.

Tim

11 Jul 2008, 1:11 PM
#772
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple Google Analytics - Support

[quote]Thank you for your help again. I had it that way for about 2 weeks and google was not collecting any data what so ever. I added the other code from google and it started showing data again. I don't know whats with that.** I can not get any data to collect for the E-Commerce part of it.** I have it checked Yes, an E-Commerce Site in the edit on google.
Thank you[/quote
Has anybody had this problem

13 Jul 2008, 12:39 PM
#773
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: Simple Google Analytics - Support

G'day,

I'm trying to upgrade from version 1.0 to version 2.1.2. the instruction say...

If you are upgrading (from the oldest 1.0 version), you will need to use the SQL file that is called googleanalytics-UPGRADE.sql

But the file googleanalytics-UPGRADE.sql is missing.

Where can I source it from?

Best Regards, Lloyd Borrett.

14 Jul 2008, 1:15 PM
#774
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

[QUOTE=countrycharm;582515]> Thank you for your help again. I had it that way for about 2 weeks and google was not collecting any data what so ever. I added the other code from google and it started showing data again. I don't know whats with that.** I can not get any data to collect for the E-Commerce part of it.** I have it checked Yes, an E-Commerce Site in the edit on google.

Thank you[/quote
Has anybody had this problem

This has to be a setup problem. The only way I would be able to diagnose it is to take a look. But it has to be a setup issue somewhere.

14 Jul 2008, 1:23 PM
#775
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

lloyd_borrett:

G'day,

I'm trying to upgrade from version 1.0 to version 2.1.2. the instruction say...

But the file googleanalytics-UPGRADE.sql is missing.

Where can I source it from?

Best Regards, Lloyd Borrett.

Lloyd,

Wow. Great catch. It looks like that file is not in the package you received. I'll have to add that for older upgrades. It appears to have been "dropped" during one of the releases.

Attached you will find the file you need. (I named it ".txt" for the upload, but it should be ".sql" technically). Copy and paste this into your SQL patch section from the admin.

You should run this file 1st, and then after running this, run the subsequent upgrade file (that is included with the package). This will bring you up to speed without removing any previously entered values.

Let me know if you have any questions.

14 Jul 2008, 1:24 PM
#776
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

timstoel:

I am not sure I did this right but it appears to be working.

I added

*<?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?> *

to the very end of the tpl_header.php file and it seems to be working ok. I don't know if this is the RIGHT way to do it, but it looks like it is A way to do it.

Tim

That is the correct way to do it. At the end of the tpl_main_page.php file just above the closing "</BODY>" tag.

15 Jul 2008, 8:34 AM
#777
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: Simple Google Analytics - Support

econcepts:

Lloyd,

Wow. Great catch. It looks like that file is not in the package you received. I'll have to add that for older upgrades. It appears to have been "dropped" during one of the releases.

Attached you will find the file you need. (I named it ".txt" for the upload, but it should be ".sql" technically). Copy and paste this into your SQL patch section from the admin.

You should run this file 1st, and then after running this, run the subsequent upgrade file (that is included with the package). This will bring you up to speed without removing any previously entered values.

Let me know if you have any questions.

Okay, so I ran the SQL file googleanalytics-UPGRADE.sql and received the following error message:

1062 Duplicate entry 'GOOGLE_CONVERSION_ACTIVE' for key 2
in:
[INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Activate Conversion Tracking', 'GOOGLE_CONVERSION_ACTIVE', 'No', 'This element enables you turn on or off Google Conversion Tracking.
 
[B]Please Note:[/B] Conversion tracking is used to track the effectiveness of Google AdWords paid search campaigns. If you are [B]not[/B] running any paid search campaigns, then you should leave this set to "No".
 
If you are running Google AdWords (paid search) campaigns, then turning this on will place the proper conversion tracking code on your checkout success page and enable you to start tracking conversions.
 
Turning this on [B]requires you[/B] to enter your unique Google Conversion Tracking ID in place of the "XXXXXXXXXXX" number shown in the next section.
 
For more hints and tips on how to use Google Analytics to increase sales from your store, visit [B][URL="http://www.zencartoptimization.com/"]ZenCartOptimization.com[/URL][/B]
 
[B]Do you want to turn on Google AdWords Conversion Tracking?[/B]
', @t4, 5, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''Yes'', ''No''), ');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
 

Should I now proceed to run the file UPGRADE-FromVersion1-2-1_ONLY.sql, or will something have to be fixed first?

Best Regards, Lloyd Borrett.

17 Jul 2008, 2:12 AM
#778
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

lloyd_borrett:

Should I now proceed to run the file UPGRADE-FromVersion1-2-1_ONLY.sql, or will something have to be fixed first?

Best Regards, Lloyd Borrett.

Let's do this. Make it easier.

  1. Go into your admin and Configuration > Google Analytics Configuration.

  2. Write down your analytics tracking number

  3. Run the "INSTALL" file for the 1.2.2 version. This will first DELETE the previous DB entries and then re-install from scratch with the new updates. Don't bother with the update patch any more.

  4. Go back into your admin and go to Google Analytics Configuration again. Re-enter your tracking ID and save.

You're all set. I would also recommend removing the file specified in the install (on old "on_load.js" file that was used in older versions but is not needed in the newer one.

See if that helps.

17 Jul 2008, 11:34 AM
#779
anita avatar

anita

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Eric will you take a look at my site please? I didn't have any problems in the install, but Google still says Tracking not installed. I am running 1.27 in case you need to know that. Thank you!

17 Jul 2008, 1:46 PM
#780
littleturtlemama avatar

littleturtlemama

New Zenner

Join Date:
Mar 2007
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I recently switched my website to zencart, and installed this mod. Googleanalytics says that it's receiving data, but since I switched from the old cart to zen it's showing zero visits to my site - no data at all. What have I done wrong? The website is http://www.littleturtleknits.com/
I'm running 1.3.7.