It could be that the Google Safe Search option is with IE as well. I only could refer you to what I have heard on the Internet about that message (usually with Firefox).
I am viewing the site on Firefox (newest version) and here is what I see:
Printable View
It could be that the Google Safe Search option is with IE as well. I only could refer you to what I have heard on the Internet about that message (usually with Firefox).
I am viewing the site on Firefox (newest version) and here is what I see:
Retracted....
i just installed simple ga and when my first order went through, it was for 2 phone home jackets. 1 in blue large and the other in black large. but according to ga i only sold one, but but my revenue totals show the total of both.
is it possible that this module only looks at the item name or number and not the attributes and therefore when it got to the second line item on the order it either completely erased the original value or just ignored the second. i
the module should instead add too the existing value if a second line item has the same item name and number
This has nothing to do with how the module works. It it actually in the way Google records the data.
The module simply helps install the code on your site (that code comes directly from Google's instructions). The module just makes it easier to do by enabling you to add the tracking without the need to actually open up PHP code and plug it in.
The reports you are getting are actually correct. (Google showing 1 sale, but the full total of both (2) items.) It appears it's the way you are reading those statistics that is causing confusing (not in the way they are being recorded.)
A brief crash course on how Google reports data:
1) A single Goal equals a single sale (even if there are multiple items in any given order.) This is because Goals are "per action" based (not "per item").
2) A single Conversion equals a single sale (when using conversion tracking). Like Goals, conversion tracking tracks on a "per action" basis not a "per item" basis.
3) E-Commerce tracking tracks data on a "per ITEM (transaction)" basis. So, if there are two items in one given order, it will show both, and record the total value of both as well.
4) A single sales funnel reports data on a single GOAL (on a "per action" basis).
So, to sum it up, the only thing that you should expect Google to track on a "per item" basis is the e-commerce portion of analytics. Everything else is based on a "per action" basis with one action equaling one tracking component.
Again, this way of recording data has nothing to do with the Simple Google Analytics module itself -- which only integrates Google tracking into your website. It is completely and totally a function of how Google records your data, and how you are able to read and interpret it.
In the Google workbook I created, I go into great detail about the key tracking components you want to make sure you read in your reports, and give illustrative examples of how you can use and interpret them to help you get the most from your store. You may want to get a copy of that sometime and go over the contents. I think it will really clear a number of questions up that I consistently see users asking, and the feedback on it so far shows it has done exactly that for many who have used it.
There is a way to read and interpret statistics properly. Just installing the Simple Google Analytics module will not give you answers, it will only give you the DATA needed to get your answers. To get your answers, you need to be able to interpret what those statistics are saying.
Installing the GA module is the right start, but if one is unable to narrow down a few key statistics offered by the tracking results, and get true answers from them, then it could mean the difference between making more money, losing money when it comes to your online store.
Hopefully this post helps you a bit to understand where the confusion may be coming into play. Good Luck with your store!
I think you misunderstood me. There is a problem with the way this program works with google analytics. I belive it to be the way the program defines the product id.
Here is my sales according to google analytics:
Products Items Revenue
Contour Smoothy 5 $94.35
Phone Home Jacket 1 $97.95
Here is how those 2 orders look in zencart:
Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
5 x Contour Smoothy
- Color: Black
- Size: 10 0% $18.87 $18.87 $94.33 $94.35
and
Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
1 x Phone Home Jacket
- Color: Black
- Size: Large 0% $97.95 $97.95 $97.95 $97.95
1 x Phone Home Jacket
- Color: Heritage Blue
- Size: Large 0% $97.95 $97.95 $97.95 $97.95
Notice how when an order for 5 contour smoothys all in the same size and color was placed google analytics got the qty and total correct, but when 2 Phone Home Jackets are bought one a blue large and the other black large google analytics gets it wrong.
I think if there was an option to append the item_id with attribute ids it would correct the problem. I think google is only expecting to see an id once per order and the fact that this order has the same id on 2 different lines is confusing it.
What does the E-Commerce Tracking data (that is actually passed to Google) look like? The code that is separated by the "pipe" | delimiter that is.
Post that and I think I could better explain it to you if needed.
This could be due to the way you have the data on your end being setup and sent to Google. I would check to see what you are using as your unique identifier for passing data to Google.
Your choices are "Products_ID", or "Products_model".
That determines how a product is portrayed on the Google end. If a product id is identical from line to line, then that will show as a "1" (if your determining unique identifier is Product ID).
If however your identifier is "products_model", and each product color has a different model, that would comes across as "2".
See if that helps any. I absolutely understand what you are saying and where you are coming from (your illustrative description was right on), however, the way the code is setup currently, is the way Google tells you it has to be setup (1 item per line).
One other quick example that may help here.
The following code was taken from an order placed on my test Zen cart site. I intentionally ordered several products and ordered two of the same product (which come in different "options") to show you what is happening.
In the above example, I have 4 different "transactions" (1 for each unique product I added to my cart ... even though one of those unique products [#26] has to different OPTIONS.)Quote:
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|12||547.81||5.00|Test|Tennessee|United States
UTM:I|12|8|A Bug\'s Life Linked|Cartoons|35.99|1
UTM:I|12|23|The Wheel Of Time Linked|Strategy|99.99|3
UTM:I|12|26|Microsoft IntelliMouse Explorer|Mice|70.95|2
UTM:I|12|26|Microsoft IntelliMouse Explorer|Mice|64.95|1</textarea>
</form>
The red highlighted number indicates the "sku" that Google will use to determine whether a product is considered unique or not. The orange number represents the qty of that product purchased.
Product #26 had two different attribute options. Those different options make it unique (if it wasn't then the cart would have added a number to the first transaction for #26 and it would show a qty of "3" (instead of the "2" you see in the sample.)
Since Google analytics tracks "transaction level data", it wants each of these two different "transactions" of the same individual product on different lines (this is per Google's developer FAQ's listed on their site.)
The qty number is only appended to the previous transaction IF and only IF that transaction is identical in nature to the first (meaning, you actually added another qty amount of a product to your cart that was exactly the same as one you already had in it.)
So, having said that, I come back to the "unique identifier" that Google uses to determine how to report an e-commerce transactional sale.
In my example I indicated to Google that my unique identifier would be product ID. Therefore, as reported to Google, I only have 1 "Microsoft IntelliMouse Explorer" that was purchased. There are multiple qtys of that product, but that product alone only represents "1" unique product (that happens to come in two different variations).
So, as mentioned in the first post, go back and check what you have set as your unique identifier (done from within the admin) and more than likely, that setting is causing google to give you the data is is reporting.
I'm trying to work through this with you. I hope this post helps.
Where can i see the data that gets sent to google?
<textarea id="utmtrans">UTM:T|1613||59.95||0.00|Wayne|PA|US UTM:I|1613|5|Gaucho Capri|Women\'s Active Bottoms|29.98|1 UTM:I|1613|5|Gaucho Capri|Women\'s Active Bottoms|29.98|1</textarea>
how do i make google see both items?
I think my best option would be to have google_analytics.php just combine the lines with identical product ids.
or add option_value_ids to the end of the product_id
This is a great mod! I can't believe how easy it was to install the code across the site. Eric, I've been following your blog... thanks for the easy to follow instructions.
One thing I think the mod is missing (correct me if I'm wrong) is the ability to add the code to track subdomains. For example, my main site is www.example.com, but my zen cart is at shop.example.com. To tie the two into one profile, Google's instructions say to add this code on the subdomain pages:
I was wondering if you could add the ability to enter the udn, or point me in the direction of hacking the code to enter it for my case. Any help is much appreciated... thanks!Code:<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxx-x";
_udn="example.com";
urchinTracker();
</script>
Hello, everyone! I'm sorry if this seems off-topic, but no one responded to my original post about it and I'm hoping it's an easy answer that one of you knows!
I am signed up for Yahoo Search Marketing rather than Google. In order to set up simple analytics, I am supposed to "Copy the HTML code below and insert it between the <HEAD> and </HEAD> tags on your site's conversion page(s)." The code begins "<SCRIPT language="JavaScript" type="text/javascript">...
>> Where is this code supposed to go? <<
Do I add an html header to define_checkout_success.php and put it in there? I am very, very basic with coding, so any help you could give would be appreciated!
Thanks so much!
Here is what your code looks like that is being passed (as you sent it to me). I broke in down into separate lines for easy reading.
Quote:
<textarea id="utmtrans">UTM:T|1613||59.95||0.00|Wayne|PA|US
UTM:I|1613|5|Gaucho Capri|Women\'s Active Bottoms|29.98|1
UTM:I|1613|5|Gaucho Capri|Women\'s Active Bottoms|29.98|1</textarea>
The first line that starts "UTM:T" combines all data for the single transaction.
The remaining two lines "UTM:I" are each of the line items that were passed from the cart.
This is how Google wants it to report. Again keep in mind that the way the items are passed to Google is exactly how Google states they need to be passed. So, to alter the code to combine lines with identical product id's would go against what Google says has to be done to send the data, and would cause problems.
The issue here is not how the module passes data to Google. It is in how you are choosing to:
1) Use the Unique Id as a SKU
2) How products are listed in your store.
Here is an example of what I mean. I ran a checkout procedure on a test cart of mine then recorded the end data that is passed to Google after the sale. What I did was added 2 of the SAME product to my cart then checked out. Here are the results.
The first line is again (as it should be) the "transaction" totals (UTM:T). The second line takes the two products and combines them into one line just as it should. I made no alterations to the code here, just added the same item and was on my way. It combined the lines normally.Quote:
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|13||146.90||5.00|Test|Tennessee|United States
UTM:I|13|26|Microsoft IntelliMouse Explorer|Mice|70.95|2</textarea>
</form>
Why? Because everything about the product was identical. If there were two different "colors" (attributes), then it would have reported two lines (rather than one).
Again, you must keep in mind that you are passing "items" to Google and that if two items differ in one area (such as "color attribute") then they are considered two totally different items.
This is the case with your cart as well. How would you know which product ITEM a customer ordered if your CART combined them into 1 "item"?. You would have no idea what color was ordered if the two different items were combined.
It's this simple. However many individual LINE ITEMS you have listed on your "shopping cart page" (when viewing your cart), that is how many "LINE ITEMS" you will have when passing the data to Google. If you want it to operate differently, you need to alter your products.
Glad you like the mod MyGreyGoose, and glad you like the blog to.
Thanks for the suggestion on the mod as well (the addition of the subdomain capability), however, that wouldn't be a feature which "should" not be added (it would need to be added by hand manually) and here is why.
First understand that you can track subdoamin activity several ways. The method you described allows you to track additional subdomains under one website profile.
When you add the line of code (for subdomain tracking "_udn="example.com"; ") that you are specifying, it should ONLY be included on the pages of the subdomain itself (not on the rest of the "root domain" pages).
Google states the following:
Notice the last section that I out in bold. It specifically states "pages in the subdomain". So to add it as an option to the entire module would not work because the module assumes the code is used for one domain.Quote:
"You can track subdomains within the same profile as the domain. In order to do so, you'll need to add a line to the tracking code on each page of the subdomain."
Now, here are your options to get you where you want (there are a few):
Option 1 - requires programming knowledge:
Manually alter your "tpl_main_page.php" file with some PHP code that gets the url string and splits it to determine if this is a subdomain page or not. If so, add the line of code you need to the tracking.
Then, you may need to set a filter in your Google Analytics account to distinguish between different subdomains (if you have more than one).
Option 2 - easier method, and will work the same as the above
Option two here achieves the same effect as the above, however, rather than tracking subdomains under one website profile, you track them as separate website profiles (under the same Google Analytics account).
You still would need to do a little "manual programming" to achieve the effect as this code should ONLY be included on the pages of the subdomain again.
Under option 2, you create a NEW website profile under the same Google Analytics account for each of the subdomains you want to track. This will give you a unique tracking id for each subdomain.
Now, you still need to alter the tpl_main_page.php code to determine whether the page(s) being viewed are in the subdomain of the site, or the root domain.
However, this time, instead of adding the line of code we talked about above, you would perform an "if then" and list out the entire set of new tracking code for the subdomain ("else" list the code for the root domain).
It gets a little more complicated when tracking subdomains because the code has to bee entered ONLY on the pages of that subdomain being tracked (but it can be accomplished).
Hope that helps. :)
Are you asking how to setup Yahoo Search Marketing code using the Simple Google Analytics module, or are you asking how to setup the Google Analytics module in addition to the code you already have entered for Yahoo?
I have done both successfully (and am converting my Yahoo code to a contribution as well), but you can't setup Yahoo using the Google mod. Please clarify your needs so I can assist.
Well, I probably have a pretty rare situation where my overall site www.example.com is on a separate server and shop.example.com is on it's own server. My main google account is tied to example.com, and ALL of my zen cart is on shop.example.com... so having the option to enter a subdomain in this module would work for me b/c none of that code touches anything that is not that subdomain.
Any way, the fix for me was pretty simple and straight forward: I went to includes\templates\my_template\google_analytics\google_analytics.php and added _udn="example.com"; to the code. I think that'll do the trick. I then went and set up a filter per Google's instructions so that it'll distinguish between my www.example.com and shop.example.com files. I hope it works!
In order for that to work, just make sure you only include the "_udn" code within the tracking for the subdomain pages only (no the root) and vice versa.
When applying that method, it only should appear on those pages which are being considered "seperate" in your eyes. Otherwise, it will not work.
Hello, Eric! I'm sorry for the lag in my response. To clarify:
I don't know if I need a mod or not.
All I know is that I'm supposed to add the piece of code (javascript) to the html header on the purchase confirmation page.
So is there an existing file that I would just add it to?
If not, how do I go about getting that code somewhere so that it will be read as the head of that page?
Thanks so much for all your help!
Hi i need some help i am just trying to sort this out for a friend... I think i have gone through the instructions properly... But i am getting this error
Please HelpCode:SQL query: https://phpmyadmin.1and1.co.uk/theme...img/b_help.png
SELECT (@t4 := configuration_group_id
) AS t4
FROM configuration_group
WHERE configuration_group_title = 'Google Analytics Configuration'
MySQL said: https://phpmyadmin.1and1.co.uk/theme...img/b_help.png
#1146 - Table 'db177628526.configuration_group' doesn't exist
Please ignore the last post i was being dim!!!!
Hello,
I've been using the mod for a while now, and it was working just great. Now, it seems that data is missing when I visit Google, and I was wondering if anyone else has seen this problem.
Back on Aug. 11th was the last time that google shows any visits to my site from MSN Live Search. After finding this problem I started checking the data more closely, and found that google is only registering some of the visits, but not all. I don't see any pattern except the MSN search doesn't show up at all.
I contacted google and they wrote back that my site wasn't showing up in the MSN search and that was why I didn't see any results. Google shows I had 11 visitors yesterday, total. I wrote back and told them I show 12 visitors from MSN, and more than 30 visitors total. I haven't gotten a reply yet.
Has anyone seen anything like this?
Could it be (just a thought) that those users who are not showing up have JavaScript turned off on their browsers?
Google will not track visitors who block or have turned off JavaScript. This also can occur for some users that are behind firewalls.
Since Google runs on JS, it will miss those visits.
Here is a link to the Google help center for troubleshooting tracking issues. It may help.
http://www.google.com/support/analyt....py?topic=7315
GA and EZ Pages
My EZ Pages all have the GA code and I have set the EZ Pages urls as goals. I have hit those EZ Pages from several PCs with different IP's and the goals havent left 0. Not sure what to do. Thanks!
Is it just me, or is the Google Report very slow. I got over 500 hits yesterday and it didn't update today. What is there schedule for reports? The code is put in my admin, and all the files have been uploaded.
??
Tat
As long as the code is on the EZ Page, it should track the TRAFFIC.
As far as Goals go:
You can ONLY track Goals if you have set those up within your Google Analytics account. This is something that is a part of Google Analytics, but can NOT be installed by a script tag. It must be setup from within your Google Analytics account in order to work.
If those are in place and the tracking code is in place (which it is) then you should see Goal conversions.
I just threw my analytics code into the footer.php page in the includes folder, works file!
I just double checked and the below page does has the GA code (did a veiw source).
I have the below as my goals within GA:
http://www.pastgenerationtoys.com/in...id=5&chapter=0
I have hit that link from mutiple machines and the goal, like all my goals, stays at 0. I can post a screen shot if that helps. Thanks! PGT
Two questions:
1) Did you setup any funnel to that goal? If so, it may not be recording due to those settings.
2) Why would you want to track that particular EZ page as a goal? Just wondering. Goals are usually used to track "event actions" on a site that relate to some type of conversion occurring.
Does a visitor arriving at that page mean something toward the sales aspect of the site?
Again, just trying to figure out why you want to track goals for that if it doesn't relate to sales? No harm meant in it, just asking. :)
Fair question - no harm taken.
I have no funnels set. I set the goals to the EZ pages for two reasons:
1) Main reason - It was a test to see if goals work.
2) Since my URLs are not easily translated to what's on the page this was meant to be an easy way to see if people were visting those pages. I would love to know if they are worth the time it takes to build them as I would build more like the "toy commercial" page. That page in particular is in the "works" to bring in sales by showing the toy commercial and has links to buy that toy seen in the commercial.
But... goals always stay at 0.
I did get a reply from Google, but it was a can response, and worthless. My email did do something, and now google shows 1 visit from MSN search (there were two, but it did show up). This is the first time since Aug 11th that google is showing visits from MSN, and their total visits, and User Tracking is much closer (29 user tracking, 23 google).
Google Analytics can be a very useful tool, but you have to be able to trust their data. Since they were off by 2/3 day before yesterday, and are only off by 6 yesterday I think they have found the problem and fixed it. I only have 30-50 visits a day, so it’s easy for me to see "discrepancies". If you have a site that has hundreds of visits a day, checking the data that google is giving you could take some time, but may very well be worth every minute.
Ok there is definitely a problem... it's been over 3 days and still no update. I've had 4000 hits in these three days and it still reports 1 visit.
Is it because I only inserted the code in the bottom of my custom/common/tpl_main_page.php? I have a feeling I'm supposed to put it everywhere. I basically just want to know where people go and what items are viewed more often...
Thanks in advance,
Tat
Nope. "tpl_main_page.php" IS the site (basically every page on it). That is the main template Zen Cart uses to "wrap" the entire site. To verify the code is on each page (which is will be as long as you inserted it on the page referenced) all you have to do is visit a page on your site then do a "view source".
Look near the bottom of the page source, and if the code is there, you're good. If not, you did something wrong when installing it.
If it is indeed there, then you might want to check with Google on what the cause could be.
A few thoughts:
1) Are you looking at the correct account profile when logging into your analytics account to view the reports? If the id number on your tracking does not match that on the profile you are viewing, then you need to switch to the profile the tracking code is for in your reports in order to view any data.
2) Is this the first time you are using Google Analytics, or was it working previously and just decided to stop reporting data (again, as long as the tracking code is in place on your site and the id is correct, it is not the contribution causing the issue, it is on Google's end)?
Thx for the reply econcepts,
Ok, I'm glad a learnt about the main page, and the code is there on every page so I guess it's a google issue. I'll contact them a repost any updates.
Thanks again!
Tatiana:cool:
Hi folks,
I've installed and configured the Simple Google Analytics add-in as described in the readme-install file. After tackling the 'where is the friggin' menu item' which had to be enabled in AdminProfiles mod :), I entered my code as explained.
Dumped my browser cache, re-browsed to the store and no code in the code at the bottom.
My template is called 'custom', so I navigated to
/includes/templates/custom/common/tpl_main_page.php
verified that the body tag was as described and added the following just before the </body> tag:
Any suggestions would be greatly appreciated.PHP Code:
<!-- begin google analytics mod addition - RSL 20 Sept 2007 -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
<!-- end google analytics mod addition -->
</body>
Thanks and best regards,
~Ray
BouncerFL
The page in which I entered the code was not the default page being used. In my case, the path was in includes/templates/template_default/common/tpl_main_page.php
Thanks for a great lil' mod :) I'm looking forward to seeing that data!
Regards,
~Ray
BouncerFL
Glad you solved the issue. :)
I just installed this mod, but for some reason, my favicon went away and now it's a windows icon.
http://www.seasonsofautumn.com
Anyone know how to fix? Coincidentally, the install is great - I assume it works, but I'll have to wait at least a day to see the reporst.
Autumn
The installation of this or any other module will not affect whether your favorite icon displays or not. I would recommend going back to the top of your header file somewhere and making sure you didn't alter anything there. That is where the favorite icon is set.
This contribution does not mess with the header file in any way. Something else had to occur.
:)
Check to make sure another contribution that affects the header did not play a part in it. Just a thought. When I went to your page and did a view source, there was no favorite icon reference (which explains why it shows as a default windows icon.)
Thank you for a great mod.
Does it and Google Funnels work with shared SSL?
I have the following issue. Since I am using shared SSL (my host's) my cart and checkout links are as follows:
http://www.zipdrugs.com/shopping_car...r_of_uploads=0
https://secure.MYHOST.com/~zipdrugs/login.html
I set up Google Funnels so that cart page is step 1, and checkout/login page step 2 etc.
Google Funnels tracks items/people going into cart but keeps showing 0 for all other steps. Therefore I am wondering if this mod and/or Google Funnels work with shared SSL.
Also, does anyone know why shopping cart link above has number_of_uploads=0 in it eventhough i am not selling any uploads/downloads?
Funnels should work on shared or non shared SSL sites. Just make sure you use the correct url in your Google Account when adding the funnel path.
I can't find my Google Analytics account number because I signed up a long time ago, do you know where inside my analytics account I can find this number?
I got it under edit analytics account
If I am using SSL for checkout do I need to change or put any special code?
I am not using a shared ssl.
just asking this because in the google adwords tracking code you have to specify ssl or non-ssl and in the zencart analytics setup there is nowhere to specify this
Hi there
I've been using Google Analytics for a while but I've now decided to add the ecommerce tracking.
Do I need to delete the code I put in the footer file before I install Simple Google Analytics?
Thanks
Steve
When I look at my google analytics it tells me my highest search keywords....however I question if this is accurate because it says that 11 people searched a product in a specific size yesterday on my site and according to my user tracking, I didn't have even one person search for that product, let alone a specific size.
What am I doing wrong?
Yes, if you manually inserted the e-commerce tracking code into your footer file, then you will want to remove that if you install Simple Google Analytics. The Module automatically inserts the proper e-commerce tracking code for you so there is no need to manually insert it.
Google search terms are for terms that are searched on from the INTERNET (the search engine Google). I don't use the "user tracking" module in my zen sites, but if I recall from reading that tracks the searches performed on your actual Zen Cart site where as Google reports on those terms searched on through their engine alone.]
You haven't "done" anything wrong from a "technical perspective". You're reading the statistics wrong.
With user tracking you can tell what site the customer came from, if it is from a google search or google products ect... I can tell that customers came to my site using other search terms but I do not see any searches for the 1. keyword phrase.
I can find every other keyword or keyword phrase just not that one.
I have loaded your files, all under the Public HTML folder, but Google Analytics doesn't recognize me for account purposes. GA keeps asking me to add their script. Where do I put that? I am assuming I've done something wrong?
:lamo:
Make sure you have given Google the proper url to check for the code at. Also make sure you have configured the module with your unique Google Tracking URL.
Make sure you have also followed the included readme for installation. The files I provided with the module all go into subdirectories off of the root. Not directly into the root themselves. If you have a custom template you are running, you need to account for that as well during install.
The workbook I have listed in my signature goes through step by step screenshots of how to troubleshoot Google Analytics including this exact problem.
Good luck!
Keep in mind that Google Analytics would not report correct data if the user on the other end has JavaScript disabled in their browser or blocked. In addition, sometime the presence of a firewall will cause tracking to not work. This is information that is directly stated in the Google Help section for their system.
This may be the case you are seeing. Since Google Analytics runs using JavaScript, any user with it disabled or blocked will not be tracked.
Hope that helps. :)
This link may further explain.
http://www.google.com/support/google...n&answer=55614
I'm working through the setup of conversion tracking. When I do the code verification in the adwords control panel, it says it cannot find the code on my checkout_success page. But when I go to my checkout success page, sure enough there it is.
Sooo . . . what do I do? If the status on google is 'Verification failed' will it still track conversions? Any thoughts from the experts would be greatly appreciated. Thanks!
When I compared the code that was showing up on my checkout_success page to the code that google was telling me to copy and paste, I noticed a few small discrepencies. For example this code for the google_conversion_label was different. (I however have no idea what this means.)
Sooo, I turned off the tracking in the admin, and hard coded the sucker in the tpl_main_page for the checkout success page. I have now verified that the code shown is EXACTLY the same code google is telling me to show, but yet, it still fails verification. . . .
The tracking code provided (used) within the module itself works ok and is code that Google authorized quote a while back. Since then they have made some minor adjustments, however, those adjustments have no effect on the tracking code.
As long as you turned the tracking code on from within the Admin (and activated it) then you should not have to manually add any code to your page.
The reason for google not being able to verify the tracking code is more than likely do to the url that you are providing google or some mis configured tracking id number on your end (again, not within the module itself).
The biggest thing I see with people is that many think they have properly setup and configured analytics, when in fact, 95% of the time I get in and find they have not set it up correctly (thus giving errors as you are seeing).
The module itself, once installed, works flawlessly (I'm using it on over 15 sites right now without a problem, and have been for as long as 1.5 years in some cases).
Make sure you exactly and carefully follow the instructions on how to properly give Google the url verification path. The workbook listed in my signature addresses all of these issues and more ... you might find it beneficial to give it a read. I think you'll find a number of issues that are clarified.
:)
Thanks, but if I am going to spend $20, I'd rather just pay someone $20 to set it up for me.
That's an option as well :). I have installed it for many others and find constantly that they have mis-configured their analytics account 95% of the time.
I developed the workbook over 175 plus hours and several months to document exactly what is needed to make it run correctly and to learn how to use Google Analytics as a tool to increase conversion.
It takes much more time (as you have personally found) to get Google Analytics properly and COMPLETELY installed on a website (if you are to achieve the maximum benefit it provides, which should include funnels, conversion tracking, and goals as part of it).
The time it takes me to debug other Google accounts is far greater than simply reading the workbook. :) I would have to think that you have already spent over $20 of your own time to determine what the issue could be right?
That is the beauty of the workbook. It saves you time, headaches, and with the first sale from your store easily pays for itself. :)
For more information that may help you determine what the issue is you may be interested in the following article:
http://www.zencartoptimization.com/2...sion-tracking/
Let me know if you have any further questions, and thanks!
Voltage,
Something you need to keep in mind here is that Google does not need to "verify" the Conversion Tracking code. Once you turn it on from within your AdWords account, and put the tracking code in place (of which the contribution does for you) you're all set.
The only tracking code that Google actually verifies is the Google Analytics tracking code (which is different and separate from Conversion Tracking code).
If you are looking at a "verification" error, I would venture to guess you are logged into your Google Analytics account and NOT your "Google Adwords" account (of which conversion tracking is a part.)
If you can't get Google to verify the initial tracking code (from the "Analytics side") then the tracking code for Conversion Tracking (which comes from the AdWords side) will not work.
They are totally separate entities, yet they work together to complete one desired function -- tracking conversion of your paid search campaigns.
Make sense?
i'm having trouble with the analytics module. i've installed the module, updated the SQL, pasted the php code into /includes/templates/[your_template]/common/tpl_main_page.php
but, when i reload my website, the UA number is XX-XXXXXX, not the number entered in the module in admin.
any ideas what's going on?
zc1.3.7, FYI.
thanks.
Hi econcepts,
Thank you for the explanation of your ebook. I am intrigued. I thought it was just a more in depth explanation of how to install analytics on zencart.
I do have one final question though. It appears it is now picking up traffic and capturing ecommerce sales. Therefore both parts of this mod seem to be working. However some strange behavior I have observed is that it is not capturing any adwords tracking. Zero. When I click on traffic sources and adwords, it shows my two campaigns and it says zero. But I know this isn't right (I feel it in the pocketbook if you know what I mean).
I am pretty sure this is not a zencart error, but I was wondering if anyone has any recommendations? Google's help is about as helpful as the help for Microsoft products.
Thanks in advance.
Voltage (and all other analytics users),
Long post here ... good stuff ... questions answered. Hang in there and read on. :)
Your specific question is answered and a detailed explanation of what the Google Workbook really holds inside is also revealed.
The Workbook is much more than just a "how to install" manual. That is only one part of it (because if you don't have analytics installed correctly and completely, it does you no good at all.)
The main basis of the Google Workbook is to teach users of Google Analytics how to install it properly and then how to use the major key metrics it provides to help increase conversion of your website. That is where most people fail at using Analytics.
Many people install an analytics package just to "gather data" for review. However, the truth is, that data is no good if you don't know how to actually read and use it to help you make changes that will lead to an increase in conversion. This is the key, and one that is all to often overlooked by most website owners. Many don't realize that the answer to many of their questions is found in the data gathered from analytics.
Interpretation of that data is key. Instead of just "looking at numbers", you must begin to understand what those numbers are actually telling you about your website, your customers, and your products. Only then can you begin to understand what needs to be done to increase conversion.
I can understand that comment about the Google help. It is tough. That is yet another reason I developed the Workbook. the Workbook explains everything in upfront and "non-technical" terms that anyone can understand and follow (translated for "all of us" is a good way to put it.)
More than likely, you have not tied your Analytics account to your AdWords account. If you haven't done this, and specified that the two should work together, you will not see any AdWords data in your analytics reports.
Again, this goes back to "just setting up analytics" by installing the Simple Google Analytics module, and "correctly setting up COMPLETE Google Analytics (which includes the installation of the Simple Google Analytics module along with many other features available only through your actual Google Analytics, or AdWords account).
There is a LOT more to setting up analytics than many people want to think. Not to rehash, but this is the basis of the Google Workbook and this particular issue (linking your AdWords account to your Analytics account) is covered there as well.
I hope that helps explain it a bit more to you (and the other readers out there). It is so tough to go through all the little details that "could be" it was just easier to put it down in a workbook with screenshots and step by step examples.
A large number of users of Simple Google Analytics have already downloaded and seen the benefit of the Workbook and I think once other users understand the Workbook is far more than an "installation guide" they too will see the benefit it can have for their website. :)
Let me know if you have any further questions about your analytics install or the Workbook.
Just to make sure this is closed out. We have been talking via PM and the issue is now resolved. See below:
Quote:
Posted by cudaboy71:
Evidently i upgraded in the wrong order or something. i was sure i put in the UA number. but, lo and behold i just checked and it had reverted back to XXX-XXXXX.
it's all working great now.
FYI, i bought your analytics book this afternoon. lots of good stuff in there i didn't know, but thought i did. well worth the $20. thanks for all the hard work on it.
-bob
Im very tired now, been Reading Forum posts SQL'n and FTP'n all day....
ZEN 1.3.7
SQL 5.0.24
All installed SQL upload fails
39 statements processed.
Error ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
Error ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
Error ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
Error ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
Warning Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.
AND No button on Config....
Any ideas????
Have a good one
Richie
Just for kicks, try to run the SQL by copy and pasting from within the Admin.
The error you are getting means that whatever method you are trying to use to run the SQL, it is not finding your "configuration_group" table (comes with zen cart installs).
It is looking for "zen_configuration_group" and there is no such table in your installation apparently. Do you know off hand what the name of the table is on your end? It looks like you gave it the prefix of "zen_' according to the install error.
Im not putting a table on my end!!!!! :-)
Hi econcepts thanks for the reply! Got to say its your fault that I am up to my neck in this... downloaded the first book loved the ideas and now am in the process of moving things and changing colours as you advise (and as a customer I would prefer to see)
At the moment I am trying to get the ADDED TO CART (.messageStackSuccess,) to drop next to the add to cart button... love that idea :-)
AND then I will be making a nice BIG green "Action" Button hopefully in CSS but have to research that a little deeper :-) (waiting for a nice friendly answer with tips ;-)
SO back to the table on my end....
I tried both... Copy-Paste and upload ....
PHPMYADMIN tells me that the TABLE is called "configuration_group" so where did the ZEN come from and shall I just loose it from the SQL upload???
When this eventually kicks in I can buy the next book.... now theres an incentive!!! :-)
Thanks in advance for the input....
Richie
The "Zen" comes from within your install (of zen cart itself). When you run a script through the admin of zen, it automatically appends the prefix you determined when you setup the system the first time around to the front of any table name.
So, that prefix is not in the actual "upload file". It is put there by Zen Cart.
Make sense?
Dear developer of this excellent mod,
Just wanna inform you that the included installation sql patch will delete configuration_key with configuration_group_id = 0
The effected keys are
PRODUCTS_OPTIONS_TYPE_SELECT
UPLOAD_PREFIX
TEXT_PREFIX
Deletion of above keys will effect the proper functionality of Zen Cart.
Thanks and glad you like the mod, however, you are incorrect in your thinking.
It appears you are not reading or understanding the SQL language provided in the install correctly.
If you look at the SQL code closely, you'll notice that the configuration group id variable is set during the SELECT statement, and is set to the specific value "WHERE configuration_group_title= 'Google Analytics Configuration';".
That group id differs between sites and the variable is set as such to properly remove the correct configuration values as needed (and if present).
A number of contributions use this same logic as it provides a means for users to install a module into an "open slot" without conflicting with other configuration group ids on their system.
This module is in use by myself on many sites, and thousands of other Zen Cart users (look in the downloads section) without any problems relating to "proper functionality of Zen Cart."
In fact, just to be sure, I tested your concept (I always test), and the patch works just fine without deleting the configuration keys you mentioned above. :)
Surf7,
By the way. I went to your site, and looked at your "Malaysia E-Commerce Solution". Then looked at your demo site at http://demo.easyweb.com.my/.
I noticed that no where on your "E-Commerce solution" services page nor on the Demo site do you give credit to or even mention the cart is Zen Cart.
If you are going to be using Zen Cart as your "e-commerce solution", I would recommend giving them credit where credit is due and not masking it as if it was your own custom solution. A lot of hard work goes into this cart through the great community of developers, and a lot of users spend a great deal of time making sure it works for others. It's only right to give credit to the team that created it and not make it look like it is your own.
Just a thought.
I have run this code again in phpmyadmin
and it indeed 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;
PRODUCTS_OPTIONS_TYPE_SELECT
UPLOAD_PREFIX
TEXT_PREFIX
IH_VERSION (from Image Handler Addon)
My MYSQL version is 5.0.21 and the phpmyadmin is 2.8.1
I have run it again in MYSQL 4.1.22 and phpMyAdmin - 2.10.0.2. still the same problem.
Please note that, if run the above code in a database that has "Google Analytics Configuration" in configuration_group table, then the above will only delete the keys in configuration table with configuration_group_id equals to the Google Analytics configuration group ID.
OK I lost myself there.... anyway, the point is: if you run the above code for new installation of Google Analytics, then it will delete the 4 keys mentioned above.
Did you test run the code on a database already has Google Analytics installed?
I have reported this problem to other addon developer as well. So far, I managed to discover these addons are effected:
Google Sitemap
GOOGLE BASE FEEDER
Testimonials Manager
RSS Feed
Some have already releasing a fixed.
Hi econcepts,
Please look properly at the bottom of left side bar of...
http://www.surf7.net/services/ecommerce/index.php
http://www.surf7.net/services/ecommerce/pricing.php
http://www.surf7.net/services/ecommerce/demo.php
http://www.surf7.net/services/ecommerce/client.php
http://www.surf7.net/services/ecommerce/order.php
http://www.surf7.net/services/ecommerce/resources.php
It has Powered by [ZEN CART logo]
There is no requirement that I must put link to Zen Cart on every web store I created. However if view the source code, you can see...
To view source code of any web page, please follow these steps.Code:<meta name="author" content="The Zen Cart™ Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" />
1. In Mozilla Firefox, go to View > Page Source or Ctrl + U
2. In Internet Explorer 7, go to Page > View Source
Please note that I am not selling Zen Cart but rather selling support services. I am not sure how do you come to conclusion that I am masking it as if it was my own custom solution. All my customers will see Zen Cart logo smack right on the top left when they login to their admin.
FYI, I did contribute to Zen Cart with my fair share of contributions. I also help out in discovering errors made my other developers like you. I hope you are not offended that I pointed out your errors. If you do, please let me know and I will not announce it in the forum.
Anyhow, great products.
P/S - If you discover errors in my contributions, please point it out to me. I'll be more than happy.
No harm meant surf7, and thanks for your contributions to the community. :)
I also appreciate when errors in contributions are pointed out as that is one way of making the whole Zen Cart software better for all of us.
I just wanted other users to know that the error you pointed out in your original post is not an error at all and in fact the SQL syntax works just fine as is. It causes no issues with deleting improper key values from the core of zen cart stores.
I tested it before release, and just tested it again here before I posted the reply to make sure that is the case. If there was an error in the code, I certainly would correct it, however in this case there was none.
See you round the forums!
[FONT=Arial]econcept, why you don’t answer my Emails?[/FONT]
[FONT=Arial]I bought your e-book and it create lots of problem in my web sites?[/FONT]
[FONT=Arial]You should keep some kind of customer support for your product. [/FONT]
[FONT=Arial]For start send me new zip file of the program, as the one I got missing icons, and maybe most likely some files[/FONT]
Motti,
Which e-book are you speaking of? The only e-book I have for purchase is the Google Analytics one, and that shouldn't affect your site at all unless you did not install Google Analytics correctly the first time around?
If you're speaking of the Template Pack I have (it's not an e-book, but the actual template files) for implementing the 20 Ways, then all the files that you need are included in the zip you have. If you are missing anything, or having problems, then it means you installed the contribution incorrectly. That contribution is used on over 50 different sites that I know of without any problems. If the instructions and the 20 Ways book are looked at closely, it works just fine.
Full support for that product is provided at my blog. It would be better to post your questions on it there to benefit all current users of the product.
In addition, you will find answers to many of your questions in both the readme file that came with the pack, in the free 20 Ways e-book itself, and at my blog.
This thread is for the support of the Simple Google Analytics contribution.
Thanks!
[FONT=Times New Roman]Yes I am talking abut the 20 ways template, and yes I know this is not the place to get support for it, but I did try to contact you ( 5 emails 2 days). You should contact me back as you did in the past and give me this link for your blog. [/FONT]
[FONT=Times New Roman]That was not the first mod I bought from you, and most likely not the last. But you got to keep the minimum of support for your stuff[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]I still need fresh zip file, and yes I am missing icons and almost sure some files too[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]Thank you[/FONT]
Motti,
The link to the support blog is not only in my signature here (and always has been), but is plainly included in the emails you received to download the templates as well as in every ebook I write. If you aren't getting emails, then I would check your bulk mail folder etc.. to make sure you are not missing them. I can assure you, they go out.
It would be best to direct those questions in that blog. I support all my products. Always have. Search the forums and you'll plainly see that. :)
Actually, I don't sell a lot of mods (only 1 to be exact), and it looks like from my records, that is the only mod you purchased. Please direct your questions on that to the proper location to benefit all users of it.
I'd rather not confuse this forum thread with that product. Thanks!
My checkout success page is throwing out the following error in the footer:
I have gone back through the installation notes and, as near as I can tell, I have everything configured correctly. I'm collecting data in Analytics, I'm just having this problem with checkout_successQuote:
Warning: main(includes/templates/patiotoys/checkout_success//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/rhutchis/public_html/includes/templates/patiotoys/common/tpl_main_page.php on line 201
Warning: main(includes/templates/patiotoys/checkout_success//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/rhutchis/public_html/includes/templates/patiotoys/common/tpl_main_page.php on line 201
Warning: main(includes/templates/patiotoys/checkout_success//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/rhutchis/public_html/includes/templates/patiotoys/common/tpl_main_page.php on line 201
Fatal error: main() [function.require]: Failed opening required 'includes/templates/patiotoys/checkout_success//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rhutchis/public_html/includes/templates/patiotoys/common/tpl_main_page.php on line 201
I'm running ZC 1.3.7 and the body tag for tpl_main_page is:
The included code at the bottom of tpl_main_page is:Quote:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
The error tells me that this last bit of code is not picking up the fact that's it needs to look in the templates/patiotoys/google_analytics directory for the file.Quote:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
I have an override directory with templates/patiotoys/checkout_success/tpl_footer.php that I need for my JAM affiliate software, which is likely the culprit.
One solution would be to copy the google_analytics.php file to a directory that the code at the end of tpl_main_page is looking in, but that seems a bit kludgey. Is there an elegant code solution for this?
Thanks,
Roger
Hi, I'm trying to install the Simple Google Analytics right now. I've gotten through all the steps up until the install of the SQL patch. I'm in the Admin SQL Query Executer and am not sure how to actually do it. It wouldn't let me just upload the file you provided, so do I copy and paste the whole SQL document into the query frame, then hit send? I'm afraid to mess something up. I would really appreciate some further instructions.
Thanks!
-Becky
Don't forget to take a backup of your database first, just in case :-0
Craig
Roger,
The footer file should be in the "common" folder as standard zen procedure. It is shared across all pages.
If you need affiliate link tracking only on the checkout_success page (near the footer), then try the following:
1) Copy the line(s) of code you need for the tracking and paste it into the tpl_main_page.php file just above the Google Analytics code. use the following as a guide:
Keep in mind you will need to delete the "tpl_footer.php" file that you included under the "checkout_success" directory as well.Quote:
<?php
if ($_GET['main_page']=="checkout_success") {
?>
<!--Paste your affiliate code between these comments-->
<!-- End of Affiliate Code -->
<?php }?>
You'll also want to make sure the affiliate link is secure (https:) as the checkout success page is often secure so you wouldn't want to the ssl message box to pop up from the client browser.
Hope that helps.
I have read the thread and posts that address this issue, but can't get past it. Using Zen 1.3.7 Site is: http://hd2o.tv
Instructions followed, tpl_main_page.php code was added.
I get at the bottom on the main page:
Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/slecrc/public_html/includes/templates/CUSTOM/common/tpl_main_page.php on line 180
Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/slecrc/public_html/includes/templates/CUSTOM/common/tpl_main_page.php on line 180
Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/slecrc/public_html/includes/templates/CUSTOM/common/tpl_main_page.php on line 180
Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/share/pear/') in /home/slecrc/public_html/includes/templates/CUSTOM/common/tpl_main_page.php on line 180
Line 180 must be the added code?
Also, google tells me it is not active - confirming the errors. "Tracking Not Installed"
Any help is greatly appreciated beyond the genius of writing the code!
Regards,
Paul
Are you using a custom template or not? In one error, it references the "template_default" directory, and in the other, it references a "CUSTOM" directory.
If you are using a custom directory, then make sure you put ALL overrides in folders associated with that custom template. So, for example, if you are using a custom template and that directory is called "CUSTOM" (as stated in your error message) then the Google Code needs to be installed in the /includes/templates/CUSTOM/common/tpl_main_page.php file. (Not in the one located within the "template_default" directory.)
Likewise, the directory "google_analytics" should be uploaded to /includes/templates/CUSTOM/google_analytics (NOT /includes/templates/template_default/google_analytics).
Google is unable to verify the code because there is no tracking code present due to the incorrect placement of the files on your end. Once you get them in the correct locations as indicated here, it should all be fine.
You'll need to have Google go back out and check the location of the tracking code to verify it once you have everything in place.
I am using a custom temp.
I'll hack it and let you know.
thank you tons
paul
Can someone tell me how to UNINSTALL this mod?
thanks
Liz
Providing you are using the Simple Google Analytics module, do the following (see urls below):
http://www.zen-cart.com/forum/showpo...&postcount=336
http://www.zen-cart.com/forum/showpo...&postcount=338
Just a quick FYI. There is no directory called "Simple_Google_Analytics" in the install. Not sure where that came from, but it shouldn't exist on your end.
My recommendation would be to go back and start over from the beginning. I am pretty sure it is an issue with the files not being copied to the correct directory. Again, it looks like you have copied them to 2 different directories (1 being the custom and the other being the "default').
That would definitely cause problems as the overrides system in Zen would not be able to find the files needed to make it all work.
Hi Eric, I appreciate your time.
When I unzipped the download, everything was in a directory called "Simple_Google_Analytics". I moved that entire folder to the server. What you're saying is that folder should not exist, and the interal files should be in: templates/CUSTOM but 'without' the outside directory? (I'll also scan for duplicates in template_default)
If true, I will have: templates/CUSTOM/admin (folder) along with the other contents GPL.txt and includes (folder), the 2 .sql patches, and readme_instructions.txt? I'd be dumping the outermost directory.
I added the code to temp_default/common/tpl_mail_page.php to test that file's effect. It has been removed.
20 Ways to Increase Sales is awesome! The Analytics workbook is certainly next.
Paul
Paul,
You are correct, the "Simple_Google_Analytics" directory that comes with the unzipped package should NOT be uploaded as is to your store. That is just the "holding directory" for all the files.
You want to unzip that, then open up the "includes" folder included in the contribution. Rename any directory that says "your_template" to "CUSTOM" (as this is what you said is the name of your personal custom template directory) then upload the entire contents of both the admin and the includes AS IS (just upload and go) to your store.
Run the SQL patch and presto. All set. It should state that in the readme as well in case you need a refresher.
Make sure you upload both the admin and the includes directory to your ROOT folder and AS IS (don't try to move admin under a "custom" directory ... that won't work as the Admin section of Zen Cart does not yet provide the ability to over ride files as does the catalog side.
Hope that helps.
Eric,
Still one more set of questions for you. (Got the your_template changed to CUSTOM) The ROOT is 'public_html'? or is ROOT outside of that? Inside 'public_html' is a directory called 'includes' - the Zen Cart stuff. The zen admin folders are in 'public_html' because my store is the sites main page, but admin was renamed for security, so no problem with admin. ?How do I avoid 2 'includes' directories in 'public_html'? Can admin and includes reside outside 'public_html'?
Paul
That depends on your server setup, but chances are, if you have a "public_html" directory, that would be considered the root of your site.
You should not have 2 "includes" in the same folder anyhow. If you tried to do that, the files from the "includes" folder you were uploading would by default fall into the already present "includes" folder. That is the nature of servers setups.
Hope that helps.
Thanks Eric,
I think that kills the use of analytics for now. I didn't think it through when setting up the zen cart. It should be in a directory and not on the root. I'm grateful for all your time on this.
Regards,
Paul