-
Re: Simple Google Analytics - Support
Check my PM to you. The only thing the old version did not have was the instructions to register the page with the Admin (a new feature in 1.5 that was not out when that version was published ... but it still works fine on 1.5 etc...).
So all you have to do now is register the page with the admin and you're all set.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
Still no go, running the query doesn't give me an gID, i don't think it's installed, but I've run the sql installer multiple times. What a pain....Where's a download link to the latest version????
-
Re: Simple Google Analytics - Support
I haven't uploaded the new version to Zen downloads yet. Will be doing that in a few days here. I will post a link to another location it can be donwloaded here once I get that in place (for those who are waiting on it.)
-
Re: Simple Google Analytics - Support
Cool. Would running the sql install file multiple times cause any problems? It seems that running it now isn't 'installing' it for me...I only assume it's not installed since 1)running the latest version doesn't add it to my admin 2) trying to run the query from myphpadmin returns no results....
"#1146 - Table 'thisish2_znc1.configuration' doesn't exist"
-
Re: Simple Google Analytics - Support
Running it multiple times is not going to hurt, but if you have already included your Tracking IDs etc... into the admin, it will remove them and you would need to re-enter those. You may also see (in some cases) if you run it multiple times an error saying 'can't add table xxx' (or something like that) because it already exists. No problem there either. The system is just saying the table already is present (or changes in it.)
If you try to run the query from phpmyadmin (which I don't recommend), just make sure you add any databsae prefix to all sections that are referenced to be added. When using the SQL patch tool in the Zen Cart admin, this is done automatically for you.
If you don't see the contribution configuration section in your admin make sure you try one of the following:
1) Check to see if you are running any "Admin Profiles" type of add-on that might need permissions added for the user who is logged in. If so, add the permissions to view the new contribution configuration section, and you should see it.
2) If you are not running any "Admin Profiles" type of add-on then look at the following:
If you are running the 1.2.5 version (the first 1.2.5 version .. .not subsequent 'b' / 'c' versions) then you still need to do the following for it to show up in your admin (this is included in the versions after my 1.2.5 original one, but it seems as though people are having issues with those newer versions do to the way they were setup and instructions were written. I'll likely be rolling this back in the next version here to make it easier to understand install again (it's actually very straight forward and should only take a maximum of 5 minutes to install and configure.)
The original 1.2.5 version did not include the additional language file for adding the section to you admin. Likewise, it didn't include instructions on how to register the page with the admin either (as neither of those options were available at the time of that release.)
So to get it showing in your admin do the following (again, this is already built into my newest 1.2.6 release set to be added soon.)
Quote:
Create this file: admin/includes/languages/english/extra_definitions/googleanalytics.php and placed the following code in this file:
<?php
define('UN_BOX_GOOGLE_ANALYTICS', 'Simple Google Analytics');
Here are the settings I used in the admin registration page.
Page Key: Simple Google Analytics
Page Name: UN_BOX_GOOGLE_ANALYTICS
Page Filename: FILENAME_CONFIGURATION
Page Parameters: gID=[enter your number here] (make sure you look up this in your database because the number will be different. see below on how to do this.)
Menu: configuration
Display on Menu? Y
Sort Order: whatever you want
To find the gID number run this select statement in phpMyAdmin:
SELECT * FROM `configuration` WHERE configuration_key like '%google%'
Then look for the configuration_group_id. This is the number to use after gID=
Upload that file to the directory on your server (listed in the path above) and try to access it from the admin again.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
If you try to run the query from phpmyadmin (which I don't recommend), just make sure you add any databsae prefix to all sections that are referenced to be added. When using the SQL patch tool in the Zen Cart admin, this is done automatically for you.
SELECT * FROM `configuration` WHERE configuration_key like '%google%'
Then look for the configuration_group_id. This is the number to use after gID=
How exactly should I run it from admin panel, what do I type and where will i get the gID? I tried copying and pasting the query into the sql patch tool but didn't get an ID.
I have a feeling the sql installer isn't installing what needs to be installed. I've run the query from myphpadmin and I keep getting errors...so frusterating how I can't get this to work.
-
Re: Simple Google Analytics - Support
In the instructions it says:
Quote:
Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code
But the template I'm using doesn't have that file. All I've got in that directory is:
html_header.php,
tpl_box_default_left.php,
tpl_box_default_right.php,
tpl_columnar_display.php,
tpl_drop_menu.php,
tpl_header.php,
tpl_footer.php.
Which should I add the code to?
-
Re: Simple Google Analytics - Support
If your template does not have it, you need to copy that from the template_default directory into your custom template directory. Once you have it in that location, add the code referenced on the install.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
The SQL query you referenced in this post should be run from a tool like phpmyadmin (all others in the install package should be run by copy and pasting them into the SQL Patch tool within your Zen Cart admin (under "Tools" menu.). All the query you listed is used for is to get your "id" that needs to be plugged into the proper location in the file referenced in my original post.
This query does not do anything in the way of installing the mod. You already ran that one earlier (you said) and that should be complete.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
This query does not do anything in the way of installing the mod. You already ran that one earlier (you said) and that should be complete.
That's the thing. I've run the sql install multiple times, old and new. I don't see the Google Analytics menu option in my config, so I try to run the query in myPHPadmin and I get the error I posted above. It seems to be looking for something that's not there, so it makes me think that the sql install hasn't done anything? So I try to manually get the gID to register it in the admin, but I can't get it since the query turns up no information, so where do I go from here?
-
Re: Simple Google Analytics - Support
I finally got it installed and in my config menu. Running the php query wasn't working so I manually went into my database and found the ID by looking through the list and registered it in the admin. Now I'm just waiting for it to receive the data.
I'm not sure if this might have caused an issue but I was having some other problems with some things not working quite right. I found out that when I installed zen cart via BlueHost's cPanel they added two slashes in my configure.php files (two files, one in the admin folder) so it was showing '//' for the DIR_WS_CATALOG' and DIR_WS_HTTPS_CATALOG entries..I deleted the extra slash in both files, changed permissions, saved and now things are working so much better.
-
Re: Simple Google Analytics - Support
Glad you got it working. That may or may not have been the problem, but one thing I do know is that often times, those 'automated install' scripts hosts have don't always work the way they should. That is one reason I prefer to manually install each time.
Let me know if you need anything else.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
The SQL query you referenced in this post should be run from a tool like phpmyadmin (all others in the install package should be run by copy and pasting them into the SQL Patch tool within your Zen Cart admin (under "Tools" menu.). All the query you listed is used for is to get your "id" that needs to be plugged into the proper location in the file referenced in my original post.
This query does not do anything in the way of installing the mod. You already ran that one earlier (you said) and that should be complete.
Let me know if that helps.
SO MANY PEOPLE ARE HAVING PROBLEMS WITH YOUR SQL CODE BECAUSE YOU NEED TO CORRECT YOU BASIC CODING!!!!!!!!
THANKS FOR THE FRUSTRATION & WASTING HOURS OF MY LIFE I WILL NOT GET BACK ECONCEPTS!!!!!!!!
For SQL File (googleanalytics-INSTALL.sql) the following need to be corrected:
Code:
DROP TABLE IF EXISTS google_analytics_languages;
CREATE TABLE google_analytics_languages (
languages_id int(11) NOT NULL auto_increment,
name varchar(50) NOT NULL default '',
code char(10) NOT NULL default '',
sort_order int(3) default NULL,
PRIMARY KEY (languages_id),
KEY idx_languages_name_zen (name)
) TYPE=MyISAM;
TO:
Code:
DROP TABLE IF EXISTS google_analytics_languages;
CREATE TABLE google_analytics_languages (
languages_id int(11) NOT NULL auto_increment,
name varchar(50) NOT NULL default '',
code char(10) NOT NULL default '',
sort_order int(3) default NULL,
PRIMARY KEY (languages_id),
KEY idx_languages_name_zen (name)
) ENGINE=MyISAM;
IM SO MAD AT YOU RIGHT ABOUT NOW!!!!!
-
Re: Simple Google Analytics - Support
-
Re: Simple Google Analytics - Support
I'm still learning code, now I know what to look for.
-
Re: Simple Google Analytics - Support
And let's start with the fact that yelling at people (beside being in poor form) is generally NOT the way to get help around here..
Second, Eric (Econcepts) is NOT the author of the CURRENT version of this add-on.. :no:
that said yelling at the current author isn't helpful either.. It's a simple mistake that was made without malice.. ALL add-ons here are contributed for free by volunteers who do it in the spirit of sharing with the community..
If you are going to yell at everyone for making a simple mistake, well that's just not cool.. IMHO :shocking: http://www.zen-cart.com/images/smilies/no.gif
Quote:
Originally Posted by
g00glethis1
SO MANY PEOPLE ARE HAVING PROBLEMS WITH YOUR SQL CODE BECAUSE YOU NEED TO CORRECT YOU BASIC CODING!!!!!!!!
THANKS FOR THE FRUSTRATION & WASTING HOURS OF MY LIFE I WILL NOT GET BACK ECONCEPTS!!!!!!!!
For SQL File (googleanalytics-INSTALL.sql) the following need to be corrected:
Code:
DROP TABLE IF EXISTS google_analytics_languages;
CREATE TABLE google_analytics_languages (
languages_id int(11) NOT NULL auto_increment,
name varchar(50) NOT NULL default '',
code char(10) NOT NULL default '',
sort_order int(3) default NULL,
PRIMARY KEY (languages_id),
KEY idx_languages_name_zen (name)
) TYPE=MyISAM;
TO:
Code:
DROP TABLE IF EXISTS google_analytics_languages;
CREATE TABLE google_analytics_languages (
languages_id int(11) NOT NULL auto_increment,
name varchar(50) NOT NULL default '',
code char(10) NOT NULL default '',
sort_order int(3) default NULL,
PRIMARY KEY (languages_id),
KEY idx_languages_name_zen (name)
) ENGINE=MyISAM;
IM SO MAD AT YOU RIGHT ABOUT NOW!!!!!
-
Re: Simple Google Analytics - Support
Hey Everyone-
I've just run through ANOTHER install, and still don't see the Analytics code showing up on any of my pages.
The configuration menu shows up fine in the admin screen. I entered the correct UA code, checked the permissions for my admin profile, enabled e-commerce in my GA account... I'm out of ideas. Anybody know what I could be doing wrong?
I'm running v1.3.9h. I can PM a link to our beta store if needed.
Please help! Thanks!
-
Re: Simple Google Analytics - Support
I'm sorry Econcepts and Everyone (Diva :-P) for yelling. I won't be doing that any more.
-
Re: Simple Google Analytics - Support
@g00glethis1: It really isn't a hard install at all (it should only take about 3 - 4 minutes max and has no overwrites.) There is only one minor change (already referenced) in the original SQL code if you are running PHP 5 or higher. Other than that, it is very straight forward.
Keep in mind that the latest version of code uploaded (along with instructions) are not mine (thanks for pointing that out DivaVocals). They were uploaded by another zen cart user who updated it to work with Zen 1.5 and made some other alterations (not to core code or functionality) to the installation instructions and file set layout. This apparently has made things more difficult to understand for others and will be migrated back to my original layout which didn't cause as many issues with understanding install apparently.
I have a new version just about ready and it will be uploaded very soon.
If you want help from the forums you really should read the rules and ask for help with more etiquette. Yelling is not appropriate, not tolerated, and will get you nowhere.
-
Re: Simple Google Analytics - Support
OK,OK I screwed the instructions up I apologize. Anybody who wants to install this module please install econcepts version Simple Google Analytics - Version: 1.2.5
1.2.5 works on all version of zen cart including (not limited to 1.5.x)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
countrycharm
OK,OK I screwed the instructions up I apologize. Anybody who wants to install this module please install econcepts version Simple Google Analytics - Version: 1.2.5
1.2.5 works on all version of zen cart including (not limited to 1.5.x)
No worries! It was something that was thought would make it better initially. :) Little did anyone know that it may make it harder. This will all be long forgotten with time. :)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
No worries! It was something that was thought would make it better initially. :) Little did anyone know that it may make it harder. This will all be long forgotten with time. :)
Forgot what??:laugh:
-
Re: Simple Google Analytics - Support
I just installed the latest version of this plugin to my site and now my homepage only displays a blank white screen and my favicon. When I view source, all that displays is the code in the <head> </head> section and nothing else.
Backend still displays fine and the plugin is active in the configuration area.
Help!
-
Re: Simple Google Analytics - Support
Update - all pages are dead. Only displaying the <head> </head> section and then nothing else.
I believe I followed all of the directions properly.
Here is the view source code displaying, from a random page:
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Stormy Sea [13897553] - 228RMB : Obido Educational Toys, Learning Made Fun</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Stormy Sea [13897553] Manipulatives Wooden Puzzles Table Games Role Play Child-size Furnishings Shanghai educational toys, Shanghai toy store, China wooden toys, China import toys" />
<meta name="description" content="Obido Educational Toys Stormy Sea [13897553] - Cannon balls, treasure chests, barrels, bottles and gold. Can your child balance them all on this wobbly, suspended ship or will they be lost to the sea? A roll of the die decides the next piece to be placed. Can be played together as a competitive or cooperative game. Bamboo toys are " />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="The Zen Cart® Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart®,
http://www.zen-cart.com eCommerce" />
<link rel="icon" href="http://www.obidotoys.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.obidotoys.com/favicon.ico" type="image/x-icon" />
<base href="http://obidotoys.com/" />
<link rel="canonical" href="http://obidotoys.com/index.php?main_page=product_info&products_id=54" />
<link rel="stylesheet" type="text/css" href="includes/templates/toys_blue/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/toys_blue/css/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/toys_blue/css/stylesheet_footer_menu.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/toys_blue/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/modules/pages/product_info/jscript_textarea_counter.js"></script>
script language="javascript" type="text/javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screen X=150,screenY=150,top=150,left=150')
}
function popupWindowPrice(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,scree nX=150,screenY=150,top=150,left=150')
}
//--></script>
</head>
**UPDATE: removing the posted code from the tpl_main_page.php file gets things working again:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
-
Re: Simple Google Analytics - Support
If you get a blank white page it means you have a PHP error that was caused based on the info you copied in. Most often this is becuase the PHP code copied in accidentally replaces, overwrites, or gets pushed between already existing code on the page.
The easiest way to diagnose exactly where the error is, is to turn on Error Logging for the Catalog and then look at the error log generated in the "cache" directory. Depending on what version of zen you are running, you may already have the file needed to turn that on. If not, you'll want to look at this post which has more information on where to find the file and how to activate it: http://www.zen-cart.com/showthread.p...+error+logging
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
ShanghaiLad
Update - all pages are dead. Only displaying the <head> </head> section and then nothing else.
I believe I followed all of the directions properly.
Here is the view source code displaying, from a random page:
**UPDATE: removing the posted code from the tpl_main_page.php file gets things working again:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
I had this same problem and I checked my configure.php file and noticed there were two '//' slashes when there should only be one for the IR_WS_CATALOG' and DIR_WS_HTTPS_CATALOG entries.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
cuda
By default this is in includes/templates/[your_template]/common/tpl_main_page.php
but could be located in includes/templates/[your_template]/common/tpl_header.php
as well, depends on how your site has been templated.
My installation does not have such a file in that location. I am using the classic template. There is no common in that directory.
includes/templates/classic/
Any assistance would be appreciated. Also I am running V1.5.1, will this cause a problem for running Google Analytics?
-
Re: Simple Google Analytics - Support
Maka a new "common" folder inside the "classic" folder. then copy the tpl_header.php file from template_default/common to classic/common. edit the copied file.
-
Re: Simple Google Analytics - Support
Hi Design75,
Thanks for this great module. I have found it very useful. I have it set up for e-commerce tracking and I was wondering if I could I use this module to track refunds / cancellations?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
martyoo
Hi Design75,
Thanks for this great module. I have found it very useful. I have it set up for e-commerce tracking and I was wondering if I could I use this module to track refunds / cancellations?
I is not my module :blush:, just a user. And sorry I have no idea if it can track refunds.
-
Re: Simple Google Analytics - Support
Sorry, I just seen you replying to people so I presumed you created it. I don't think it tracks them either.
-
Re: Simple Google Analytics - Support
Is this tested to work with 1.51?
I looked back a few pages in the thread and didn't see a mention, so I thought I'd ask to be sure.
Can the plugin's page be edited to say that it works with 1.51?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
northfork
Can the plugin's page be edited to say that it works with 1.51?
You asked this twice.. So here's how it works.. IF someone tests this add-on (plugin is a WP term) with the latest version of Zen Cart, finds it to work, reports it as such AND IF the admins decide they will change the plugin's page to say so, they will..
However, I believe it is UNLIKELY that an add-on that works with 1.5 and requires NO CHANGES to work with 1.5.1 will be updated in such a manner. You can check with the admins yourself to find out if I am mis-stating this..
Hope that answers this for you..
-
Re: Simple Google Analytics - Support
Reading back a few posts it looks like the plugin author is readying to submit an update. Hopefully they will confirm at that time whether they've tested it on v1.5.1.
That said, one way to find out if it'll work is ... to try it. Preferably on a test copy of your site (which you should have anyway, for testing any added features you're experimenting with). Then post back here what you discovered.
-
Re: Simple Google Analytics - Support
I installed the plugin, but Google Analytics doesn't record anything. Is there a way to see if the plugin is installed properly? It could be the problem with my Google Analytics account...
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
anysigns
Is there a way to see if the plugin is installed properly?
Ya: is the HTML showing in your pages? Right-click and View Source.
-
Re: Simple Google Analytics - Support
Thank you JOE PIXEL.
Beats me why this solution is still not part of the read me... Thanks again!!!
Jim
Quote:
Originally Posted by
joepixel
I managed to get Simple Google Analytics Version: 1.2.5 to work for me on Zen version 1.5 and added to the admin menu. I thought I'd share.
The new GA version does not seem to have a language file to define one of the settings for the admin menu to appear. I created this file: admin/includes/languages/english/extra_definitions/googleanalytics.php and placed the following code in this file:
<?php
define('UN_BOX_GOOGLE_ANALYTICS', 'Simple Google Analytics');
Here are the settings I used in the admin registration page.
Page Key: Simple Google Analytics
Page Name: UN_BOX_GOOGLE_ANALYTICS
Page Filename: FILENAME_CONFIGURATION
Page Parameters: gID=36 (make sure you look up this in your database because the number will be different. see below on how to do this.)
Menu: configuration
Display on Menu? Y
Sort Order: whatever you want
To find the gID number run this select statement in phpMyAdmin:
SELECT * FROM `configuration` WHERE configuration_key like '%google%'
Then look for the configuration_group_id. This is the number to use after gID=
I hope this helps someone!
-
Re: Simple Google Analytics - Support
How do I use admin registration page?
Also, I checked the source code of my main page... Google Analytics code is there but still I'm not getting anything. Does that mean that the problem is with my Google Analytics Setting rather than the module?
-
Re: Simple Google Analytics - Support
What is the link to your site?
A few reasons why it may not be tracking even if the code is present on your pages:
1) The tracking id being used is not the correct one for the account you are looking at data for
2) You need to re-verify the code with Google once in place (possibly). If your account does not say "Waiting for data" then you likely need to re-verify (done from within Google.)
3) Google is set to track the site, but it has yet to start actually 'showing data' in the reporting end. This can occur for some time with various sites and is unrelated to the module itself. It is something that varies with how long it takes Google to begin actually showing what it is tracking.
Those are the most probable reasons.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
merrydown
Thank you JOE PIXEL.
Beats me why this solution is still not part of the read me... Thanks again!!!
Jim
Because add-ons are a volunteer effort.. Volunteers are humans.. things get inadvertently left out.. However, you could volunteer to make this solution part of the readme if you like..
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
What is the link to your site?
A few reasons why it may not be tracking even if the code is present on your pages:
1) The tracking id being used is not the correct one for the account you are looking at data for
2) You need to re-verify the code with Google once in place (possibly). If your account does not say "Waiting for data" then you likely need to re-verify (done from within Google.)
3) Google is set to track the site, but it has yet to start actually 'showing data' in the reporting end. This can occur for some time with various sites and is unrelated to the module itself. It is something that varies with how long it takes Google to begin actually showing what it is tracking.
Those are the most probable reasons.
@ Econcepts
Site is anysigns.ca
I'm not sure how to re-verify analytics' pages... searching in the help section produces nothing. Maybe you meant something different :S ?
-
Re: Simple Google Analytics - Support
I am checking in to see if you still plan to offer a Microsoft Adcenter version of this mod in the future. It's so badly needed. Thanks!
-
Re: Simple Google Analytics - Support
I apologize if I missed it and this is answered within the previous 20 pages...
ZC 1.5; never installed Simple Google.
Latest version is still listed as 1.2.5c, but I see recommendations to install Eric's latest which I assume is 1.2.5.
Neither version of the SQL code issue appears in 1.2.5c, which isn't relevant if I am installing 1.2.5 (no letter).
What is the latest recommendation?
Thanks,
Stan
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
anysigns
@ Econcepts
Site is
anysigns.ca
I'm not sure how to re-verify analytics' pages... searching in the help section produces nothing. Maybe you meant something different :S ?
I checked the site, and it does show the tracking code in place ID is UA-11263625-10) Make sure you are looking at that profile (it's not the 'default one' in analytics.) I can tell that because of the '10' at the end of the number.
To make sure Google verified the code login to your Google Analytics account then do the following:
1) Click on the account you are looking to verify tracking for (UA-11263625-10)
2) Click on "Admin" tab from the top navigation (to the right)
3) Click on "Tracking Info" tab from the page that shows.
4) Re-verify the tracking here (or see if it already says 'receiving data'
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BlessIsaacola
I am checking in to see if you still plan to offer a Microsoft Adcenter version of this mod in the future. It's so badly needed. Thanks!
Yes, I am actually considering developing a 'tracking suite' of tools and this is one of them. AdCenter reworked the way they track conversions and thus the prior version I had no longer works. I have already redeveloped this and it is working on a few of my client sites. Just trying to get it into 'production' mode for the rest of you.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
VideoStan
I apologize if I missed it and this is answered within the previous 20 pages...
ZC 1.5; never installed Simple Google.
Latest version is still listed as 1.2.5c, but I see recommendations to install Eric's latest which I assume is 1.2.5.
Neither version of the SQL code issue appears in 1.2.5c, which isn't relevant if I am installing 1.2.5 (no letter).
What is the latest recommendation?
Thanks,
Stan
Stan, install the 1.2.5 (no letter on the end) version and then alter the SQL to work with PHP5 (if needed). Then you'll need to register the page with the admin.
All of this is in my latest version (still in my hands here and not uploaded.)
If you want me to email you the SQL patch etc... then all you should need to do is install the 1.2.5 files then run this patch to have it all work in 1.5.
Send me a private message with your email if you want me to zip that over to you. I'll have an actual 'public ready' version here very soon. I've been working on a few new site launches and that has taken time away from it here.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Stan, install the 1.2.5 (no letter on the end) version and then alter the SQL to work with PHP5 (if needed). Then you'll need to register the page with the admin.
All of this is in my latest version (still in my hands here and not uploaded.)
If you want me to email you the SQL patch etc... then all you should need to do is install the 1.2.5 files then run this patch to have it all work in 1.5.
Send me a private message with your email if you want me to zip that over to you. I'll have an actual 'public ready' version here very soon. I've been working on a few new site launches and that has taken time away from it here.
Are you saying not to use the countrycharm versions that are 1.5 ready? I am majorly confused and getting really frustrated. I have always used andrew's version with no problems but I saw that this one had been upgraded more recently so switched to the latest version and right now don't seem to have any tracking happening at all.
The code that GA says to use does not match the javascript code that appears in the source with this one. It's close but not exact.
This client has adwords conversions she is trying to track so I thought this mod would help that but it doesn't seem to doing anything for adwords conversions. (which may make sense if the google analytics isn't working).
If you have code ready to go and just need it packaged, send it to me and I will be glad to take care of that for you.
-
Re: Simple Google Analytics - Support
Hey Eric.....I have installed this mod on a site using 1.5.1 and am stumped...the client is working with a company that has specific requirements and I just cannot get it to work the way it needs to....
I uploaded the files, added the code to the tpl_main_page and filled out the info in the admin but it does not seem to be working...now to be honest I have been at this for a couple of hours b/c I originally tried doing it without the mod and was making progress...but the e-commerce portion was not coming through to analytics but we had the funnel working and adwords tracking working...but now I got nothing since I installed the mod....
When I did a test order just now this shows in the source code from your mod:
<!-- Google Code for purchase Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1055785130; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if (1.0) { var google_conversion_value = 1.0; } var google_conversion_label = "purchase"; //--> </script> <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/1055785130/?value=1&label=purchase&script=0"> </noscript>
But I need it to look like this with the $$$ order amount filled in:
!-- Google Code for Purchase/Sale Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 1055785130; var google_conversion_language = "en"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "6kTTCOr67QEQqoG49wM"; var google_conversion_value = 24.90} var google_conversion_label = "purchase"; /* ]]> */ </script> <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1055785130/?value=$24.90&label=6kTTCOr67QEQqoG49wM&guid=ON&script=0"/> </div>
And nothing is passing through to analytics right now.....what the hell am I doing wrong?!?!?!!? They also use Adroll so I have that code installed too...
The site is fisherwallace . com
If you can offer any advice or if I can pay you to just get this working asap I would be greatly appreciative!!!!
Hope you are doing well - have not spoke in ages!!!! :-)
Jill Caren
2 Dogs Design
-
Re: Simple Google Analytics - Support
And nothing is tracking for ecommerce tracking either...this is what is in the source code...I do have it activated in the analytics account...I am so frustrated right now....I have been at this for a day and a half - I cannot get this mod to work (I installed the 1.2.5 version with no letters as directed in a former post...)...I cannot ecommerce tracking to work with hand coding it in....I need help ......
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxx-1']); _gaq.push(['_trackPageview']); _gaq.push(['_addTrans', "", "", "", "", "", "", "", "" ]); _gaq.push(['_trackTrans']); (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>
-
Re: Simple Google Analytics - Support
I can not get the Adwords PPC Conversion to work in this module, I got the tracking code id from google adwords and put it in the module, activated it but google still says unverfiied.
When I do a source view on the checkout page I don't see the tracking conversion id number and the code, I only see the code for google analytics UA account number etc. for reporting.
The module is working fine for Google Analytics, it's reporting all the eCommerce sales etc.
I did search through lot of the posts but most of them show how to install and get the reporting to work etc. but my issue is that everything works fine with this module with the exception of PPC Convertion id.
Any help?
-
Re: Simple Google Analytics - Support
I've had an email exchange with Google Adwords support, in which they have stated with some certainty (they went off and consulted their "technical experts") that the fact that the "google_conversion_label" field is hardcoded to the value "purchase" is likely to be causing under-reporting of conversions.
The field is intended to select a "conversion type" for the conversion to be recorded against. I think the value currently hardcoded in the Simple Google Analytics extension is from a legacy mechanism. Nowadays, the value should be set to a value corresponding to the conversion type - these are generated ids that you can see in the code snippet adwords itself generates for each type.
My site is recording conversions, and I was inclined to believe the numbers. However, despite some debate and the above-mentioned check with the experts, Google were insistent that the value "purchase" is not valid and that the conversion numbers currently reported in my adwords account are not to be trusted.
I am going to hardcode the appropriate ID in my own copy of the add-in, but I thought I should raise this here. If you want, I can forward the email chain privately. It sounds like the add-in needs a configuration option to set the label.
-
Re: Simple Google Analytics - Support
Am I correct that this mod does not notify Google of cancelled orders? It appears that orders I have cancelled and refunded are still showing in Analytics, leading to bad totals for conversions over time. I have found the script that should be executed, but in the script code I need to manually enter the trans id as well as a bunch of other info and make sure it's spot on accurate or I'll get some bad results. Has anyone written an add-on to do this, perhaps a one-click link from the order page in admin?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fakeDecoy
Has anyone written an add-on to do this, perhaps a one-click link from the order page in admin?
Yes. But it will not work with this "Simple Google Analytics" script.
Make same add-on for script is not that difficult, all written at Google - Reversing an E-commerce Transaction.
-
Re: Simple Google Analytics - Support
I saw that Google page, but their solution doesn't look complete. There isn't even an end script tag, so it looks suspect. And hard coding all the data, including all the items in every order, takes quite a while and is prone to human error.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fakeDecoy
I saw that Google page, but their solution doesn't look complete. There isn't even an end script tag, so it looks suspect. And hard coding all the data, including all the items in every order, takes quite a while and is prone to human error.
Sure. It's an algorithm, not a turnkey solution for your CMS.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
a_berezin
Sure. It's an algorithm, not a turnkey solution for your CMS.
Quote:
Originally Posted by
fakeDecoy
I saw that Google page, but their solution doesn't look complete. There isn't even an end script tag, so it looks suspect. And hard coding all the data, including all the items in every order, takes quite a while and is prone to human error.
In short NO there isn't a Zen Cart add-on to do this, and Andrew has pointed you in the direction of the groundwork for creating a turnkey solution for Zen Cart. So if this is a solution you want you will probably need to hire a developer to do this and you can provide him with the data Andrew posted to help him with developing the solution.
-
Re: Simple Google Analytics - Support
I decided against doing this at all. This is a messy implementation on Google's end where there are side effects if you try to reverse a transaction. Inflated conversion rate and transaction count, to name a couple. It's less bad to not do anything.
-
Re: Simple Google Analytics - Support
I apologize if this is a repeat question, I didn't dare plow through 196 pages...
I'm certain that my installation worked correctly. When I look at my content reports in Analytics, it doesn't report all the way to the product level. It shows pageviews for categories and sub-categories, but not for individual products. Am I missing something or do I need to tweak my settings to accomplish this? Any help will be appreciated.
-
Re: Simple Google Analytics - Support
No joy in getting admin page registration for this mod in zc151 as superuser. Ran sga125 (not a, b or c) sql but nothing appears under admin > configuration.
Tried eConcepts admin page reg fix in post 1905 but only got language key error.
http://www.zen-cart.com/showthread.p...65#post1146865
I have no idea if it is my setup that is at fault, but would appreciate help getting over this hurdle.
-
Re: Simple Google Analytics - Support
Solved by using 125c. But after uninstalling 125 sql, I now have a gap in my gID numbering sequence. I hope this gID gap has no ramnifications.
-
Re: Simple Google Analytics - Support
All was going so swimmingly. I installed the latest version of the plug-in without drama on v1.3.9h, set up my codes for Analytics and Adwords etc in the console and sat back. No errors in the shop and Analytics is displaying all my data and is really useful but after a couple of days Adwords was still showing as unverified.
After a bit of research, I installed chrome and the Tag Assistant and did an order on my site. The Tag Assistant says that the Analytics tag is correct but that there are errors with the Adwords one on the checkout page.
The list of messages is:
AdWords Conversion Tracking - not working
Conversion ID xxxxxxxxxx
Conversion Label purchase
Conversion Value not set
<script> tag found
<!--
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (0.07) {
var google_conversion_value = 0.07;
}
var google_conversion_label = "purchase";
//-->
Conversion Value in the <iframe> tag 0.07
Error: Incorrect script attribute. help
Error: Conversion value mismatch between <script> and <iframe> tag. help
Error: Conversion value mismatch between <script> and <noscript> tag. help
Error: Conversion value mismatch between <script> and <noscript> tag. help
Warning: Missing CDATA comments. help
Conversion value not set. help
Both <script> and <iframe> used
The checkout page source from the browser contains:
pageTracker._trackTrans();</script><!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (0.07) {
var google_conversion_value = 0.07;
}
var google_conversion_label = "purchase";
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=0.07&label=purchase&script=0">
</noscript>
That doesn't exactly match the code google provide but looks similar to others listed on this forum
Can anyone spot an error?
-
Re: Simple Google Analytics - Support
I managed to get Adwords updates working by changing google_conversion_label to the code Adwords gave me when I created the conversion instead of 'purchase' that was set in the original script.
-
Re: Simple Google Analytics - Support
I had this working fine. This week I messed up my store and decided the best fix would be to delete the includes folder and reinstall it. I fixed my original problem but created several new ones one of which is I broke google analytics. I reinstalled the files from the includes folder in my google analytics download to my new includes folder but it is not working. Do I need to reinstall the sql file ? or did I maybe install the files wrong? Thanks .
-
Re: Simple Google Analytics - Support
I have my problem fixed. Thanks
-
Re: Simple Google Analytics - Support
I am using Zencart 1.5.1 and this add-on is working. They only problem I had is in the SQL installation. I had to modify it and do it thru PHPadmin . The problem could be with my provider security.
-
Re: Simple Google Analytics - Support
Hi,
I've installed this module this evening(zen cart 1.5.1) and I can't get it to work, google analytics says: Status: Tracking Not Installed.
The website is www.regatuljocurilor.ro and looking at the page source I can see the correct values set.
I'm using a picaflur template which uses the template_default/common/tpl_main_page and that is where I placed the changes for that file.I assume they are ok if the page is generated with the correct information.
I've placed the code provided by google analytics in htm_header.php in my template common file before the </head> part.
Please let me know if I'm missing something as I can't seem to understand why it doesn't work.
I've followed the steps google says , I've followed the steps mentioned in the readme (except REMOVE the following line from that file "javascript:__utmSetTrans();" as it does not exist)
Can you have a look and let me know if you can see any problems with it?
Regards,
Alex
-
Re: Simple Google Analytics - Support
Alex,
If your using a template from picaflur (or from any one for that matter), than this is the wrong folder to edit:
template_default/common/tpl_main_page
You should be editing:
YOUR_TEMPLATE/common/tpl_main_page
I can't get you site to load, so can't check the source code for any other hints.
-
Re: Simple Google Analytics - Support
Please check now , I've copied the tpl main image from template_default to my template as there was none but still same thing happens.
The site is now accessible , apparently one of the scripts was timing out(http://gsgd.co.uk/sandbox/jquery/eas....easing.1.3.js) not sure what this is for.
Let me know if you see something wrong with google analytics
-
Re: Simple Google Analytics - Support
Seems to be an older issue of mine with zencart/webserver....I took the view source code for the main page and placed it in a new file index.html in the root of zen cart thus being the first page loading. I click refresh in google analytics and it says Tracking Installed...now I've deleted that but it still shows tracking installed ... it's a zen cart/webserver issue where the web server cannot internally access the zen cart pages as it sees them as absolute paths so it routes them elsewhere ,I have the same problem with facebook debugger
-
Re: Simple Google Analytics - Support
I see the GA code is working now. It may take 24 hours for the data to start showing up though.
-
Re: Simple Google Analytics - Support
I'm happy it works now , thanks for checking it out and replying so fast , it's nice to know someone may help you when you are going crazy about some issues
-
Re: Simple Google Analytics - Support
I have a store using 1.5.0. www.peaceful-planet.com I installed simple google analytics on March 26th after the site was upgraded to this version. Everything was working well until yesterday, when i tried to install the cart reminder plugin. I have somehow removed conversion tracking and had to upload a fresh install of the module pages for login, create account success, and checkout success in order to restore checkout functionality.
So, all is well except
1. Google Analytics is no longer tracking conversions. (It is tracking traffic.)
2. The cart reminder plugin is not up and running. i have removed the three files that I mentioned from the install
includes/modules/pages/checkout_success/cart_reminder.php
includes/modules/pages/create_account_success/cart_reminder.php
includes/modules/pages/login/cart_reminder.php
Anyone have any ideas? Thanks so much for all of the great info already here.
-
Re: Simple Google Analytics - Support
Hi, thanks for the mod... we had something wacky with the store where "larger image" would not work so I upgraded from 1.3.9 to 1.5.1. Did the upgrade SQL and fixed the files as instructed (i think) but for some weird reason, there is NO simple Google code appearing on the source code of the pages. www. dogspeakcards .com... trying to figure out why the new pasted code says if asynchronous then // do nothing?? Hopefully I'll figure it out today, but any help would be appreciated. ~Cpixi
-
Re: Simple Google Analytics - Support
Is this module compatible with 1.5.1 version of Zencart ?
Thx
-
Re: Simple Google Analytics - Support
Can I add In-Page Analytics to this plugin? It has to be this code (this is a combination of existing and new lines):
var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-XXXXXX-Y']);
_gaq.push(['_trackPageview']);
Can I put this in the field "Google Custom Code - After"? Or if not, how can I do this?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Bee01
Can I add In-Page Analytics to this plugin? It has to be this code (this is a combination of existing and new lines):
var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-XXXXXX-Y']);
_gaq.push(['_trackPageview']);
Can I put this in the field "Google Custom Code - After"? Or if not, how can I do this?
Don't paste the entire code snippet you have here or you will be duplicating the call to the _gaq var and the trackPageview (which is built into the module by default) AND the Tracking ID (also built in.)
You can add the "_gaq.push(['_require', 'inpage_linkid', pluginUrl]);" as added code and it should work the way you are looking for.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
solo_400
Is this module compatible with 1.5.1 version of Zencart ?
Thx
Yes it is compatible with 1.5.1. I have a new version complete here that will be released shortly which has a number of other enhancements added.
-
Re: Simple Google Analytics - Support
i tried to install the google analytics by andrew but it doesn't seem to work in my 1.5.1. it doesn't appear in the configuration in my admin
-
Re: Simple Google Analytics - Support
You have not installed it as per installation instruction. Print out instructions and read each step closely. If installed correctly it works.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
EZorb
You have not installed it as per installation instruction. Print out instructions and read each step closely. If installed correctly it works.
This is not the support thread for that add-on. This support thread is for the Simple Google Analytics module found here: http://www.zen-cart.com/downloads.php?do=file&id=272
The two are different.
-
Re: Simple Google Analytics - Support
Hello. I am currently on version 1.3.9e. Which is the best version for me to install?
Sorry if this was answered elsewhere. Thanks!
-
Re: Simple Google Analytics - Support
Hi All,
I have just installed this and I'm having issues with the sql install - Issue being....what is the code i need to copy...I think I'm missing something or overseeing it.
Can anyone help?
Zen: 1.5.1
-
Re: Simple Google Analytics - Support
The package comes with an SQL file for installation. Copy and paste that into your admin (SQL Patches Section)
Let me know if that helps.
-
Re: Simple Google Analytics - Support
Good day,
I am running 1.5.1 and just installed simple Google Analytics module. The code does appear at the bottom of each page and Google does indicate that it is receiving information but the traffic registration went to zero according to Google Analytics chart. Is there any way instantly verify that the module does function properly and does transmit data to Google as designed.
Thank you.
The site is www.augustica.com
-
Re: Simple Google Analytics - Support
HI, I followed the install guide, had to paste in the sql code for step 4 to work. However when I got to configuration->google analytics I don't see google analytics under configuration menu?
Any assistance appreciated.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
TheKenster
HI, I followed the install guide, had to paste in the sql code for step 4 to work. However when I got to configuration->google analytics I don't see google analytics under configuration menu?
Any assistance appreciated.
I'm having the same issue. However, GA is showing my activity on my site using Real-Time tracking even though I didn't include any GA number. Might be because my store is a sub-directory of my main site and it's just sectioning that tracking automatically. Store's under construction, so no commerce/conversion data, or other visitors besides myself.
* Fresh install of 1.5.1, just getting setup.
-
Re: Simple Google Analytics - Support
Hi Eric,
I have been using SGA with my v 1.50 store and it has been working fantastic except for one issue.
When I track my sales transactions, almost all shows my own site or PayPal as a referral for the source. Is there any why to fix this and seeing correct traffic source for each transaction (i.e. Google organic, direct, etc...)
Thanks for your advice in advance.
EJ
-
Re: Simple Google Analytics - Support
If you are not seeing the configuration menu for Google Analytics and you are using Zen 1.5x then the pages have likely not been registered in the admin yet. What version of the Simple Google Analytics are you using?
-
Re: Simple Google Analytics - Support
That sounds like something in the way of the tracking snippet itself is not right or 'customized'. What version of SGA are you using? Are you utilizing any of the 'custom code' configuration items (like adding custom tracking after any point in the snippet)?
-
Re: Simple Google Analytics - Support
Hey Eric I have a question for you. Why doesn't the new Google tracking code work (Asynchronous) work.
When I activate that one the Google Analytics code doesn't load at the bottom of the tpl_main_page.php page.
(Urchin) works just fine but (Asynchronous) don't. This is kinda strange don't you think. Thanks in advance.
-
Re: Simple Google Analytics - Support
Hi,
I've installed this, and am not getting any errors, but cannot tell if it's working or not.
On my Google Analytics page, I see "Upgrade to Universal Analytics", and also, to the right of my Tracking ID, a messages that says:
Status: Tracking Not Installed
Last checked: Nov 8, 2013 1:25:57 PM PST
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.
Do I need to convert to Universal, or maybe I missed something?
Thanks.
-
Re: Simple Google Analytics - Support
I solved my problem. I had used an old template folder by accident, rather than the current, newer one, that I had installed about a year ago. Once I changed that, and copied the appropriate files there, it worked, and I immediately saw a test transaction.
-
Re: Simple Google Analytics - Support
Glad to hear you got it working!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
countrycharm
Hey Eric I have a question for you. Why doesn't the new Google tracking code work (Asynchronous) work.
When I activate that one the Google Analytics code doesn't load at the bottom of the tpl_main_page.php page.
(Urchin) works just fine but (Asynchronous) don't. This is kinda strange don't you think. Thanks in advance.
It should work (I've got it running on a number of sites just fine.) The Async code should show at the top of the page (not the bottom). Have you looked there to see if it exists yet? If it doesn't exist, do you have any type of affiliate tracking system in place? Sometimes this plays with the code a little and there is a slight adjustment you need to do to make that work. I've been working for a long time here on a completely new Simple Google Analytics module that includes a lot of new features Google now offers. It has taken some time as I am including in it the ability to 'check the install' to make sure users install it correctly (and the install is now as 'automatic' as possible). I really wanted to have this out a few months back, but need to get these last few items in place before I feel comfortable releasing it (I've got it running on a few of my own sites now that I work with but have yet to release it to the general public.)
Let me know answers to the above questions and I'll see if I can help you figure out why the tracking code is not showing on your site.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
It should work (I've got it running on a number of sites just fine.) The Async code should show at the top of the page (not the bottom). Have you looked there to see if it exists yet? If it doesn't exist, do you have any type of affiliate tracking system in place? Sometimes this plays with the code a little and there is a slight adjustment you need to do to make that work. I've been working for a long time here on a completely new Simple Google Analytics module that includes a lot of new features Google now offers. It has taken some time as I am including in it the ability to 'check the install' to make sure users install it correctly (and the install is now as 'automatic' as possible). I really wanted to have this out a few months back, but need to get these last few items in place before I feel comfortable releasing it (I've got it running on a few of my own sites now that I work with but have yet to release it to the general public.)
Let me know answers to the above questions and I'll see if I can help you figure out why the tracking code is not showing on your site.
Hi Eric I changed it back to the Async code again to check and now it's showing up. Strange but all seems to be working now. No affiliate tracking system but adwords. I have to see if it is going to collect data. Thanks for your time.
If you need another tester for the one your working with now send it to me I'll test it for you.
-
Re: Simple Google Analytics - Support
Hi. I've been using google anaysis for a while. Last week, I was reading google had an updated version (universal tracking) so I started the upgrade. After a few days I got my new google tracking code. Here is where I screwed up.
1. I forgot that under my configuration menu, I had a nice place to update my tracking code. Instead, my brain said "i should put it in the footer".
2. I edited /includes/templates/mytemplate/common/tpl_footer.php. I put it near the end, right before some code for a google campaign. I saved it. I cleared my cache and viewed my home page and now on the bottom is writes some code:
pageTracker._trackpageView(.......
3. I went back to take the code out and start again and the code wasn't there. I still had my CuteScapeFTP set to that file so I was like what the heck. I manually looked in the header fiile but it wasn't there either. Now my brain is stumped, where did that code code. It must be somewhere cause it was causing weird things to happen.
4. I used the tools/developers toolkit to search for the code PageTracker and found it in google_analytics.php. The code is:
echo "
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
";
So I figured that something was missing that it was now echoing to the screen instead of where it should be.
4. This was when I remembered that I installed that module. So I went to menu->configure google analytics and turned off the custom code section. THe message goes away on my page. If I turn it on, it comes back. I replace the code with the code google gave me, turned it on but still got the writing so I turned it off again.
Then I found this discussion where it seems like you guys have it working. My questions are:
1. Where the heck did the code go that I pasted in step 2?
2. What should I do now? Do I need to uninstalled google_analytics and reinstall it?
I am trying to be logical and methodical but I screwed up and forgot to backup my footer file before i started. I have a backup but wasn't sure how old it was. The dates do something weird when I download from my server using FTP (that is on my list to fix). My server has a backup of today but that will cost me $35.
Any ideas?
Thanks for your help in advance.
Linda
-
Re: Simple Google Analytics - Support
I forgot to say I'm using version 1.3.9h..
-
Re: Simple Google Analytics - Support
It looks there a few people already asking questions related to this but does anyone have any information on getting Universal Analytics to work with this plugin?
I'm currently running Zen Cart version 1.3.9h but I'm planning on setting up a dev site to see if i can upgrade to 1.5.1 without breaking anything and to see if I can get this to work with Universal Analytics. Any help would be greatly appreciated.
-
Re: Simple Google Analytics - Support
Can someone point me in the right direction? This is showing up at the bottom of all pages, and it is installed somewhere on a page, due to my install. I know the snippet of code must mean i screwed up, but cannot find where to remove it. I think this was part of my GA installation, done improperly, but was definitely a tracking google thing. Help, where do I delete this code, as I cannot find it with developer tools anywhere. firebug shows it, but not to my knowledge clearly enough to know where to clear it.
Many thanks,
Marc
pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
visible on http://reasonablerigging.com
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Trademagic
Can someone point me in the right direction? This is showing up at the bottom of all pages, and it is installed somewhere on a page, due to my install. I know the snippet of code must mean i screwed up, but cannot find where to remove it. I think this was part of my GA installation, done improperly, but was definitely a tracking google thing. Help, where do I delete this code, as I cannot find it with developer tools anywhere. firebug shows it, but not to my knowledge clearly enough to know where to clear it.
Many thanks,
Marc
pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
visible on
http://reasonablerigging.com
The code on your site looks like 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-44438669-1");
pageTracker._initData();
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44438669-1', 'reasonablerigging.com');
ga('send', 'pageview');
</script>
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
</script></body>
It looks like you put the universal analytics code inside the regular tracking code. And the closing </script> tag before
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
is causing that to show because it isn't within a script tag.
If you can tell me what it looks like at the end of /includes/templates/[your_template]/common/tpl_main_page.php right before the closing </body> tag I can probably help you fix it.