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

Simple Google Analytics - Support

Views: 451,173

Results 861 to 880 of 2,165
6 Mar 2009, 2:52 PM
#861
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

mylildarlings:

Anyone?

Are you using the Simple Google Analytics mod? I've heard of this problem with the mod by Andrew in some cases but none with the Simple Google analytics mod (the one I built).

Can you give me a link and I'll take a look?

6 Mar 2009, 2:54 PM
#862
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

the_doomsayer:

Done the install, left it for a day to see if it was collecting data but nothing. In the analytics stats it just says "tracking unknown".
Checked the main page of my site and the codes not showing up in "view source".
Must have done something wrong just no idea what.

Any ideas?

Did you add the portion of code from step 3 (a bit of code has to be added to the tpl_main_page.php)? If you did not add that then even with the install, the code will not be on the page (thus the tracking not installed message.)

Can you post a link?

6 Mar 2009, 2:56 PM
#863
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

philip56:

Hi

I've just installed this mod in my zencart 1.3.8 - not activity yet but I note that I will have to wait until tomorrow.

I want to link my adwords account into analytics. The setup instructions in admin/configuration say to insert "your unique Google Conversion Tracking ID". I've gone though the process to get the code and got some code to insert into my site. This contains a 10 digit number, the google_conversion_id - I can't see a number anywhere else.

I've two questions

  1. Is this the number I insert?
  2. Do I still need to insert the code provided into my site?

Many thanks in advance.

Philip

If you are entering your "Google Analytics" number then it usually is not the 10 digit number. This is the Conversion Tracking number (which you get from within your Adwords account).

There are spots for each number from within the admin that allow you to add each of these. If you are using conversion tracking, make sure you turn it on from within the admin.

Tying your Adwords account into your Analytics account (to get integrated data between the two) is done from within your Analytics account.

6 Mar 2009, 3:04 PM
#864
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

sunflowertami:

Hi Edwin,

Actually it was your solution that I tried and thought it didn't work because I didn't see any results the next day. However when I checked today the results kicked in and yeah!! it is working again! Great SOLUTION! Thanks!! :clap:

That is one way to get it accomplished. I've got to update a few minor things in the Google tracking code (nothing major) and when I do will provide JROX compatibility instructions.

Basically JROX uses the override on the checkout success page to place it's tracking only there. As a result, when a successful purchase completes, zen uses the overridden tpl_footer.php page in place of the default one. This results in the Google tracking code being dropped (which must be located on all pages for it to work).

The route I've taken in the past with others was to actually move the JROX tracking code into the tpl_main_page.php code and add an if then statement checking to see if the page was the checkout success or not. If it is, the code is included. If it is not, the code is left out.

I'll address this in a future release of the mod here.

9 Mar 2009, 9:04 PM
#865
keithck73 avatar

keithck73

New Zenner

Join Date:
Feb 2009
Posts:
13
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello, I am using Zen Cart 1.3.8a and just installed Google Analytics on Saturday. I just went to my Google account and the status is still not showing as receiving data. I've double-checked the settings and everything seems to be correct. Any ideas? Thanks.

11 Mar 2009, 2:37 PM
#866
the_doomsayer avatar

the_doomsayer

New Zenner

Join Date:
Feb 2009
Location:
Thailand
Posts:
50
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Did you add the portion of code from step 3 (a bit of code has to be added to the tpl_main_page.php)? If you did not add that then even with the install, the code will not be on the page (thus the tracking not installed message.)

Can you post a link?

http://www.fluidclothing.com

12 Mar 2009, 3:20 AM
#867
the_doomsayer avatar

the_doomsayer

New Zenner

Join Date:
Feb 2009
Location:
Thailand
Posts:
50
Plugin Contributions:
0

Re: Simple Google Analytics - Support

No idea whats changed but checked my analytics account and its decided to receive data, weird.

17 Mar 2009, 11:25 AM
#868
verve avatar

verve

New Zenner

Join Date:
Dec 2008
Location:
Cape Town! South Africa
Posts:
9
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi

I've installed the add-in and on Google Analytics site it says "Receiving data" as the status but the reports don't show any website visits even though I know some people have said that they did visit the site. Have I done something wrong?

Thanks!

17 Mar 2009, 9:44 PM
#869
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Simple Google Analytics - Support

Do you mind providing the "if" statement you're using when you move the code to the tpl_mainpage.php file? Thanks!

econcepts:

That is one way to get it accomplished. I've got to update a few minor things in the Google tracking code (nothing major) and when I do will provide JROX compatibility instructions.

Basically JROX uses the override on the checkout success page to place it's tracking only there. As a result, when a successful purchase completes, zen uses the overridden tpl_footer.php page in place of the default one. This results in the Google tracking code being dropped (which must be located on all pages for it to work).

The route I've taken in the past with others was to actually move the JROX tracking code into the tpl_main_page.php code and add an if then statement checking to see if the page was the checkout success or not. If it is, the code is included. If it is not, the code is left out.

I'll address this in a future release of the mod here.

22 Mar 2009, 1:45 AM
#870
mylildarlings avatar

mylildarlings

New Zenner

Join Date:
Oct 2008
Posts:
21
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Are you using the Simple Google Analytics mod? I've heard of this problem with the mod by Andrew in some cases but none with the Simple Google analytics mod (the one I built).

Can you give me a link and I'll take a look?
Thanks for writing me back. I still am looking for a solution. Yes, I loaded Simple Google analytics and it's this file from the mod that is causing the message.
includes/templates/your template/google_analytics/google_analytics.php

I've delete this file but everything else from the contribution is still loaded.

https://www.mylildarlingsboutique.com

Thanks!

23 Mar 2009, 4:37 PM
#871
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

Got some error messages when trying to install this program... hoping you can help me out.

After step 3 I got this code on my website:

Warning: require(includes/templates/template_default/google_analytics/google_analytics.php) [function.require]: failed to open stream: No such file or directory in /home/thrift4/public_html/includes/templates/maria/common/tpl_header.php on line 109

Did I miss something in step 1?

In step 3: I added the code:
<?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?> to my file as instructed (although may have added it in the wrong place) Here's a snippet of that file:

<!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links--> </div> <?php **require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?>**<?php } ?>

FYI: I had not yet copied and pasted the googlesanalytics.sql patch into my 'Install sql patches' area yet.

Thanks for your help!

24 Mar 2009, 2:35 PM
#872
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Just realized where I may have went wrong. As per the instructions:

*Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code:

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>*

The only file I had in the my_template/common was a tpl_header.php (this is the one i made changes to)

The only tpl_main_page.php file is in my template_default/common folders. Should I be editing this file and copying it over to
my_template/common files?

thanks!

24 Mar 2009, 2:54 PM
#873
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I ran it on my test site with the revision I mentioned above and it seemed to work, but have one more question before I run it on my live site :blush:

When I copy & paste google sql patch into my Install sql patch area ...the Executor notes that I 'should end with ;'

However, in the googleanalytics.sql file- it ends with

#----------------------------------------

should I delete this last line before I add it to the sql.

thanks again!!

24 Mar 2009, 6:01 PM
#874
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

Me again :no:

went ahead with changes mentioned above. I'm getting 'Tracking not Installed' warning from Google. My # shows up on my Page Source, so not sure where I went wrong.

Any ideas would be appreciated.

thanks!

24 Mar 2009, 9:20 PM
#875
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: Simple Google Analytics - Support

looks like it's working now-just deleted the account # and re-entered it and now it's recieving data

sorry for all the lengthy posts....thanks anyway :smile:

25 Mar 2009, 3:33 PM
#876
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks for the great contrib!

Can someone tell me how to set up 'Site Search'? It's asking for a 'Query Parameter' and I'm not sure what to put. I searched the thread but didn't get any hits. Thanks!

3 Apr 2009, 1:13 PM
#877
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Me again. On top of the 'Site Search' question, has anyone noticed GA missing sales? I've tried switching from 'ga.js' to 'urchin.js' and I still can't get it to track every sale. I do have GA set for ecommerce.

3 Apr 2009, 1:41 PM
#878
beowulf8 avatar

beowulf8

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello,

I have installed the Google Analytics Mod and it works fine. Nevertheless, I have a small issue: My site runs in multiple domains (server-related issue).

Google says I must add two lines to the tracking code:

<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-12345-1"); **pageTracker._setDomainName("none"); pageTracker._setAllowLinker(true);** pageTracker._trackPageview(); </script>

I already did this. Now the second thing they ask for is this:

Next, you'll need to add the _link function to any links between the domains. Please note that your analytics tracking code and calls to _gat._getTracker (shown in Step 1) must be placed on the page above the call to _link. If your current links look like:

<a href="https://www.secondsite.com/?login=parameters"> Login Now</a>

change them to:

<a href="https://www.secondsite.com/?login=parameters" onclick="pageTracker._link(this.href); return false;">Login Now</a>

  1. If you send information between domains using forms, you'll need to use the _linkByPost function. Your analytics tracking code and calls to _gat._getTracker (shown in Step 1) must be placed on the page above the call to _linkByPost.
<form action="http://newdomain.com/form.cgi" onSubmit="javascript:pageTracker._linkByPost(this)">

This will work even for forms where the method="GET"

How can I do this? Please help me!

Thanks a lot!

7 Apr 2009, 8:07 PM
#879
lieven23 avatar

lieven23

Zen Follower

Join Date:
Aug 2008
Posts:
340
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have installed the zencart apple template and since ten I don't receive google analytics info anymore.
Why is this?

9 Apr 2009, 12:52 AM
#880
arthurc avatar

arthurc

New Zenner

Join Date:
Nov 2008
Posts:
3
Plugin Contributions:
0

Re: Simple Google Analytics - Support

This is a long long thread. My problem may have been resolved before but I can't find the fix.

Step 3 in the installation of the Simple Google Analytics requires a line of code to be inserted just before the </body> tag at the end of tpl_main_page.php. I did that. The code now looks like this:

<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>

And when I run the code, the page source ends like this:

<!--eof- banner #6 display -->

That's it. No analytics code. Even lost the </body> tag.

What am I missing, please.