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

Simple Google Analytics - Support

Views: 451,123

Results 1,661 to 1,680 of 2,165
11 Nov 2011, 8:27 PM
#1661
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Simple Google Analytics - Support

rabble:

bridge32 - No need to do anything to the database if upgrading from 1.2.4. Check your source to see that the code is still being generated correctly.

How do i check my code? :blush:

11 Nov 2011, 8:28 PM
#1662
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Simple Google Analytics - Support

BlessIsaacola:

Does anybody have a link to the download for version 1.2.5? Thanks!

It's on the previous page, near the top :smile:

11 Nov 2011, 8:37 PM
#1663
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Ah, is this the sorce code i should have? Found this on my site, i have put XX and asterix to hide tracking number:

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XX-********-
']);

_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>

</head>*
11 Nov 2011, 8:42 PM
#1664
rabble avatar

rabble

New Zenner

Join Date:
May 2011
Posts:
7
Plugin Contributions:
0

Re: Simple Google Analytics - Support

bridge32:

Ah, is this the sorce code i should have?

That looks correct; it should show up in the source code of every page. Now check google.com/analytics/ to verify that it is receiving data. If it is, you're golden.

11 Nov 2011, 10:14 PM
#1665
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Simple Google Analytics - Support

rabble:

That looks correct; it should show up in the source code of every page. Now check google.com/analytics/ to verify that it is receiving data. If it is, you're golden.

Cheers Rabble! All looks good, just checked, thanks.

12 Nov 2011, 1:21 PM
#1666
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bridge32:

Ok im upgrading from version 1.2.4, i followed the upgrade installation guide and got to this part:

*3a) Open the file found at: /includes/templates/[your_template]/common/html_header.php

3b) Find the lines that look like this just before the </head> tag and REMOVE them (delete). Save the file and re-upload to your server.*

Then i dont know what to do.
Do i run the install.sql file? or run the Upgrade toversion 1-2-4?
Sorry but im lost with this :blush:
P.s I have uploaded and overwritten files as required per upgrade notes.
Regards
Nic

If you already have 1.2.4 then there is no need to run any SQL patch. Just upload the files included in the package (overwriting those already in place) and then remove the lines of code in the file you mentioned (that portion is now covered in an override file found int he jscript directory with the new package.)

12 Nov 2011, 1:22 PM
#1667
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

BlessIsaacola:

Does anybody have a link to the download for version 1.2.5? Thanks!

This should be active in the zen downloads area, but if not, you can get it from here: (posted this link with a few other update notes a page or so ago.)

http://www.zencartoptimization.com/downloads/

12 Nov 2011, 5:06 PM
#1668
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Simple Google Analytics - Support

econcepts:

This should be active in the zen downloads area, but if not, you can get it from here: (posted this link with a few other update notes a page or so ago.)

http://www.zencartoptimization.com/downloads/

Thank you so much I downloaded it from your site because it's not available on Zen Cart yet. I know this is not the thread for it but any plan to publicly release your mod for Microsoft AdCenter tracking? Thanks!

12 Nov 2011, 8:20 PM
#1669
mikebr avatar

mikebr

Zen Follower

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

Re: Simple Google Analytics - Support

I've just downloaded the Simple Google Analytics mod v1.2.5
What pages is it advised to place the Google Analytics Code?
One of the pages i understand the code should be placed is the

/common/tpl_main_page.php

Where in this page does the following code go?

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
  _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>

Google says to place the code just before the tag </header>

Unfortunately that tag does not exist.
Any help would be appreciated

13 Nov 2011, 3:04 AM
#1670
mikebr avatar

mikebr

Zen Follower

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

Re: Simple Google Analytics - Support

Hi
After downloading the Simple Google Analytics v 1.2.5
and installing the following code has been included in the source 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-XXXXXXXX-X");
pageTracker._initData();
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXX-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>
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
</script>

Where have I made a mistake?
it looks like some duplications.
I have placed the google analytics code in the custom area within the admin configuration/ google analytics

14 Nov 2011, 3:09 PM
#1671
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

BlessIsaacola:

Thank you so much I downloaded it from your site because it's not available on Zen Cart yet. I know this is not the thread for it but any plan to publicly release your mod for Microsoft AdCenter tracking? Thanks!

On the MSN AdCenter tracking, yes, I do plan on releasing that. After the merger of AdCenter and Yahoo, some things have changed and the way the tracking is generated is different.

14 Nov 2011, 3:12 PM
#1672
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

mikebr:

Google says to place the code just before the tag </header>

Unfortunately that tag does not exist.
Any help would be appreciated

If using this module you do not need to include any tracking as Google indicates (do not follow their instructions.) This module automatically inserts all the proper tracking, on the proper pages, and in the proper locations for you.

Just follow the readme that came with the package.

14 Nov 2011, 3:14 PM
#1673
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

mikebr:

I have placed the google analytics code in the custom area within the admin configuration/ google analytics

Remove that 'custom code'. You do NOT need to copy and paste any code into the site. The module does this automatically for you. All you have to do is enter your Tracking IDs in the spaces provided in the admin and let the module do the rest.

28 Nov 2011, 2:31 AM
#1674
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Just installed SGA 1.2.5 on my Zencart 1.5 dev site. Google analytics does not appear under configuration. I believe in 1.5 either some extya sql is needed, or some extra lines in the function are required to register the module with admin. Can you please check this as SGA is listed on the downloads page as 1.5 compatible? Thanks!

29 Nov 2011, 9:59 AM
#1675
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Simple Google Analytics - Support

So I upgraded from 1.2.2. I have an odd problem with my configuration menu though. I now have a "Google Analtyics" menu with all of my old options from the previous install.

I also have a NEW configuration menu called "Google Analytics Configuratiion" with just three options:

  1. Google Tracking Code Type To Use
  2. Add Custom Tracking After Main Analytics Code?
  3. Google Custom Code - After

My code seems to be working fine, but the configuration menu thing is driving me a little batty! Any ideas?

29 Nov 2011, 10:06 AM
#1676
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Simple Google Analytics - Support

swamyg1:

So I upgraded from 1.2.2. I have an odd problem with my configuration menu though. I now have a "Google Analtyics" menu with all of my old options from the previous install.

I also have a NEW configuration menu called "Google Analytics Configuratiion" with just three options:

  1. Google Tracking Code Type To Use
  2. Add Custom Tracking After Main Analytics Code?
  3. Google Custom Code - After

My code seems to be working fine, but the configuration menu thing is driving me a little batty! Any ideas?

We took the "radical" step of removing the ALL the fields relating to GA from the configuration and configuration_group database tables, using phpMyAdmin.

At the same time, we remioved ALL the files (from both the new and old versions).

Then, we did a completely FRESH install of the new mod.

It's not difficult removing the fields from the dbase - but BACKUP THE DBASE BEFORE you do anything inside phpMyAdmin. Exercise care - remember... configuration table AND configuration_group table contain fields that relate to the module.

29 Nov 2011, 2:59 PM
#1677
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

gothstone:

Just installed SGA 1.2.5 on my Zencart 1.5 dev site. Google analytics does not appear under configuration. I believe in 1.5 either some extya sql is needed, or some extra lines in the function are required to register the module with admin. Can you please check this as SGA is listed on the downloads page as 1.5 compatible? Thanks!

This should work just fine as is. Do you have any 'Admin Profiles' (passwords etc...) setup? If so, make sure you allow the proper user the ability to see the new addition (Tools > Admin Settings).

Let me know if that helps.

29 Nov 2011, 3:03 PM
#1678
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

swamyg1:

So I upgraded from 1.2.2. I have an odd problem with my configuration menu though. I now have a "Google Analtyics" menu with all of my old options from the previous install.

I also have a NEW configuration menu called "Google Analytics Configuratiion" with just three options:

  1. Google Tracking Code Type To Use
  2. Add Custom Tracking After Main Analytics Code?
  3. Google Custom Code - After

My code seems to be working fine, but the configuration menu thing is driving me a little batty! Any ideas?

It sounds to me that during upgrade the patch did not see the previous version (for whatever reason). I've never had this happen on an upgrade and it is patch related.

Rather than deleting all the entries as mentioned in the other post you could simply 'move' those items in the 'new' configuration menu to the 'pre-existing' menu option.

To do this you would need to know the group id of the new and the pre-existing menu options. Then either using phpMyAdmin manually alter them and update (changing the group id to the one you want under the three 'stray entries') or write an SQL statement to update this via the admin of zen (if you are versed in that area.)

Let me know if you need anymore info on this.

3 Dec 2011, 12:56 PM
#1679
jsweb avatar

jsweb

Zen Follower

Join Date:
Jul 2005
Location:
UK and Ireland
Posts:
392
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi Eric

Might be worth you adding a description here& in the README to explain how to get the module to display in ADMIN 1.5

Admin > Admin Page Registration

Page Key: (e.g. myModPageName)
Page Name: (e.g. BOX_MY_MOD_PAGE_NAME)
Page Filename: (e.g. FILENAME_PAGE_NAME)
Page Parameters: (e.g. option=1 or, more usually, leave blank)

Note we got it to display by delving directly into the ZC DB and new tables to cater for this..

4 Dec 2011, 9:04 PM
#1680
coffeecanada avatar

coffeecanada

New Zenner

Join Date:
Oct 2011
Location:
Toronto
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I copied + pasted my Google Analytics code directly into tpl_header, and when I log into analytics.google.com it isn't properly tracking paid vs. organic search.

It also won't track the dollar value on conversion, but it does properly detect conversions.

Will using Simple GA fix this?