-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Centec2b
Hello reference my original post #1600. I am assuming the problem is within my setup on the test system, rather than a code error, due to the overwhelming number of successful users.
But it still seems odd that no one else has had a problem
To try and locate the problem I have updated to the latest version of xampp for win 32 1.7.4
Rewritten the code into a new sql file
Neither have any beneficial effect
I guess the next step is to try and cross reference against other SQL instructions
I have an odd feeling I am going to kick myself when the reason for the error becomes apparent!
Centec2b
There shouldn't be any issues with the original install code (if you are using Simple Google Analytics.)
Copy and paste it into the zen cart Admin (don't use phpMyAdmin and don't 'upload' it in the zen admin ... copy and paste is the way to go.)
If you changed the SQL file, you might have made a mistake in the coding (is an apostrophe missing near this line TYPE=M' ?)
I've never heard of this issue and there are a lot of users.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
raider1016
i believe i have added everything correct. I receive no errors of any kind and even analytics says its receiving data. In fact, my traffic dropped to 0 so i know its not calculating my traffic. Also, when i view my source code on any page in the site, i cannot see any code relating to google analytics.
i am using the "iC_AcadameV1.2" template along with the latest version of Zen Cart.
i also had to copy the "html_header" into my iC_AcadameV1.2 template folder because it was not there.
Anyone got any ideas?
Send a url to look at. The only way you will not get any traffic recorded is if you either did not install the tracking code on the pages, or if you installed the tracking code but did not use the tracking ID for the account you are looking at.
This install works with any template and all version of zen cart so it should work on yours.
-
1 Attachment(s)
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
There shouldn't be any issues with the original install code (if you are using Simple Google Analytics.)
Copy and paste it into the zen cart Admin (don't use phpMyAdmin and don't 'upload' it in the zen admin ... copy and paste is the way to go.)
If you changed the SQL file, you might have made a mistake in the coding (is an apostrophe missing near this line TYPE=M' ?)
I've never heard of this issue and there are a lot of users.
Good Evening Eric
Thank you for this guidance
I have made progress (some)
It would appear that the folks at MySQL are evolving the language and the term has been replaced by although from what I understand there should be backwards compatibility
However when I had tried several times copying and pasting into the install SQL patches with a copy of a new SQL file and it still failed, I used phpMyAdmin and I installed the SQL instructions with ENGINE substituting for TYPE and it installed ok
On looking at the database entries I noticed several errors where foreign language punctuation had been used and corrected by hand (eg French ç).
I found references to this MySQL language change at
http://www.zen-cart.com/forum/showpo...65&postcount=5
and
http://dev.mysql.com/doc/refman/5.0/...ge-engine.html
The system now shows up in Admin and the only remaining problem is the same as #1593 ie the main page is blank.
I checked the error log as suggested and it is saying
Quote:
[07-Sep-2011 00:51:29] PHP Parse error: syntax error, unexpected '{' in xxxxxxxxxxxxxxxx/common/tpl_main_page.php on line 1
I have checked the file but I am blowed if I can see this error. I have uploaded the file and if anyone can put me right on this I would be grateful.
In conclusion thank you Eric and All for the help and assistance - I wouldn't have got this far by myself
-
Re: Simple Google Analytics - Support
Running ZC v1.3.9h. Does Simple Google Analytics also work with the COWOA mod?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
AdamT
Running ZC v1.3.9h. Does Simple Google Analytics also work with the COWOA mod?
Yes. Works with all modules on the market, free and paid.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Yes. Works with all modules on the market, free and paid.
Great, TY. Got this installed :)
So I have an Adwords conversion ID entered in the Admin, and if I force load the checkout success page I can see the script in the html. If I click one of my Adsense banners (which begins the Google tracking cookie), can I then just paste the checkout success URL in the browser and go to that page for Adwords to record a conversion? Or do you actually have to do a full text checkout and pay to do a test?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Centec2b
Good Evening Eric
Thank you for this guidance
I have made progress (some)
It would appear that the folks at MySQL are evolving the language and the term has been replaced by although from what I understand there should be backwards compatibility
However when I had tried several times copying and pasting into the install SQL patches with a copy of a new SQL file and it still failed, I used phpMyAdmin and I installed the SQL instructions with ENGINE substituting for TYPE and it installed ok
On looking at the database entries I noticed several errors where foreign language punctuation had been used and corrected by hand (eg French ç).
I found references to this MySQL language change at
http://www.zen-cart.com/forum/showpo...65&postcount=5
and
http://dev.mysql.com/doc/refman/5.0/...ge-engine.html
The system now shows up in Admin and the only remaining problem is the same as #1593 ie the main page is blank.
I checked the error log as suggested and it is saying
I have checked the file but I am blowed if I can see this error. I have uploaded the file and if anyone can put me right on this I would be grateful.
In conclusion thank you Eric and All for the help and assistance - I wouldn't have got this far by myself
A blank page typically means there is an error in your PHP somewhere. This is most often do to incorrectly copy and pasting the code required to run the module into the templates on your site. To resolve that issue you need to go back and make sure each and every element is copy and pasted exactly as shown and that you did not copy over any other code on your site (which may cause accidental removal of PHP tags that make other portions of your page run.
Another thing to keep in mind. If you tried to install this via PHPMyAdmin then you need to make sure you manually inserted your database prefix (if using any) to each of the commands. When you sue the built in Zen Cart patch tool it automatically does this for you, but with PHPMYAdmin you need to adjust the code to find your correct table prefix.
The file you uploaded looks ok. Make sure you take a look at the html header file as well and ensure you didn't accidentally remove anything there when copying code in.
What version of MySQL are you using? I'm running this (and tested installs on) many many machines with MySQL 5.+ and it goes without flaw each time (no alterations to SQL code etc..., no running through PHPMyAdmin, etc...)
-
Re: Simple Google Analytics - Support
How do you track conversions on individual products and their prices?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
A blank page typically means there is an error in your PHP somewhere
Another thing to keep in mind. If you tried to install this via PHPMyAdmin then you need to make sure you manually inserted your database prefix (if using any) to each of the commands.
What version of MySQL are you using?
The good news is it is working!
The annoying thing is I cannot say why it is now working!!
I have stared at this code till I am blue in the face - I can only think there was some minor error which I corrected unnoticed.
I am using MySQL 5.0.92
As for the information the analytics reveals - hmmm thats another story!
Eric thank you for this help - it is appreciated
Centec2b
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
AdamT
How do you track conversions on individual products and their prices?
So long as you have ecommerce tracking turned on within Google Analytics, my module here automatically records it for you within that same area. If you want to track conversions from PPC then you need to also turn on and add your Adwords conversion tracking ID too.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Centec2b
The good news is it is working!
The annoying thing is I cannot say why it is now working!!
I have stared at this code till I am blue in the face - I can only think there was some minor error which I corrected unnoticed.
I am using MySQL 5.0.92
As for the information the analytics reveals - hmmm thats another story!
Eric thank you for this help - it is appreciated
Centec2b
Great. Glad to hear you got it working. :)
-
Re: Simple Google Analytics - Support
I'm running ZC 1.3.9h.
Just upgraded SGA to the latest version with the hopes it would start tracking where sales came from, but still no luck.
It works perfectly other than that.
My site is www.funkimunkibadges.co.uk
However ALL sales show up as being from referrer 'funkimunkibadges.co.uk' which I know is incorrect.
I use Paypal Express checkout, but some people also check out with my default ZC checkout process as well (which still ends up with Paypal).
I'm hoping I'm missing something simple.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
So long as you have ecommerce tracking turned on within Google Analytics, my module here automatically records it for you within that same area. If you want to track conversions from PPC then you need to also turn on and add your Adwords conversion tracking ID too.
Yeah I want to track Adwords conversions, which I'm doing now with your plugin (but it only tracks a single conversion amount). How do you set up the Adwords code for different products/amounts with the plugin? I know Analytics does this by turning "eCommerce store" to yes, but doing it through Adwords is my question, since I'm trying to figure out my ROI in Adwords when people click my banners.
To my knowledge Analytics doesn't track Adwords conversions, as Analytics and Adwords are different Google products. Maybe I'm missing something?
-
Re: Simple Google Analytics - Support
I checked my site through woorank and it says my google analytics was missing. can someone explain to me step by step on how to add it. I am new to zc and siteworx.
-
Re: Simple Google Analytics - Support
hello econcepts
I just wanted to install simple google analytics on my 1.3.8a shop for the first time.
But I don't get through the SQL part. When I get to the first "Insert Into ..." statement, then I get the following message:
-------------------------------
1136 Column count doesn't match value count at row 1
in:
[INSERT INTO configuration_group VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
-------------------------------
can you please help me.
thanks Daniel
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
CreepyD
I'm running ZC 1.3.9h.
Just upgraded SGA to the latest version with the hopes it would start tracking where sales came from, but still no luck.
It works perfectly other than that.
My site is
www.funkimunkibadges.co.uk
However ALL sales show up as being from referrer 'funkimunkibadges.co.uk' which I know is incorrect.
I use Paypal Express checkout, but some people also check out with my default ZC checkout process as well (which still ends up with Paypal).
I'm hoping I'm missing something simple.
It should work as the module only creates the link to Google (which is the primary system that then records where the traffic came from.)
It sounds like there may be a setting on your Google Analytics side that could be affecting the traffic. What do you have set (within Google Analytics) as the root (default) url / page of the site?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
AdamT
Yeah I want to track Adwords conversions, which I'm doing now with your plugin (but it only tracks a single conversion amount). How do you set up the Adwords code for different products/amounts with the plugin? I know Analytics does this by turning "eCommerce store" to yes, but doing it through Adwords is my question, since I'm trying to figure out my ROI in Adwords when people click my banners.
To my knowledge Analytics doesn't track Adwords conversions, as Analytics and Adwords are different Google products. Maybe I'm missing something?
The conversion tracking should work for any conversion amount (it is dynamic) so long as you did not set Google to track a 'static' amount (did you set the conversion value to '0'? You should do that for it to look at my dynamic values.
You can track Adwords within Google Anlaytics (as well as outside of it) but you need to connect the two accounts together (Adwords with Analytics). My Google workbook goes through the steps on how to accomplish this.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
gpsupps10
I checked my site through woorank and it says my google analytics was missing. can someone explain to me step by step on how to add it. I am new to zc and siteworx.
Download the Simple Google Anlaytics module. Follow the readme for first time installs. Make sure you don't miss step 3 of the install.
If the code is missing on your site, you likely missed the lines of code needed to insert it into your page.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
dzuberbu
hello econcepts
I just wanted to install simple google analytics on my 1.3.8a shop for the first time.
But I don't get through the SQL part. When I get to the first "Insert Into ..." statement, then I get the following message:
-------------------------------
1136 Column count doesn't match value count at row 1
in:
[INSERT INTO configuration_group VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
-------------------------------
can you please help me.
thanks Daniel
Daniel,
I got your PM, check that and let me know what turns up.
-
Re: Simple Google Analytics - Support
I was wondering if you will be adding the Site Speed functionality to your mod?
analytics.blog spot dot com/2011/05/measure-page-load-time-with-site-speed.html
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by HenryGale
I've run into an odd problem implementing Simple Google Analytics. When I finished all the installation steps in the readme, I found that my shop main page was loading completely blank, only the black background is visible.
I tracked the problem down to the code in tpl_main_page.php. When I add the code:
PHP Code:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
to my tpl_main_page.php, my main page goes blank. When I remove it, it works again.
Any ideas? I'm using the default tpl_main_page.php, as my template didn't have one. So this code is the only change from the Zen Cart default.
Thanks in advance!
HG
A blank page means there is an error in your PHP code somewhere. Typically this happens when one inadvertently alters other code or places the php code listed in such a way where it mess with current code on the site.
To find out where your problem is make sure you have error checking turned on (default in 1.3.9 versions but if you don't have that you can download the error checking file "Debug Error logging").
To find out where the error is then, place your code back on the page and then try to access it. When you get the white page an error log will be written to your 'cache' folder (with the date / time ... this is how you tell which log goes with which action. If there are too many you can delete the error logs and repeat the above step so there is only one in there when needed.)
Open that error log and it will tell you the exact issue and line of code to look at. If you can;'t figure out what the error means, post it here and I'll walk you through it.
Sorry to bring up an old post but i was having the exact same problem. For some reason the file was not saving correctly in Notepad++. When I used dreamweaver and was sure to save in file type .php everything started working fine. I'm sure if I had tried changing to .php in notepad it may have worked also but I didn't try it. Hope that helps someone out there.
-
Re: Simple Google Analytics - Support
I've been wondering about this mod and its purpose. Google analytics is a very easy install simply using the code snippet provided by Google, so I'm not grasping the reason for a mod. Are there some additional features to this mod that provide more functionality? Am I missing out on something?
-
Re: Simple Google Analytics - Support
Hi all,
I have problems with the integration of Google Analytics and the Ajax One Page Checkout.
I am unable to correctly configure the Google Analytics ecommerce feature and I can't track none of my shop orders.
Anyone has experienced the same problem?
There is a way to integrate Google Analytics ecommerce and Ajax One Page Checkout?
Thanks in advance,
Alessandro
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Aletiger
Hi all,
I have problems with the integration of Google Analytics and the Ajax One Page Checkout.
I am unable to correctly configure the Google Analytics ecommerce feature and I can't track none of my shop orders.
Anyone has experienced the same problem?
There is a way to integrate Google Analytics ecommerce and Ajax One Page Checkout?
Thanks in advance,
Alessandro
There was an issue but I believe the current version has corrected for it. What version of the Ajax One Page Checkout are you using and what version of Simple Google Analytics?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
RescoCCC
I've been wondering about this mod and its purpose. Google analytics is a very easy install simply using the code snippet provided by Google, so I'm not grasping the reason for a mod. Are there some additional features to this mod that provide more functionality? Am I missing out on something?
From the Readme file:
Installs Google Analytics tracking capability on your site using either the legacy (urchin) version, "ga.js", or "asyncronous" tracking Google code version including:
a) E-Commerce Tracking
b) Adwords (pay per click) Conversion Tracking
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
I was wondering if you will be adding the Site Speed functionality to your mod?
analytics.blog spot dot com/2011/05/measure-page-load-time-with-site-speed.html
Yes Jim,
I was just getting ready to release a new version here and will include that as on option.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
RescoCCC
I've been wondering about this mod and its purpose. Google analytics is a very easy install simply using the code snippet provided by Google, so I'm not grasping the reason for a mod. Are there some additional features to this mod that provide more functionality? Am I missing out on something?
Actually, this mod does quite a number of things that are not easily done by just pasting a snippet of code provided by Google into your page.
Just a few of the items are:
1) Adwords conversion tracking capability
2) Ecommerce tracking (with dynamic order values not static)
3) Ability to customize the tracking code easily from the admin to accommodate additional tracking options.
etc...
If you just copy and paste the tracking code Google provides into your page you won't get product level detail 'conversion level ecommerce tracking' nor would you get adwords conversion tracking.
-
Re: Simple Google Analytics - Support
I am using v1.3.9h and do a new install SQL. There is no error but no count at google anlaytics. I did a source view and can see the account number. I did several transactions and the count does not move. How do I check if I got the installation correct?
-
Re: Simple Google Analytics - Support
-
Re: Simple Google Analytics - Support
-
Re: Simple Google Analytics - Support
The analytics code is not on the url. You mentioned installing the sql file. Did you also install and edit the files as mentioned in the readme?
-
Re: Simple Google Analytics - Support
Is there anyway to paste Microsoft/Bing adCenter conversion code into this mod so the Microsoft backend will track conversions?
Quote:
Originally Posted by
econcepts
Actually, this mod does quite a number of things that are not easily done by just pasting a snippet of code provided by Google into your page.
Just a few of the items are:
1) Adwords conversion tracking capability
2) Ecommerce tracking (with dynamic order values not static)
3) Ability to customize the tracking code easily from the admin to accommodate additional tracking options.
etc...
If you just copy and paste the tracking code Google provides into your page you won't get product level detail 'conversion level ecommerce tracking' nor would you get adwords conversion tracking.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
The analytics code is not on the url. You mentioned installing the sql file. Did you also install and edit the files as mentioned in the readme?
This is what i did. I use this installer "Simple_Google_Analytics" http://www.zen-cart.com/index.php?ma...roducts_id=412 and copy those files under "admin" and "includes" folders.
In the "readme.txt", i made changes according to the "
Installation Instructions (New Installs ONLY and upgrade from oldest 1.0 version)" and
Quote:
#### PART A: ####
At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php
Copy and paste the following lines of code (found below) just before the </body> tag:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
#### PART B: ####
At the bottom of /includes/templates/[your_template]/common/html_header.php
Copy and paste the following lines of code (found below) just before the </head> tag:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_shipping_estimator')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>
As I cant find this "html_header.php" in "mytemplate", I copy from the default template and paste it inside "mytemplate" with changes mention above.
After that, i install "googleanalytics-INSTALL" using SQL patches. Under the google language, I only insert three lines that are for "English". There is no error return. I login to MySql and can find the new entries.
I went to the admin page to enter the "Analytics Account".
Please advise me where did I go wrong.
-
Re: Simple Google Analytics - Support
In your Zen Admin, under Configuration you do have the option of 'Google Analytics Configuration'?
My guess is that you did not complete Part A and/or Part B correctly. Double check you edited the right files in the right folders. What is the name of your template?
Did you install google_analytics.php into \includes\templates\your_template\?
-
Re: Simple Google Analytics - Support
I have the option of 'Google Analytics Configuration" under Configuration.
I have made changes at /www/mysite/includes/templates/template_my/common/tpl_main_page.php
and
/www/mysite/includes/templates/template_my/common/html_header.php
I copy the whole folder of google_analytics to /www/mysite/includes/templates/template_my/google_analytics
-
Re: Simple Google Analytics - Support
What version of Zen Cart are you running?
What you posted is correct, assuming your template is /template_my/. However, looking at your source code again, your template appears to be /template_natural/
What do you show under Configuration>Tools>Template Selection for Template Directory?
-
Re: Simple Google Analytics - Support
I am using v1.3.9h
Yes, the template is template_natural. The changes are made to the files there. My mistake in earlier post
-
Re: Simple Google Analytics - Support
I have figured it out. I was selecting dates way before this analytics starts. Thanks for all the help
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Actually, this mod does quite a number of things that are not easily done by just pasting a snippet of code provided by Google into your page.
Just a few of the items are:
1) Adwords conversion tracking capability
2) Ecommerce tracking (with dynamic order values not static)
3) Ability to customize the tracking code easily from the admin to accommodate additional tracking options.
etc...
If you just copy and paste the tracking code Google provides into your page you won't get product level detail 'conversion level ecommerce tracking' nor would you get adwords conversion tracking.
Looks like I am missing some goodies. Thanks for the clarification!
-
Re: Simple Google Analytics - Support
Hello,
I am using the Simple Analytics Module, but I have a few questions and concerns.
1. On the setup page for 'Adwords Conversion Tracking Number' there is XXXXXXXXXXX. When setting up the conversion tracking through adwords, I received a full 19 line code snippet. Should I place that full snipped into the section, or find the number somewhere else?
The path I followed in adwords was:
reporting and tools > Conversions > Code
2. Also, for ecommerce tracking, what snippet should I paste? I guess my concern here is that they need to be dynamically created, and I wasn't sure how that was being generated on the back end for the ecommerce tracking
3. My last question is about a couple of other modules I am running. Specifically, I am using PayPal checkout and GoogleCheckout option for order processing. Will this effect any of the tracking in this module? If so, is there any fix?
Thanks to anyone who can help!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
EZorb
Is there anyway to paste Microsoft/Bing adCenter conversion code into this mod so the Microsoft backend will track conversions?
If you want to integrate that, don't try to integrate with the current module. Instead, add the tracking code with the proper qualifiers to the tpl_main_page.php. You'll need to use the "if this page is the checkout success page" type of if then statement (you'll find this in the Google code or in my previous posts.)
If you add that, then customize what AdCenter provides you with, it works like a charm.
Let me know if this helps.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Innovations14
1. On the setup page for 'Adwords Conversion Tracking Number' there is XXXXXXXXXXX. When setting up the conversion tracking through adwords, I received a full 19 line code snippet. Should I place that full snipped into the section, or find the number somewhere else?
Just copy the code, THEN pull the 19 digit number from it and insert that only into the slot provided in your Google Analytics Configuration in Zen Cart.
Quote:
Originally Posted by
Innovations14
2. Also, for ecommerce tracking, what snippet should I paste? I guess my concern here is that they need to be dynamically created, and I wasn't sure how that was being generated on the back end for the ecommerce tracking
You don't need to paste any snippet for this to work. My module already has Ecommerce Tracking pre-integrated and all dynamic. All you have to do is let Google Analytics know you want to track ecommerce transactions ('yes I am an ecommerce site') and my module does the rest.
Quote:
Originally Posted by
Innovations14
3. My last question is about a couple of other modules I am running. Specifically, I am using PayPal checkout and GoogleCheckout option for order processing. Will this effect any of the tracking in this module? If so, is there any fix?
So long as the user is brought back to the site after they complete the transaction, yes, it tracks just fine (no conflicts etc...)
-
Re: Simple Google Analytics - Support
Having had to manually install e-commerce tracking code on some non-zen sites, I really appreciate the quick & easy install this mod provides.
Thanks!
Just one question.
Is there an easy way to temporarily disable the tracking code once installed?
cheers,
Reb
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
rebelIT
Having had to manually install e-commerce tracking code on some non-zen sites, I really appreciate the quick & easy install this mod provides.
Thanks!
Just one question.
Is there an easy way to temporarily disable the tracking code once installed?
cheers,
Reb
I've done this temporarily but going into the admin and just removing the GA number.
-
Re: Simple Google Analytics - Support
d'oh! Obvious really.
thanks
-
Re: Simple Google Analytics - Support
Installed this excellent module no problem a few weeks ago but for some reason it is only tracking the sales of accessories or product options and not the actual products in Analytics? Any idea where I might look to fix that? Thanks!
-
Re: Simple Google Analytics - Support
What version of the mod are you running?
Can you provide a link so I can look at the product options etc... (just a link to the cart is fine.)
Are your 'transactions' (in Google Ecommerce) increasing proportionate to attributes?
-
Re: Simple Google Analytics - Support
Just wanted to say that this was one of the easiest add-ons to install. I-dont-do sql patches. Maybe it's the metal plate in my head, but I can look at a server from the far side of a firewall and the sql database will dump all over itself. :ohmy:
But this one I just followed the crystal clear instructions, and it worked 100% first time.
Thanks.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Yes Jim,
I was just getting ready to release a new version here and will include that as on option.
Awesome, any idea when it will be ready to rock? Can't wait to be able to track this and optimize individual pages better.
-
Re: Simple Google Analytics - Support
The new version is ready and I'll upload it here within the day.
I'll also provide a note and link to where you can get it right away in the post here as well.
-
Re: Simple Google Analytics version 1.2.5 READY
Ok, the newest version of Simple Google Analytics is ready for download.
I'm submitting the contribution to the Zen Cart downloads area shortly but that will take some time to activate.
For those who can't wait for it you can download it now from the following link:
http://www.zencartoptimization.com/downloads/
The newest version is 1.2.5 and here are some details on it:
1) NEW ADDITION: Now provides the ability to track Page Load Time per Google Analytics new features.
2) BUGFIX: Fixed bug in previous version(s) that would sometimes cause the ecommerce tracking values to miss record a transaction if it included certain characters in the name, attributes, etc..
3) CHANGE: The new version now uses more overrides to make it even more friendly. In the previous 1.2.4 version you had to make alterations to the html_header.php file to accommodate some new changes. The new version 1.2.5 eliminates the need to do this by using the js override functionality in zen cart.
For those who may have made this change in the past, you'll need to read the upgrade instructions to make sure you REMOVE those additions to the html_header.php file.
Upgrading from 1.2.4 or higher, just (a) upload all files (no patches to apply) overwriting those in place now. (b) make the change to the html_header.php file (documented in the upgrade readme file) which has you remove the lines previously inserted.
All set.
Any questions, please post here.
Thanks!
-
Re: Simple Google Analytics version 1.2.5 READY
Quote:
Originally Posted by
econcepts
Ok, the newest version of Simple Google Analytics is ready for download.
I'm submitting the contribution to the Zen Cart downloads area shortly but that will take some time to activate.
For those who can't wait for it you can download it now from the following link:
http://www.zencartoptimization.com/downloads/
The newest version is 1.2.5 and here are some details on it:
1)
NEW ADDITION: Now provides the ability to track Page Load Time per Google Analytics new features.
2)
BUGFIX: Fixed bug in previous version(s) that would sometimes cause the ecommerce tracking values to miss record a transaction if it included certain characters in the name, attributes, etc..
3)
CHANGE: The new version now uses more overrides to make it even more friendly. In the previous 1.2.4 version you had to make alterations to the html_header.php file to accommodate some new changes. The new version 1.2.5 eliminates the need to do this by using the js override functionality in zen cart.
For those who may have made this change in the past, you'll need to read the upgrade instructions to make sure you REMOVE those additions to the html_header.php file.
Upgrading from 1.2.4 or higher, just (a) upload all files (no patches to apply) overwriting those in place now. (b) make the change to the html_header.php file (documented in the upgrade readme file) which has you remove the lines previously inserted.
All set.
Any questions, please post here.
Thanks!
Econcepts thank you for all you hard work on this and all the other modules you have created. People like you make zen cart what it is today. Thank You
-
Re: Simple Google Analytics - Support
Glad you like them, glad to be of help, and thank you. :)
-
Blank Page
I'm setting up a new website and am adding google analytics 1.2.5
When I copy & Paste the code into the tpl_main_page.php file and reload my website in my browser I get a blank page (no website). When I take it out all is well again.
What am I doing wrong?
-
Re: Blank Page
Quote:
Originally Posted by
Frankcw
I'm setting up a new website and am adding google analytics 1.2.5
When I copy & Paste the code into the tpl_main_page.php file and reload my website in my browser I get a blank page (no website). When I take it out all is well again.
What am I doing wrong?
I've learned about checking the cache for error log files & the log file said:
[02-Nov-2011 18:24:19] PHP Parse error: syntax error, unexpected '{' in /home/frankcw/public_html/jewelryholdersforyou/includes/templates/ashley_pink/common/tpl_main_page.php on line 187
this error is in the cache folder several times..each time I tried the module.
The code for the google analytics is pasted in at about line 370
The character '{' is in the file before & after I paste in the google analytics code. The file works without the google analytics but doesn't work with the code added.
-
Re: Blank Page
Quote:
Originally Posted by
Frankcw
I've learned about checking the cache for error log files & the log file said:
[02-Nov-2011 18:24:19] PHP Parse error: syntax error, unexpected '{' in /home/frankcw/public_html/jewelryholdersforyou/includes/templates/ashley_pink/common/tpl_main_page.php on line 187
this error is in the cache folder several times..each time I tried the module.
The code for the google analytics is pasted in at about line 370
The character '{' is in the file before & after I paste in the google analytics code. The file works without the google analytics but doesn't work with the code added.
I've found the problem. I had edited the file in Notepad++ and had wordwrap turned on because I had been reading some text files. I did a file compare with winmerge and it noted the carriage return difference. I copied & pasted into the file with wordwrap turned off & it works perfectly now. (I was C&P at line 187 with wordwrap turned off)
Frank
-
Re: Simple Google Analytics - Support
Glad to hear you got it working Frank.
-
Re: Simple Google Analytics - Support
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
-
Re: Simple Google Analytics - Support
Thanks for the 1.2.5 release! I've been using your 1.2.4 module with good success.
After the upgrade from 1.2.4 (no database upgrade), the code generated the following.
Code:
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);
_gaq.push(['_trackPageLoadTime']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
Here's a point you may want to include in the upgrade instructions for people who have previously configured page load time tracking.
Remove the following code from the "Google Custom Code - After" field in the Configuration > Google Analytics Configuration
Code:
_gaq.push(['_trackPageLoadTime']);
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.
-
Re: Simple Google Analytics - Support
Does anybody have a link to the download for version 1.2.5? Thanks!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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:
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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:
-
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>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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/
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
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!
-
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?
PHP Code:
<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
-
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:
PHP 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
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
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!
-
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?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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.
-
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..
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
JSWeb
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..
Good idea Jamie. Thanks for the post!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
coffeecanada
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?
Yes, Simple Google Anlaytics fixes it all for you.
The first thing you have to do is completely REMOVE any trace of code you personally pasted into your site. Then install my Simple Google Analytics mod (follow the readme, it's pretty straight forward).
If using Zen 1.5 you'll need to register the page in the admin (if not, no worries).
Then from the admin configuration just enter your Analytics tracking id (and Adwords conversion tracking if you are using that).
Save and you're all set.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
coffeecanada
I went ahead and installed SimpleGA to see what difference it would make. There's two things that are confusing me though:
1. The include is at the bottom of the page, just before </body> whereas Google Analytics instructions say to put it before the </head> tag.
2. There's a question in the install file:
But the steps only go up to 4. Is this reminents of a previous install file?
My code (Simple Google Analytcis) never uses nor requires you to add that type of code to your site. You probably have the contribution called "Andrews Google Analaytics" installed and that has a few more edits that are made to make it work (but it has some native problems with tracking I am told in a few areas.)
You'll need too COMPLETELY remove all traces of the previous version then install my version for it to work. The problems in the other analytics version cause inconsistencies with my tracking.
That is likely what is throwing you off. It has to be one tracking module or the other ... not both.
-
Re: Simple Google Analytics - Support
V 1.3.9h with language packs
website: www.physics6.com
Eric,
I've spent considerable time trying to troubleshoot a fresh v 1.2.5 install on Zen V 1.3.9h. I've gone through all steps in the install, and I'm having trouble with the step #2. Although I have v 1.3.9h, it is heavily modified, and I cannot locate the following code in /public_html/includes/templates/template_default/common/tpl_main_page.php:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
* I proceeded through the rest of the steps even though this was missing, and completed the SQL patch install. I entered my analytics account info into the zencart module, and attempted to check status on google analytics page, but it is still saying tracking not installed, which is to be expected given the missing code above.
** The first troubleshooting paragraph deals with this issue, but I'm not able to understand exactly how to proceed, and I'm worried about screwing up the code / site by making an improper change to the tpl_main_page file. I'm not entirely certain about where and how to make the appropriate changes.
Question - Can you please clarify where this change is to be made in my tpl_main_page.php. The way I'm interpreting your instructions, I would add my current body contents to two areas as below, and the file would look like below after modification:
<?php
if($page_directory == 'includes/modules/pages/checkout_success')
{
echo '<***PLACE MY BODY CONTENTS HERE*** onLoad="javascript:__utmSetTrans()">'; }
else
{
echo '<***PLACE MY BODY CONTENTS HERE***>';} ?>
THANK YOU VERY MUCH FOR THIS GREAT CONTRIBUTION. I appreciate any help you can offer in getting it successfully installed...
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
coffeecanada
Note that I did install it - and it did track yesterday's sales.
Excellent! Glad to hear everything is working for you!
-
Re: Simple Google Analytics - Support
Hello,
I saw a question in the thread previously, but didn't see an exact answer to my question.
I'm using a previous version of your analytic plugin on a site. I see eCommerce and conversions, but the source of all sale show my main page. I believe this is due to using a shared ssl and being redirected to a host gator https page during checkout.
Would updating the plugin address this issue, or could it be caused by something I'm not thinking of?
Thanks for the great plugin. Getting much more data than before, but need to find source of sale.
Thanks again!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
skinnyalbert
Hello,
I saw a question in the thread previously, but didn't see an exact answer to my question.
I'm using a previous version of your analytic plugin on a site. I see eCommerce and conversions, but the source of all sale show my main page. I believe this is due to using a shared ssl and being redirected to a host gator https page during checkout.
Would updating the plugin address this issue, or could it be caused by something I'm not thinking of?
Thanks for the great plugin. Getting much more data than before, but need to find source of sale.
Thanks again!
The new plugin won't correct that. This sounds like an issue with either how you have your Google Analytics account setup (filters, goals, funnels etc..?) or with the redirect.
Does it track the keywords, etc... (along with the page) and are the keywords etc... all different (the keyword that generated the sale.) I'm trying to figure out what setting within your Analytics you might need to tweak but need more information.
-
Re: Simple Google Analytics - Support
Thanks for the reply,
I installed the latest version anyway and along with the latest view of analytics, found more info than before by creating a goal, that tracks those that "Add to Cart" and then Login. Most of my logins are from purchases, so this almost works. I do see keywords and such for the site in general, but in relation to eCommerce the "Source" shows as my domain name.
Not sure if that helps. Thanks again for looking into this.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
scisupply
V 1.3.9h with language packs
Eric,
I've spent considerable time trying to troubleshoot a fresh v 1.2.5 install on Zen V 1.3.9h. I've gone through all steps in the install, and I'm having trouble with the step #2. Although I have v 1.3.9h, it is heavily modified, and I cannot locate the following code in /public_html/includes/templates/template_default/common/tpl_main_page.php:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
* I proceeded through the rest of the steps even though this was missing, and completed the SQL patch install. I entered my analytics account info into the zencart module, and attempted to check status on google analytics page, but it is still saying tracking not installed, which is to be expected given the missing code above.
** The first troubleshooting paragraph deals with this issue, but I'm not able to understand exactly how to proceed, and I'm worried about screwing up the code / site by making an improper change to the tpl_main_page file. I'm not entirely certain about where and how to make the appropriate changes.
Question - Can you please clarify where this change is to be made in my tpl_main_page.php. The way I'm interpreting your instructions, I would add my current body contents to two areas as below, and the file would look like below after modification:
<?php
if($page_directory == 'includes/modules/pages/checkout_success')
{
echo '<***PLACE MY BODY CONTENTS HERE*** onLoad="javascript:__utmSetTrans()">'; }
else
{
echo '<***PLACE MY BODY CONTENTS HERE***>';} ?>
THANK YOU VERY MUCH FOR THIS GREAT CONTRIBUTION. I appreciate any help you can offer in getting it successfully installed...
Can anyone offer assistance for the above? Thanks...
-
Re: Simple Google Analytics - Support
I am using zen-cart 1.39H
I did everything according to the readme.tex, and I can see "Google Analytics Configuration"in the admin page! but on the bottom of my site it shows:pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
and on google analytics page, shows I have not installed the code, anyone knows what's wrong?this is the /common/tpl_main_page.php I added:
PHP Code:
?>
<!--eof- banner #6 display -->
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
</body>
and the configaration-"Google Analytics Configuration" I PASTE CODE
PHP Code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27542444-1']);
_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>
:oops:
-
Re: Simple Google Analytics - Support
hello, i was going to install this module , got my files transfered , my theme is andover_modern...
/includes/templates/andover_modern/common/tpl_main_page.php
does not exist , so where am i to put the code that's supposed to go there ?
-
Re: Simple Google Analytics - Support
Dear Eric-Thanks so much for your reply to my other question on another thread. You said for us to respond here. I did have my PHP nerd take off the old Analytics module and put on the new module. It now offers an "asychronous" Google Tracking Code type so I think we got it on there.
I did put in my account number (the UA-XXXXXXX-X number) and my conversion tracking number in the spaces provided and then chose Asynchronous and sat back waiting for data. There wasn't any. Maybe no one is responding to the Google ads but I doubt that is the case. So, I went to my ..../tpl_main_page.php page to see what was on there. I found this:
!--eof- banner #6 display -->
<?php
/* Begin Simple Google Analytics */
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
/* End Simple Google Analytics */
?>
// <script type="text/javascript">
//
// var _gaq = _gaq || [];
// _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
// _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>
</body>
As you can see, the conversion tracking number is not on it. Should I put that in manually? Simple Google Analytics does not look like it put that in, should it have? I suspect it should look like this:
// _gaq.push(['_trackPageview','XXXXXXXXXX']);
With all of the X's being the conversion tracking number. Am I right, should I do that? Or has something else gone amiss? Thanks.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Wicked-Incense
hello, i was going to install this module , got my files transfered , my theme is andover_modern...
/includes/templates/andover_modern/common/tpl_main_page.php
does not exist , so where am i to put the code that's supposed to go there ?
Anything ? , should i just put it into my thank you for purchase part or what !?
-
Re: Simple Google Analytics - Support
One simple question: The explanation on the Simple Google Analytics Module indicates that the Google Adwords Conversion Tracking number is 11 digits long, mine is only 10. Is there some extra number that you can put on the end of it? Have I chosen the wrong tracking number? I got it from this line of code that Google generated:
var google_conversion_id = XXXXXXXXXX;
I don't need the ; at the end do I? Thanks.
-
Re: Simple Google Analytics - Support
My time is up for editing my question above, and (of course) I found a refinement to the question, so here it is:
I did start to get data, so perhaps it all had to percolate through the system. However, I am still not getting the data on conversion from my tpl_main_page.php. I know how many people came in because of paid advertising but did they buy anything? That is the question I can't answer. I must have a problem somewhere but I don't know where it is. I still wonder if the area above is not filled in correctly with my Conversion Tracking Number.
However, there is a small catch that worries me. The explanation on the Simple Google Analytics Module indicates that the Google Adwords Conversion Tracking number is 11 digits long, mine is only 10. Is there some extra number that you can put on the end of it? Have I chosen the wrong tracking number? I got it from this line of code that Google generated:
var google_conversion_id = XXXXXXXXXX;
I don't need the ; at the end do I? Thanks.
-
Re: Simple Google Analytics - Support
Could someone please @ least give me a guesstimate that would be worth trying ? I'd really like to track my conversions.
-
Re: Simple Google Analytics - Support
Hello
I am running zen cart v1.3.9h and Mysql 5.5
I installed all the files and edited the tpl_main_page file
i then tried to install the SQL commands in Admin but got an error
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1
in:
[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;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Any help please
thanks
-
Re: Simple Google Analytics - Support
I am having trouble registering the page in 1.5. Has anyone had success? and if so what values did you use?
Thanks in advance
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
kellan4459
I am having trouble registering the page in 1.5. Has anyone had success? and if so what values did you use?
Thanks in advance
I figured it out
I had to define the value I was using in the language_key field
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Wicked-Incense
hello, i was going to install this module , got my files transfered , my theme is andover_modern...
/includes/templates/andover_modern/common/tpl_main_page.php
does not exist , so where am i to put the code that's supposed to go there ?
You should make a copy of the file from /includes/templates/classic/common/tpl_main_page.php and put it in /includes/templates/andover_modern/common/tpl_main_page.php and then edit that file.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fabienne
My time is up for editing my question above, and (of course) I found a refinement to the question, so here it is:
I did start to get data, so perhaps it all had to percolate through the system. However, I am still not getting the data on conversion from my tpl_main_page.php. I know how many people came in because of paid advertising but did they buy anything? That is the question I can't answer. I must have a problem somewhere but I don't know where it is. I still wonder if the area above is not filled in correctly with my Conversion Tracking Number.
However, there is a small catch that worries me. The explanation on the Simple Google Analytics Module indicates that the Google Adwords Conversion Tracking number is 11 digits long, mine is only 10. Is there some extra number that you can put on the end of it? Have I chosen the wrong tracking number? I got it from this line of code that Google generated:
var google_conversion_id = XXXXXXXXXX;
I don't need the ; at the end do I? Thanks.
Ok, just getting back to this thread here.
Google may have altered the conversion tracking number (more or less) so don't fret over the actual length of it.
Two things to consider:
1) Make sure you are using the conversion tracking ID provided from within Google AdWords (NOT analytics) if you are tracking PPC. You are correct in pulling it from the snippet of code Google generated for you.
2) The only time you would ever see the conversion tracking code is (you'll always see the analytics code) is if a visitor FIRST clicks on an ad of yours and then (during that exact same visit) completes a purchase. If they do not complete the purchase on that visit, then the conversion tracking for PPC will not trigger on Google ends (which is correct.)
Having said that in #2 above, and providing you have the proper tracking ID as mentioned in #1 above, then if you do not see any sales on the AdWords end from PPC, your PPC is not generating them (meaning the traffic coming to your site is not buying from that channel.)
That is not to say that PPC does not work (it VERY much does when optimized) it just means you need to refine how yoru PPC is setup and managed. If you want more information on this, feel free to send me a private message. I manage a number of PPC campaigns for a lot of stores and have an excellent track record at managing them so they convert and provide positive ROI.
Let me know if this helps.