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

Simple Google Analytics - Support

Views: 451,119

Results 1,801 to 1,820 of 2,165
13 Apr 2012, 3:31 AM
#1801
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Simple Google Analytics - Support

notageek:

Catattack,

The Simple Google Analytics add-on module is most definitely still in the add-on list.

The latest update appears to be by Countrycharm from Post #1766 in this thread, as it is dated 2/28/12, which is approximately when her proposed upgrade for Zen-Cart version 1.5 was approved.Not Countrycharm.. Eric updated this add-on.. (see the screenprint attached to my post)

13 Apr 2012, 3:50 PM
#1802
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Simple Google Analytics - Support

DivaVocals:

Not Countrycharm.. Eric updated this add-on.. (see the screenprint attached to my post)
I have now....lol If was probably me also. I just didn't change Eric name.
Nothing has change since 1.2.5b. All I did was create a upgrade file structure and upgrade instructions. I did update the googleanalytics-INSTALL.sql since TYPE=MyISAM is deprecated so it want cause any problems in the future.
Since I updated this I change the version number to 1.2.5c. The zen team asked to do this so they will know something has change.

13 Apr 2012, 4:41 PM
#1803
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Simple Google Analytics - Support

countrycharm:

I have now....lol If was probably me also. I just didn't change Eric name.
Nothing has change since 1.2.5b. All I did was create a upgrade file structure and upgrade instructions. I did update the googleanalytics-INSTALL.sql since TYPE=MyISAM is deprecated so it want cause any problems in the future.
Since I updated this I change the version number to 1.2.5c. The zen team asked to do this so they will know something has change.Ahhhh.. well that's a tad confusing..:huh::blush: Thanks for clearing that up for me..:smile: Though in giving this some thought, I have made two add-on submissions under the author's name, but I did let the author know about this and the changes I was making so that he wouldn't be surprised if he was asked about the update.. :yes:

Personally I wish the add-on submission wouldn't allow this, and I thought they were changing it to prevent that.. (submissions in someone else's name)

13 Apr 2012, 5:34 PM
#1804
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Simple Google Analytics - Support

DivaVocals:

Ahhhh.. well that's a tad confusing..:huh::blush: Thanks for clearing that up for me..:smile: Though in giving this some thought, I have made two add-on submissions under the author's name, but I did let the author know about this and the changes I was making so that he wouldn't be surprised if he was asked about the update.. :yes:

Personally I wish the add-on submission wouldn't allow this, and I thought they were changing it to prevent that.. (submissions in someone else's name)

They should"t allow it in my opinion but I did say

countrycharm:

For those of you who are having problems installing this module on zen cart v1.5.0
I Fixed the googleanalytics-INSTALL.sql,
googleanalytics-UNINSTALL.sql and the UPGRADE-toversion-1-2-4.sql.
Added a define to admin/includes/extra_datafile /google_analytics_database_names.php
so it would be compatible with zen cart v1.5.0. It will now show under the admin/configuration menu. I uploaded the update to the downloads area waiting on approval fron the zen team.
econcepts I hope you didn't mind, I see a lot of people were having issues with this. If I jump the gun you can roll it back.

And I still stand by that. If Eric want s to change it back his welcome to. I didn't want to take no credit or step on his feet here. My name is on the new submission I made. I will change it back though.

13 Apr 2012, 7:46 PM
#1805
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Simple Google Analytics - Support

countrycharm:

They should"t allow it in my opinion but I did say

And I still stand by that. If Eric want s to change it back his welcome to. I didn't want to take no credit or step on his feet here. My name is on the new submission I made. I will change it back though.
The only point I was making was that I didn't realize that you had submitted the latest version since Eric's name was still listed as the author.. 'tis all..:smile: Really.. it's not a big deal..:smile:

BTW, there's no such thing as "stepping on toes" for open source. If an update/bugfix is needed, submit it.. Heck Scott has submitted Super Orders fixes, and I HARDLY felt like he was stopping on anyone's toes.. That said, if there's a concern about "stepping on toes" that you should contact the author and work it out with them..

13 Apr 2012, 10:35 PM
#1806
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Simple Google Analytics - Support

DivaVocals:

The only point I was making was that I didn't realize that you had submitted the latest version since Eric's name was still listed as the author.. 'tis all..:smile: Really.. it's not a big deal..:smile:

BTW, there's no such thing as "stepping on toes" for open source. If an update/bugfix is needed, submit it.. Heck Scott has submitted Super Orders fixes, and I HARDLY felt like he was stopping on anyone's toes.. That said, if there's a concern about "stepping on toes" that you should contact the author and work it out with them..

Point taken

13 Apr 2012, 10:50 PM
#1807
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Simple Google Analytics - Support

countrycharm:

Point taken:hug:...

14 Apr 2012, 3:19 PM
#1808
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Re: Simple Google Analytics - Support

We just launched our site https://www.aydincoins.com but having trouble with Google Analytics, when I do a view Page Source of our site, I see the code at the bottom of the page, within the body and Google Analytics is still not recognizing the site, it says Tracking is not installed.

Here is the code below from our site, I just Xed the account numbers, the module is working in Zencart.

Any idea?

<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-XXXXXXXX-4"); pageTracker._initData(); <!-- Google Code for AydinCoinsSite Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = XXXXXXXXXX; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "hwCECPCW7QIQ3KHj_gM"; var google_conversion_value = 0; /* ]]> */ </script> <script type="text/javascript" src="<http://www.googleadservices.com/pagead/conversion.js">> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="<http://www.googleadservices.com/pagead/conversion/1071173852/?label=hwCECPCW7QIQ3KHj_gM&guid=ON&script=0"/>> </div> </noscript> pageTracker._trackPageview(); pageTracker._trackPageLoadTime(); </script> </body></html>
15 Apr 2012, 12:25 AM
#1809
northfork avatar

northfork

New Zenner

Join Date:
Oct 2004
Location:
Montana
Posts:
43
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Well, if you look at the source code on your page and in the G Analytics part it actually, has:

alt=""

Then you're not doin it right.

the &quot is an html entity replacement for "

I'm not sure what you might have done to convert the "

to &quot.

but that's broken.

15 Apr 2012, 7:47 AM
#1810
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Simple Google Analytics - Support

How did you place the UA code into your zencart installation?

When you set up a GA account at Google, it will generate a few lines of code, which it then says need to be pasted into your HTML...

If you use one of the zencart GA modules, you DON'T paste this code anywhere...

All you need is your tracking number.

Describe HOW you configured GA on your site.

15 Apr 2012, 2:40 PM
#1811
polygone avatar

polygone

New Zenner

Join Date:
Jan 2008
Location:
Toronto
Posts:
73
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I thought I had this working but GA reports "Tracking Not Installed" for https://www.canadianbusinessresources.ca/purchase/index.php

ZC 1.3.9h
Simple GA 1.2.5b
Source View within </heading>

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXX-X']); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); (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>

The only odd thing is the line <!--simple google analytics--> just before the </body> tag.

Please help me sort out what I have done wrong.

15 Apr 2012, 3:03 PM
#1812
polygone avatar

polygone

New Zenner

Join Date:
Jan 2008
Location:
Toronto
Posts:
73
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I just checked common/tpl_main_page.php and see

<!--simple google analytics--> <?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?> </body>

have I combined old & new install methods?

Please advise

15 Apr 2012, 4:04 PM
#1813
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Simple Google Analytics - Support

polygone:

I just checked common/tpl_main_page.php and see

<!--simple google analytics--> <?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?> </body>

have I combined old & new install methods?

Please advise

If you were running zen cart v1.3.9 and simple google analytics v1.2.4, v1.2.5 everything should be correct in your insulation. Nothing has been change in simple google analytics v1.2.5a, simple google analytics v1.2.5b, simple google analytics v1.2.5c except I created and upgrade folder and created a upgrade.txt file. so this would be easier for the installer.

NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous location

At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php

Find the lines of code that look like this (found below) just before the </body> tag:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } ?>

CHANGE / replace the lines of code to look like this:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?>

Hope this helps.

16 Apr 2012, 12:02 AM
#1814
swjake avatar

swjake

New Zenner

Join Date:
Feb 2012
Posts:
20
Plugin Contributions:
0

Re: Simple Google Analytics - Support

So would anyone be able to provide the code to properly setup Bing AdCenter Conversion tracking. Earlier in the thread Eric said you needed to use an "if, then" statement similar to one used for google and just substitute the code provided by AdCenter...anyone know how to go about this?

16 Apr 2012, 7:53 PM
#1815
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Polygone,

It's probably obvious to you, but since a comment above says you don't paste the code in your html, it may be worth pointing out that you must go to the Admin for Simple Google Analytics and enter your Google Analytics code there.

16 Apr 2012, 7:59 PM
#1816
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Still puzzling over what could be the problem when my functioning Google Analytics just stopped working on one site but not another, so that on my non-working site when I "view source," I cannot see the GA code.

Is there some way to identify what has changed or what could have changed to make the code disappear in "view source" when it plainly is still in the html header and body files as it was when it was working?

Do I just go through the header and body files line by line in comparison with prior versions using WinMerge? Should I assume something in these files is suddenly broken, or would there be some add-on that interferes? For example, I added the Link Exchange module to my two sites, one of which still shows GA in "view source." Is WinMerge the only possible avenue of investigation? Am I on the right process track?

Notageek

17 Apr 2012, 12:25 PM
#1817
gcopping avatar

gcopping

New Zenner

Join Date:
Jan 2010
Posts:
80
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I am trying to install Simple Google Analytics Version: 1.2.5c on Zencart v1.5.0. However when I get to trying to find tpl_main_page.php in includes/templates/my_template/common I find that it does not exist. I found a post saying that this may happen and I should put the code in includes/templates/my_template/common/tpl_header.php but this php file does not contain any body tages and the readme file says the code needs to go before the </body> tag. So now I don't know what to do - can anyone help with this?

17 Apr 2012, 1:03 PM
#1818
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Simple Google Analytics - Support

gcopping:

I am trying to install Simple Google Analytics Version: 1.2.5c on Zencart v1.5.0. However when I get to trying to find tpl_main_page.php in includes/templates/my_template/common I find that it does not exist. I found a post saying that this may happen and I should put the code in includes/templates/my_template/common/tpl_header.php but this php file does not contain any body tages and the readme file says the code needs to go before the </body> tag. So now I don't know what to do - can anyone help with this?

If you don't have a copy of the tpl_main_page.php in your includes/templates/my_template/common grab one from the zen cart templates/template_default/common and put it in includes/templates/my_template/common.

17 Apr 2012, 1:35 PM
#1819
gcopping avatar

gcopping

New Zenner

Join Date:
Jan 2010
Posts:
80
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks for the help - but if I do that will it not affect the template my site is using as it obviously doesn't need this file, and what will it do when it finds it?

17 Apr 2012, 2:53 PM
#1820
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Simple Google Analytics - Support

gcopping:

Thanks for the help - but if I do that will it not affect the template my site is using as it obviously doesn't need this file, and what will it do when it finds it?
What template are you using?