Yes, just takes time. Hang in there and eventually Google will update there end. :)
Printable View
Well, I want to thank you for being so nice about this and helping me. I got an email from google about my installations working so I guess everything is ok. I set a small goal up and tested it. Worked fine so I'm happy about that.
Thank you for your help... have a wonderful day!
/js
Any progress with the developemnt of this mod to incorporate the new google analytics code?
Cheers Eric
I've got to implement the code for a client tomorrow morning/early avo so it would be great if it was ready for then.
Hats off to you.
Cal
New unwanted behavior. I get the following error now from Google.
First of all... what does this mean? Second what should I do. I've had to disable all google stuff for the edited files. Anyone know what's going on?Quote:
Access denied. Please try relaunching site overlay from the report.
thanks
Hi Guys,
I dont know, I have installed the modules since 2 months ago and it has been working great. However, since the early of this month, my google analytic starts to showing 0 visitors users at the google analytic dashboard. I have tried checking up the Analytic Account no. in the module which is correct and the Google Analytic URL which has the / attached at the back of the URL. I have contacted Google Support and they have replied saying I have not installed the Analytic tracking code on the side......:blush::dontgetit
Ok... everything is working now. I installed the google files again and everything started working. I did notice that the files were different sizes (some of them). Did someone sneak in a fix and not tell me lol.... Anyway... just glad that it's working again without the weird errors.
I'm happy to announce the release of Simple Google Analytics version 1.2.0!
This version has a few changes and updated instructions.
The main change for this version is the conversion of tracking code away from the previous "urchin.js" version, and toward the new "ga.js" version released by Google in December 2007.
A quick note. The new code released by Google required altering a number of elements including the e-commerce tracking portion, so, anyone who tried to use the following post to implement changes to code on their own (before this release) will definitely want to update to this version.
Important Note:
The code snippet posted here http://www.zen-cart.com/forum/showpo...&postcount=491 by another zen user is incorrect and should not be utilized. It mixed old "urchin" code with new "ga" code which could cause unexpected results.
So again, if you used the instructions posted there to try to implement any changes on your own, you will want to update using this official 1.2.0 version.
Version 1.2.0 is available for immediate download from here:
http://www.zencartoptimization.com/2...de-compatible/
And will be sent to the Zen Cart downloads section today as well. But for those of you that can't wait for it to be posted by the Zen team to that section, you can use the above link to get it now.
In a future release (1.2.1) even more items will be added that utilize new features of the ga code. For now, this will get you everything you need. (the "future updates" will just be "extras").
Enjoy!bolded
[FONT=Arial]Hi,[/FONT]
[FONT=Arial]Yenmax.com store opened on[/FONT][FONT=Arial]website since August 2007. I have a sitemape index file, which is registered at google and Yahoo. [/FONT][FONT=Arial]Google Analytics says my [/FONT][FONT=Arial]PageRank not yet assigned. [/FONT][FONT=Arial]How long I have to wait to see my pageRank? Any idea? Please let my know.[/FONT]
[FONT=Times New Roman][/FONT]
That is a question for another forum / thread. PageRank has nothing to do with Google Analytics itself.
A general answer though of what page rank is a measure of can be found here:
http://www.zencartoptimization.com/2...orgot-the-www/
In short, you need incoming links to increase your page rank.
I just downloaded and installed the simple google analytics mod, and am wondering if there is a way to tell if it is working.
I have a store as a link on my main site, as the store isn't actually the main focus of this site. When I do a view source for my store home page, the google account number is showing up, so I assume it should be working. When I did the install, I am not sure if I missed a step, or misunderstood a step, but I didn't install the "Admin" folder from the download. I only installed the "Include" files and sql. The configuration does allow me to input the google analytic account number.
Appreciate any input as to whether I have done this correctly.
Thanks,
Were you upgrading to the new version, or were you installing it for the first time?
If you were installing it for the first time, then by *not* uploading all files, you probably did not complete the install correctly (at least that is what it sounds like from what you described).
If you are upgrading (depending on from which version) you may already have the admin files in place.
Hello,
Ok So I have Zen Cart 1.3.6, want to install Simple Google Analytics with new installation steps
I replaced the files and put them correctly.
I installed the SQL patch. (including putting that line before the body tag)
I made sure the zv_load part does exist.
I then configured it in Zen Cart Admin.
My google analytics tell me ' Tracking code not detected '
lol I am frustrated.
Please help,
I'm having the same prob: the code is not appearing on the pages, and Google Analytics says tracking not installed.
All 3 files uploaded to right spots.
SQL file run without errors.
Google tracking Id entered in Admin > configuration.
Google Analytics configuration updated; this store is not the main focus of our website, so I added http://www.coreknowledge.org/bookstore/ and gave default page as index.php.
I'm using Zen Cart 1.3.8a, and it has the special zv_onload body tag in tpl_main_page.php, which I'm using in its default form, not customized.
When I view product pages, or the home page, I do not see the Google Analytics code being generated on the page.
I'd love to get this very nice mod working! :)
---Diana
ah, never mind, I missed a step! Always pays to read again, very carefully! (D'oh!)
odayict, this could be happening to you, too, check those installation instructions!Quote:
3. 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
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
Hello,
I have implemented the module and am seeing that it is tracking but I am not seeing the transactions in the ecommerce section of Google. I did a test order and the checkout success pages looks as google is requesting. Does it take longer than normal for them to show? I implemented yesterday and don't see anything yet? I can see my google checkout ecommerce transactions.....
Thanks,
Shrimp-Gumbo
will this work for 1.3.8, we have it on our 1.3.7 and it works fine.... thanks
For ecommerce- some of my orders don't have the items or amounts in them... some are Paypal and some are Credit Card (authorizenet_aim). Any idea why it is working sometimes and not others?
Thanks,
Shrimp-Gumbo
Has anyone covered the fact that the installation sql deletes important configuration data related to attributes and breaks zen-cart?
I had to run these SQL commands to fix my zen-cart install after installing this analytics module.
Code:INSERT INTO `configuration` VALUES ('', 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');
will this work for 1.3.8, we have it on our 1.3.7 and it works fine.... thanks
I'm running 1.3.8a and I had to. I noted that in the GoogleAnalytics.sql file, these commands right at the beginning deleted a bunch of stuff:
First of all, the default install of zen-cart on my system never had a configuration_group_title of 'Google Analytics Configuration' Thus t4 remained set to 0 and then anything in my DB that was configuration_group_id == 0 was deleted.Code:SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
This in turn deletes the following configuration keys from my configuration table:
PRODUCTS_OPTIONS_TYPE_SELECT
UPLOAD_PREFIX
TEXT_PREFIX
And that's just not right.
I now don't know why the following table row is needed. I just used it on recommendation of Ajeh in this thread. It wasn't deleted by the analyytics install.
I'm 97% certain that none of the modifications or additions I've made to the base zen-cart package have caused this error for me. I'm writing this so you will be able to know how to fix your zen-cart IF this problem arises.Code:INSERT INTO `configuration` VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');
So, in conclusion, you CAN install google analytics just fine. BUT, it will probably mess up your products attributes AND you can fix it by running the query I mentioned earlier.
Thanks,
Dave
how can I test if I need to run some other code that this deleted or replaced? how do I know?
First, run this query
If no row is returned, just delete the two "DELETE" lines from the beginning of googleanalytics.sql:Code:SELECT configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
Otherwise, if it does return a number, you'll then need to run the following queries to see what may be deleted. Replace <number> with what was returned aboveCode:DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
If any rows are returned by those two queries, you'll need to back up those lines before running the googleanalytics.sql script.Code:SELECT * FROM configuration WHERE configuration_group_id = <number>;
SELECT * FROM configuration_group WHERE configuration_group_id = <number>;
Hello,
It appears that if someone purchases 2 items that have the same SKU and model number but different attributes then google is ignoring the second one and only reporting one instead of two. Would it be very easy to add attributes to the checkout_success product information?
Thank you!
Shrimp Gumbo
Here is an important fix that you can use to remedy the situation before you install it. I have been looking into this myself, and came up with the following fix.
In the beginning of your SQL file, alter the lines that look like this:
To read as follows.Quote:
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
This in effect says "delete the entry for Google Analytics if it is there, otherwise do not delete anything. I applied this to a release (patch) here today and re-uploaded to the zen-cart site.Quote:
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4 AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @t4 AND configuration_group_id != 0;
Google is not actually "ignoring" it as such. The way Google reports data is all in how you tell it to. If a product is identical in nature to another (as far as SKU, model, etc...) then Google sees that as one individual product (because it is) no matter if it has different attributes.
You can't just add "attributes" to the code without Google allowing it (and accepting it). That won't work.
The code currently in place is taken directly from the Google Analytics instructions.
You can tell Google HOW you want to report data to it (and how they should report on it) by choosing the proper selection from the admin configuration value that reads "Use sku/code".
Currently, Google only allows you to report based on either Product ID, or Product Model. If either of these are identical to another product being purchased (no matter if the attributes are different), then Google groups them into "1" product transaction.
So that is what you are seeing happen on your end. Google is not actually deleting the additional product (or ignoring it) they are simply "grouping" it based on the indicator you have told them to through the configuration value mentioned above.
they say some new things are going to be able to be done with the new "ga.js" version of tracking code, but have not released exactly what that will be yet. Maybe they will allow separation based on "attributes" as well. Who knows.
In the meantime, if you want to separate products with different attributes within Google, you would have to give each product a different Product ID or Model # (depending on the method in which you tell Google to report the data back to you).
Hope that helps in understanding what is going on.
As far as thee Google Checkout sending information back at one time, but not appearing to do so now, that seems to be something that is being affected by another issue and not the analytics itself. The module does not affect how data is moved between checkout and site, it only passes the completed data to Google for reporting as they instruct.
Thanks Econcepts,
Analytics didn't seem to group both items... they just showed one of one item sold... if it grouped that would have been okay. Actually what I am asking is ... "Is there an easy way to add the attribute to the model name and would that work to have the same sku with two product names.... like item #15541 LEXUS-RED and item #15541 LEXUS-WHITE
Thanks!
Shrimp-Gumbo
I just upgraded version 1.1 of the Simple Google Analytics mod to version 2. I did it by the book with no errors and it appears the code is in the pages on www.rv-accessory-store.com but Google Analytics doesn't acknowledge it.
Can anyone give me some ideas? I'm perplexed.
Thanks,
Mark
I think it would be good to have the tracking in the popup_shipping_estimator.html page.... any ideas of how to do this?
Shrimp
Whoops, let me check that. Thanks Shrimp-Gumbo!
Yep, that was it! Thanks!
So now where does one find the Analytics tracking info? In the Google account? Don't mean to sound dumb but my client suddenly decided to use Adwords and frankly I've always avoided it in favor of other methods. So I installed this update but have no idea how to confirm it is passing info.
Thanks again,
Mark
Thanks for the Contrib, i just posted a question on another thread, and just found this now.
Just logged into google and i get a green tick with my domain and it says Receiving Data, which was working before as well, but the problem i have is i cant get conversion tracking to work or goal conversion, any ideas on how this could be setup
Thanks!!
Samantha
I ran the first query and got this:
SQL query:
SELECT configuration_group_id
FROM configuration_group
WHERE configuration_group_title = 'Google Analytics Configuration'
LIMIT 0 , 30
MySQL said:
#1146 - Table 'midwest_mydb.configuration_group' doesn't exist
any suggestions?
I noticed the same thing. If I prefix the table name with zen_ I get the expected results. I'm working with an install that was set up by my designer so I don't know for sure. I did see (back in message 373 of this thread) that the zen_ is supposed to be automatically added but it isn't for me...
Be that as it may, this is a great mod, Eric. I'm amazed at the work you've done - THANKS!
Mark
Does this work with Cross-channel Campaigns (conversion tracking)? I've set it up manually by editing the define_main_page.php, but that "Google Site Stats" link looks stupid in the middle of the page. It would be nice if it was in the footer, but only showed up on the main page.
Hello,
Just installed Simple Google Analytics v 1.2.1 and had a problem configuring the account number. Google would say code is not found on page although I could see it in the page source.
I think I found out the solution and I guess the installation readme could be more specific on this point. I hope Eric Leuenberger reads this message and will fix the doc.
The readme says the Analytics account has to be configured in zencart admin section for Google Analytics. Analytics account number is something like UA-1234567 and using this in zencart config leads to the error reported above.
The point is that Google tells me to insert JS code that uses UA-1234567-1 (notice the final -1) and zencart generates the code without the last part.
Now the solution: use the account number you can see in the JS code Google ask you to insert in your page. If you have only one profile it will probably end in "-1", but if you have more, this number may be different.
Hope this helps.
Two things.
1) To add it to that page (since it does not use the standard tpl_main_page.php file) you would need to add it to that page along (manually).
2) I would NOT put the shipping estimate into a pop-up anyhow. It hurts conversion as mentioned in my 20 Ways book and at this link:
Shipping Estimate in a Pop-Up? Why it Hurts Your Conversion, and What You Can do to Fix it.
You find the analytics in your Google Analytics account.
You will NOT get Adwords data integrated with your Analytics account though unless you link the two. The Google Analytics Workbook describes how to accomplish this process in detail with screenshots.
A few things:
1) Conversion Tracking is only used in conjunction with Adwords. You must have an Adwords account to track that. Then, you must tie your Adwords account to your Analytics account to see the data within your Google Analytics reports.
2) Goals need to be manually setup from within your Google Analytics account, or they will not work. The tracking code merely records the data to each goal (once setup within your account).
The Google Analytics Workbook goes into great detail on these elements and more. You might benefit from getting a copy. It can be a confusing task without some clear guidance and screenshots.
Hope that helps!
Although the SQL queries posted might help, I would be wary of trying to rum them because they make installation a whole lot harder.
Here is the best route to take.
If you are installing NEW for the first time
You should make sure you have the latest copy of the module to start with (version 1.2.1). It contains the updated code that does NOT delete anything incorrectly from your configuration.
If you already installed the module and noticed any configuration data missing then do this:
You may notice that after installing OLDER versions of module (pre 1.2.1) -- and under certain circumstances -- it deletes the following configuration keys:
PRODUCTS_OPTIONS_TYPE_SELECT
UPLOAD_PREFIX
TEXT_PREFIX
If you fall into this category, then you can fix it by running the following SQL query from within your admin.
That should get it all corrected.Quote:
INSERT INTO `configuration` VALUES ('', 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
ONLY INCLUDE the next line if you had Image Handler installed, otherwise, it is safe to leave out.
INSERT INTO `configuration` VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');
Yes, this works with Conversion Tracking. The graphic should not show up anywhere on the page as the code included here will not display a graphic (based on other methods) and if it did, it would show in the footer footer of the page PROVIDING you installed the module correctly and in the proper location (according to the instructions).
As far as "Cross Channel" Tracking goes, that gets setup from within your Google Adwords account and is not affected in any way by the tracking code the module inserts.
What I mean is, it is possible to have Adwords Conversion Tracking installed and configured using this module, BUT not have Cross Channel tracking installed (because that is a feature that you must configure and activate from within your Google Analytics account).
In the event you need to add code to the page for Cross Channel tracking, it should be added near the code inserted for this module found in the bottom of the "tpl_main_page.php" file.
Hope that helps.
I'm reading (I'm Eric). :)
The instructions are a foundation for installation. It is kinda a given that you should use the entire tracking code that Google provides to you.
In a future release I'll be more specific on that part for the three or four people that have had that problem. Keep in mind though that if you've read any of my articles on this topic (specifically Google Analytics Demystified: Part 2 - Vanilla Google Analytics) you'll notice I preach that the tracking number oftentimes includes a trailing "-1".
That number can even change depending on whether you setup multiple profiles for one Analytics account. It could be "-2"; "-3"; "-10" or as many profiles as you setup.
Hope that helps. :)
Thanks Eric. Yes, I'm talking about Cross Channel tracking that has already been set up within my Adwords account. It requires different code that is placed in the specified landing page, which should be the tpl_main_page.php. I've done that but was looking for a more elequant method as the code shows up in the middle of the page, i.e. after the main section but before the footer. I was just wondering if you had a better method of doing so with this addon.
In a somewhat related note, does your addon only display the conversion tracking code on the success page? If so, and it doesn't actually display the "Google Site..." code, then I'll take a look at how you've done so and modify the main page for the Cross Channel conversion traking code.
When I installed this the SQL patch refused to install, I had to turn all of theintoCode:VALUES(''
because it (correctly) claimed that '' isnt an integer. I am using mysql 5.2 on windows.Code:VALUES(NULL
Anyone else have this issue?
Yes, you are correct here. It only displays the conversion tracking on the checkout success page. That is the key page you want to track anyhow if running AdWords campaigns as it is indicates money has been made -- and after all, the only way to determine how effective an Adword campaign is (revenue wise) is to compare it to a revenue generating "action" (such as is the case with the "checkout success" page).
Good point to make to everyone here. MySQL 5+ doesn't like "blank" values in areas. It prefers "NULL". If anyone is using MySQL 5x and has this problem, you'll want to add the "NULL" in place of any "blank" spot in the SQL query.
In the next release of Google Analytics, I'll update the SQL query to include the "5x" compatible code.
Nice add-on. Quick and easy to install as well. Just remember to upload ALL the files. :blush:
I'm on PHP Version 5.2.5 and I didn't have any errors at all and it's working fine. Is there something I should look out for?
Glad you like the module. I got some future update plans for adding even more options in line with the ga.js tracking as they become available.
You should be fine with what you have (nothing needed to look out for). I checked your site, and it looks like the code is installed and tracking correctly.
Enjoy!
Is there a way to check if conversion tracking is working without making a test purchase?
The only way to check if a conversion is really tracking (as in shows in your reports) is to make a purchase. You can simply make a purchase then refund yourself since it's your store if you want. Or put it in test mode and make a purchase. Or add a new payment method like (COD) temporarily and then make your purchase (so no money ever changes hands but the thank you page shows) then turn off the COD payment method after you complete your test.
Keep in mind that conversion tracking will ONLY track those clicks that come DIRECTLY from a paid search ad. So, that means you have to first search on your ad in Google then click the ad (which means you pay for the click) and then complete the purchase.
If you do not first click a paid search ad to get to your site, then conversion tracking will NOT show any results.
Why? Because as Google states, "conversion tracking is for tracking the effectiveness of paid search campaigns". It works in conjunction with that. Without a paid search campaign running, conversion tracking is non-existent in reporting (as it relates to paid search).
Hope that makes sense.
To sum it all up. If you want to check to make sure Conversion Tracking is working, then you need to first find one of your paid search ads in Google (by doing a search on one of the keyword you are bidding on) then click the ad and complete a purchase. Just going directly to your site (not through a paid search ad) and completing a purchase will show "1 purchase / sale" in your analytics account, but "0" (zero) conversions based on that sale (because the sale came from a source outside of the paid search realm.)
I have the some problem... i put the UA Number but is not working....
someone can help me?
Having set up Google Analytics a few times, I think there is an error in their instructions.
To get my tracking working, I have to enter the URL of the site without an http:// prefix.
---Diana
Hello,
Anybody other than me not seeing all transactions that they would expect to see?
There are many authorizenet_aim transactions that I think should definitely be on the analytics report? I guess Paypal might not show up if users don't come back to the checkout_success page.
Shrimp-Gumbo
Maybe it might be helpful to make the checkout confirmation page the "checkout_sucess" page... then only Google Checkout would not be showing up in the reports... I might show more conversions but that is better than only showing 5% of conversions (other transactions show but with no money). Is there an easy way to move the code so that the "confirmation" page collects conversions?
Thanks
Shrimp-Gumbo
Just a little more information about my issue:
The many transactions that are missing revenue amounts when clicked on do show the revenue amounts for the individual items. I am running 1.3.7
I have looked over the google_analytics.php file and don't see any issues with the google_analytics['ot_total'] ... not that it means an awful lot.
I just installed this mod and everything seems to be working O.K. except I'm getting warnings when going to secure pages. Can someone please give me direction on how to solve this problem?
Thanks so much,
Lisa
Very nice add-on ... thanks! New zenner question re: GA ...
I'm very new to php and don't have the foggiest idea :huh: where to find the </body> tag of the create_account_success page to install conversion tracking on this page ... assuming of course that this is actually required and that your add-on only installs conversion tracking for the checkout_success page :D Can someone please help by providing a pointer?
Thanks, Jaap
www.canopyxchange.za.net
Hello Shrimp,
Conversion tracking for "create_account_success" page
Maybe I confused the issue by mentioning that (I think) the mod ONLY installs conversion tracking for "checkout_success" page. I may be underestimating the mod here ...
BUT I actually want to know how to track "create_account_success" page conversions (SGA setting I missed? Or else where to find </body> tag?). My store sells high-value items, the prices of which are only displayed to "logged-in" users. It is the number of user registrations that I want to track. I hope this clarifies.
Thanks, Jaap
canopyxchange.za.net
Thanks Shrimp,
Here's the bottom section from the source of the Log in page:
<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-3523887-1');
pageTracker._initData();
pageTracker._trackPageview('Login');
//-->
</script>
##############################____
I didn't make any other changes. Does this help at all?
Lisa
Jaap,
econcepts can answer best but it places a code on all pages.... checkout_success would show as an ecommerce transaction.... I think in order to determine where the users are coming from that register you would have to include an additional code that you can find in the analytics documentation... I would suggest modifying the google_analytics.php file in the templates by adding another if statement after the:
if($page_directory == 'includes/modules/pages/checkout_success')
{
$order_query = "select orders_id, " . GOOGLE_ANALYTICS_TARGET . "_city as city, " . GOOGLE_ANALYTICS_TARGET . "_state as state, " . GOOGLE_ANALYTICS_TARGET . "_country as country from " . TABLE_ORDERS . " where customers_id = :customersID order by date_purchased desc limit 1";
$order_query = $db->bindVars($order_query, ':customersID', $_SESSION['customer_id'], 'integer');
$order = $db->Execute($order_query);
$google_analytics = array();
$totals = $db->Execute("select value, class from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order->fields['orders_id'] . "' and (class = 'ot_total' or class = 'ot_tax' or class = 'ot_shipping')");
while (!$totals->EOF) {
$google_analytics[$totals->fields['class']] = number_format($totals->fields['value'], 2, '.', '');
$totals->MoveNext();
}
to check to see if the customer is on the page you desire then modify the above if statement to spit out the required code to track that page.
Good Luck!
Shrimp
Hello Lisa,
It looks like you might be trying to do the same thing Jaap is trying to do... track where people come from that login?
Is the code currently commented out on your site?
Your code looks a little different from mine but I didn't have any SSL issues when I put the mod in. If you would like to give your http: or PM me your http: I will take a quick look.
Did it ever work correctly before you put the 'login' in?
Shrimp
Jaap,
If you are trying to get around the mod I would guess the </body> tag would be somewhere in your template files.... you would probably want to go to the page .php file that you are interested in though and add the code to the end of that file. It will still work even if there is something between the code and the </body> tag. I used to have my code in my bottom banner....
Shrimp
Shrimp,
I haven't set any any goals up yet or anything if that's what you mean. I'm still just trying to install the mod. You asked for the source code for a page that was giving this error so I gave you the Log In page. I get the message on every page thereafter during check-out because they are all secure pages.
Forgive me if I'm not understanding correctly. I'm not that experienced with PHP.
I started over by going to a backup of my database and re-installing everything and still get security errors. I added:
<?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>
just before the </body> tag at the bottom of my includes/templates/customtemplate/common/tpl_main_page.php file after uploading the few files in the mod. and running the install.spl (copy & paste).
I don't know what else I'm missing here. I can delete all files but the security errors don't go away until I delete the javascript file.
I'll send you a link to my site but I don't want to leave the site with security warnings for too long.
Thanks so much for any help!
Lisa
The workbook goes into some explanation of items that are many times passed over by users.
One thing you "might" be experiencing in not see all transactions is the fact that since Google Analytics runs on JavaScript, it will not show transactions (or visitors) for anyone who has JavaScript turned off (or blocks all scripts) with their browser.
This is something that Google mentions in their help files (dig deep).
The other thing could be that if you are using PayPal or another third party processor in which the user has to click a link to return to the merchant after a sale, then the tracking will not record a sale if the user does not click that link.
From my experience, it is normal with most analytics programs to have slight discrepancies in data reported. Major differences should be cause for concern though.
The conversion code IS already on the "checkout success page" (as long as you activate the conversion tracking from within your zen admin).
That is the only place you could track a sale. So to answer your question, it would bee a bad idea to use the "checkout confirmation" page as the page that considers a sale "final" (and thus records a conversion).
In fact, that would REALLY through off your reporting and give you false readings because not all users actually complete the sale once they get to that page (which means their card has not been charged, and their order does not appear in the admin).
The checkout confirmation page is just that. A page that asks them to "confirm" (better terms are "review") their order BEFORE they submit it. Experience has shown that you will find a number of users that abandon their cart at that stage (for reason that the 20 ways book goes into). If they abandon, and you record them as a sale, your numbers will be inflated, and your statistics all wrong.
Checkout "success" page is the only one that can give you a "true" report of the actions on that site for a successful sale.
This should not be due to the installation of this mod. It does not cause those errors as it dynamically calculates whether the page is secure or not.
The most often problem when I see this issue that you are having comes from users installing "live help" contributions that do not take into consideration the fact that the live help may appear on both secure and non-secure pages.
I have corrected a number of issues relating to this exact problem with many zen sites for users.
Your best bet is to select "not show" the un-secure items on the page when you get that warning. That will remove those items from view which are not secure and give you an idea of where to start.
A few of the "live help" contributions in the downloads section cause this exact message to appear on secure pages. Check the other contributions you have installed for issues.
If you are running any of the 1.3.x + versions of zen cart, this line of code is already in your cart (as the instructions say in the readme file). You can skip looking for it.
If however, you are running older version of zen cart, then you'll need to make adjustments (but it would be a better idea to upgrade for many reasons).
What you want to do then is to track the "create account success page" using GOALS and Funnels .. NOT conversion tracking. Why? Because conversion tracking is a measure of how effective your Adwords campaigns are converting and in order for it to track actions, the user must FIRST have come from one of your adwords ads (by clicking it) ... otherwise, the conversion will not record anything.
Plus, conversion tracking is a REVENUE measure, and the create account success page does not generate any revenue for a company, so it would be a mistake to track it with "conversion tracking".
If you want to track how many people get to that point, and the effectiveness of your process up to that page, then you need to setup GOALS (in your Google Analytics account) and a funnel to that goal.
You are allowed currently to setup up to 4 different goals and associated funnels.
Hope that helps.
This is definitely not the correct way to do it and could cause problems in tracking. You should not need to alter any tracking code in order to track who arrives at (or the conversion rate of) the funnel leading up to the "create account success" page.
You need to use Goals and Funnels (which are setup from within your Google Analytics account). The Google Workbook in my signature explains this concept further and in more detail.
My earlier post further explains the concept.
Actually, I think what Lisa is having a problem with is the "security error" message appearing on secure pages (when it shouldn't).
This is not a result of the code of the Google Analytics module (unless you made changes yourself that caused it). It is more likely a result of some other contribution of image. Read my earlier post here to get more info.
Lisa,
You are talking about a different mod. Not this one supported in this forum. This is the forum for "Simple Google Analytics" mod found here.
There was another one released that I do not support as I did not create it. I can tell you that this version works without error.
If you want support on the other mod, you'll need to get it from that thread in the forum that it is supported in.
The file highlighted in red above is not part of my contribution.
Please make sure the two different modules are kept separate as it is beginning to confuse people coming to this forum for assistance on the other mod. The mod I have listed in this post is the original module that was released. The other version just came out about a week ago.
Thanks so much Eric for clearing that up for me. I didn't realize these were two different mods.
I don't have live help on my site and I didn't have any issues with secure errors before installing the google analytics mod. So not sure what's causing it. I did uninstall this version and then installed your version without any difficulty or secure errors. So I'm hoping it was the other mod and not anything on my site???? Should I be concerned?
Thanks again for taking the time to help me sort this out.
Lisa
Just to clear up my issue with secure errors in case anyone else runs into similar problems.
There are two Google Analytics Mods....Simple Google Analytics which is this support thread and Google Analytics Integration which is covered under a different support thread.
I downloaded the Google Analytics Integration mod. thinking it was just the updated version of this mod. (I just upgraded to 1.38 and wanted everything current) and had problems with secure page warnings with all my secure pages for whatever reason. I posted my question here not realizing this is a different mod. Once Eric pointed out that there were two versions of this mod. I looked under the support thread for the GA Integration and saw that others are also having problems with secure errors. I uninstalled it and installed Eric's version Simple Google Analytics and everything installed perfectly with no security errors.
So just wanted to say be sure you know which mod. you downloaded so you can post your questions to the right support thread!! If it was confusing to me, maybe it is to others as well.
Thanks again Eric!! Issue resolved. :smile:
Lisa
Thanks econcepts,
I really want to know where the people are coming from that buy... I see that on the ecommerce but no where else....
you have offered very much great info for free.... I have purchased your templates but am hoping 1.4 comes out before I can modify it into my site..... I will get your workbook as I didn't know most of the things you have said above.... I am sure there are many more things you can teach me..... BTW thanks Merlin for letting me know about econcepts free booklet.
Shrimp-Gumbo-mmmhhh
No. The issue here deals directly with "ecommerce tracking" (which is different from conversion tracking, and different from Goal tracking).
The "0" revenue figures should show under the ecom stats as they are "independent" from the Adwords conversion figures.
Basically, ecommerce tracking records data for ALL transactions that happen at your site, whether they come from Adwords or not. Likewise, ecommerce tracking has with it, its own conversion rate figure (which could, but not always, differ from the conversion tracking figure you get via your adwords "conversion tracking" code).
So the issue here isn't Adwords related as ecommerce tracking doesn't distinguish between the two.
Hope that makes sense.
I never noticed this issue with "0" for revenue figures on certain orders until Google Released the new ga.js tracking code.
I am researching that with Google now to find out if there is a bug on their end that may be causing it.
Hi
Just to confirm I too am having discrepencies with the new analytics.
I am having 0.00 revenue figured for some transactions.
And the Adwords Campaign figures do not tally either. I think if the revenue from a transaction is 0.00 then in e-commerce tab of the ad-words section it shows as no transaction.
I think I made sense???
Craig