Looks right. You could use the exclude filter if you want mentioned by @g1smd if you want to remove the zenid from the strings.
Printable View
Are you using this mod (Simple Google Analytics) or the other mod by Andrew (Google Analytics by Andrew).
My mod (Simple Google Analytics) shouldn't ever through that type of error as I have all my code pre-built into the package and it only takes one line to install.
The error you are getting looks basically says that either you have a piece of JavaScript code that refers to a var which is not present (because you might have not fully installed the mod) OR (because you have both mods installed at the same time which won't work.)
Can you confirm you are using the Simple Google Analytics Mod and have not installed the other at any time?
Let me know and we'll work through it to get you all squared away.
Thanks!
Hi Eric I am just using yours add on. It has been so long ago I don't remember if I first installed Andrews or not. It has always work beautifully it just that error I can not figure out. If it's a javaScript code I don't know where to look to check it out to see whats going on.
Hi everyone, I have installed simple google analytics v1.2.2 on ZC 1.3.8a install went smooth.
It has allowed me to improve so many facets of my business -Fantastic! Thank You. I have read through the posts to find a solution to an issue I am having with my e-commerce tracking. It is not consistent with my actual orders and sometimes it works sometimes not can any one help? P.S. I have enabled this feature in the GA settings:smile:
Which version of the tracking code did you choose to implement (the "urchin / legacy" version or the "ga.js" version?)
The ga.js version apparently still has some inconsistencies (on Google's end) in reporting accurate Ecommerce data. I use the "urchin" version of the code and get very accurate results.
You can choose which version of the code you want to use (and easily switch between the two) from the admin.
Does that help solve your problem?
Thanks for your reply. I did choose the "ga.js" version, I will choose the "urchin/legacy" option an see how I go. What a fine module that has a very real benefit - Thank you.
Hi, sorry for the slow reply - don't remember getting emailed about a new post.
I don't get an error message as such, my error, or problem, is that some conversions are showing up with a value of £1 - we don't have sales at £1 so for some reason the actual sale value is being ignored and inserted as £1 instead.
Hi Eric I guess I need to go to my database to see if the problem lies there. I have checked my files and they seem to be all in order. I downloaded Andrews version to double check to see if there were file left over from his. Don't see any from his version. I'm still stumped...lol
Zencart 1.38
Simple google analytics 1.2.2
Use older urchin = no
I searched the thread and am still confused how to set up alias domains. Posts ~#1015 seem relevant but adds to my confusion.
I have mysite.com and anotherurl.com that points to mysite.com. The redirect is set to point to mysite.com by the hosting company and not by any settings on my end (like htaccess).
Im simply trying to track how many people directly typed in anotherurl.com to get to mysite.com
Is this actually already being tracked in analytics as a “traffic source”?
If I understand right, to track anotherurl.com I set should set up another profile inside google such that I have:
Exsisting UAxxxxxx-1 and
Other url UAxxxxx-2
Right or wrong?
Then, I am totally clueless what to do next. One post says to add UAxxxxx-2 in admin/configuration/GoogleAnalyticsConfiguration .
Is this correct? There is only one field in the interface. Would I just put both with a comma in between (as in UAxxxxx-1, UAxxxxx-2)?
Other posts mention modifying code but I am lost as to what to modify. I see tpl_main_page.php mentioned frequently but it does not look like anything in that file specifically references the particular UAxxxx number.
If requests for the other domain name are simply redirected, there is no simple way to track the clicks through it. It doesn't serve a HTML page, therefore there is no content served on that domain that can be tracked.
You add only one tracking code to your page, the one for the final domain - the one that actually displays the content.
I don't know if this is feasible for your site, but if you can get the other domain to redirect to a specific single specially created landing page on the new domain, you could track visitors passing through that page instead. For this to work, the new page would NOT be linked from anywhere else on the main domain, but it would link to many pages of the new site: the major category pages at the very minimum. You would also need to "noindex" that page so that people do not find it via searchengines.
My module won't insert any value at all (it will be "0") if no value is passed.
I suspect that it is being overridden from within your Google Analytics account. If you set the conversion value or action value to something other than "0" then Google Anlaytics will override whatever dynamic data is passed an use the value set from within your GA account.
Check in your Google Analytics account (ecommerce section under profile usually, etc...) and make sure you set the conversion value to "0". This will enable the data passed by my module to populate your reports instead of using the number tha tis inserted there (which I suspect is "1" currently).
Let me know if that works.
How did this work out? Did you remedy the issue? I went to your site and it looks like the code for my mod is there and installed correctly. The error you are getting and that references the "PageTracker" is not a variable that is in my tracking so it would have to be coming from somewhere else.
Let me know if you still get the error here and we'll see what else might be causing it.
Yes, this is one way to do it (the one that I prefer). Setup a new profile (you can do this as a stand alone profile or UNDER a current profile -- if the two are associated.)
In order to track the "new" url however, you'll need to install the Google Code (different tracking id like UAxxxxx-2) on the separate url. However, if you have an automatic re-direct in place at that url and the page does not actually load upon arrival, then the tracking code for Google will not trigger (the page needs to load for that to happen) and the data for that separate url will not be tracked individually.)
There is no such configration variable or option in this module (Simple Google Analytics). Are you sure you are using this version or another?
No, this is not correct, and no you would not want to put a comma between id's. That will render tracking useless.
If you want to extend the code (but not needed as seen in the above option) you would have to look within the "google_analytics.php file found in the /google_analytics/ folder that comes with the install. This is the file that contains and writes all the tracking info to the page.
Thanks for getting back to me. Unfortunately I can't find a conversion value section in my Analytics Settings. I have an option to track as an 'E-Commerce Website' and a section where I can select what currency the site is in.
The only place I can find that type of setting is in my AdWords settings, under Reporting>Conversions>Purchase/Sale>Code - however, this is to create code to insert into your page, rather than being how it interprets code that's already inserted.
Also, it's important to note that the £1 value is only coming through on some conversions, not all. Perhaps 10-20%.
Just wanted to say that this is a great contribution! Quick & easy to install & works great :clap:
The conversion section or value is on the Adwords side correct. It can also be found on the analytics side (although a different "conversion value") IF you have setup goals. Each goal can be assigned a conversion value as well.
Does that help?
I would suggest trying to narrow down where these "random" transactions with a "1" appear and then try to determine if and why they are being overridden (you may have already tried this.)
Apologies, didn't see the question in your post.
Yes, the conversion value is in AdWords only, Analytics seems to be seeing different conversion values for the £1 conversions.
Is simple google analytics by econcepts compatible with the latest version of Zen Cart? 1.3.9.x?
I get the following error when trying to install googleanalytics-INSTALL.sql.. I can install googleanalytics-UNINSTALL.sql --- Does anyone have a clue what to do?
Forbidden
You don't have permission to access /secure/adminxxxxxxxx/sqlpatch.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8m DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.ezorbcalcium.com Port 80
After going to /secure/adminxxxxxxxx/sqlpatch.php and opening the file I did not find the "Forbidden" error listed in the file. I contacted HostGator and they found something wrong on their end. I installed googleanalytics-INSTALL.sql after they made their correction. Check on Google and now works correctly.
Larry
Have installed SGA on 1.3.9b and when I go to admin/configuration it does not show up. What would cause this?
Larry
I CAN'T BELIEVE I HAVE DONE THIS SAME THING AGAIN!!!!!!!!!!!!! FORGOT TO CHECK admin settings. (have admin profile installed)
IF A MOD DOES NOT SHOW UP IN admin/configuration THEN GO TO tools/admin settings AND PUT A CHECK MARK IN THE BOX UNDER 3rd PARTY MOD'S.
Larry
Just confirming that this is the lastest version.
http://www.zen-cart.com/index.php?ma...roducts_id=412
Version: 1.2.2
I installed google analytic about 7 hours ago.
On google site their is no data, but it shows that the status is "checked".
How long does it take for the data to show?
The time varies (on Google's end).
Do you have the "waiting for data" message?
If so, it means your code has been verified and you now have to wait for Google to update (again, this varies).
If you don't see the "Waiting for data" message then you'll need to reverify your code (check status on Google's end) and see if that works.
Let me know if this solves your problem.
The data starting showing up today.
I also did the "conversion" and it shows up as 1 on analytic, but on Google ad-sense conversion there is no information about it.
I am pretty sure I used the write conversion tracking code from the javascript they provided.
Is that the right place?
Thanks!
You can't see today's data unless you manually alter the date in the drop-down.
So it's usually midnight before you really get to see it working, if you weren't aware of that.
That's good to know, but the data conversion google adword data was from yesterday.
Thanks for the pointer.
Thanks for the response!
Anyone know where I can find my "Google AdWords Conversion Tracking Number" on my adword account?
To input inside the simple google analytics
I think I found the right Conversion Tracking Number.
Still nothing is showing up on my adword account.
It would be Google Adwords. There is no tracking for "AdSendse" which is the advertising platform you can use to display ads.
I think what you mean is Adwords.
Since Adwords tracking tracks ppc (paid search) converison, it will only show a conversion if the click came directly from an ad you are running. So in order to test it, you need to first do a search on Google then find one of your Paid Search ads. Click it, then make a purchase on your site (so you came "through the ad" in order to get to the site).
This is the way Google works with teh paid search conversion (and they should as tracking a "conversion" for paid search traffic that did not come from an ad would be in accurate and wrong.)
Make sense?
See my last post about why it is likely not showing. You can't track paid search traffic if it didn't come from paid search first (via a clicked ad.)
Your adwords conversion tracking number is the number without the "UA" in front. It comes from within your Google Adwords account (you must first turn on Conversion Tracking in there) and is about 11 digits.
Hi,
Yes I did mean adwords.
The conversion show up on the analytic side, but not when I am in adword --> report --> conversion. It is still showing that it is unverfied even though I had a few conversion already (showed up on my analytic side and I was charged on adwords.
Any ideas? I found the conversion tracking code it was 10 digits.
Thanks for all the help!
The conversion that you are seeing on the Analytics side is NOT the "Adwords" conversion tracking. That is either the "goal conversion" (if you have one setup) or the "Ecommerce Tracking" (which comes with my analytics mod as well.)
There are several different types of "conversion" that can be reported by GA and although each represents the same concept, non are exactly the same.
There is the Goal Conversion Tracking, The Ecommerce Conversion Tracking, and the Adwords Converison tracking (which you will not see as a separate number within your Google Analytics account ... this separate number is displayed within your Google Adwords account.)
You can get that number to show in Analytics by linking your Adwords account with you Analytics account and sharing data. Even then you'll need to drill down a few levels in reports to get it.
So, if you are trying to track paid search conversion and the number is not showing up on the Adwords side, BUT you have the correct Adwords Conversion Tracking ID saved in your Zen Cart admin AND you have selected to turn on converison tracking (from within your zen cart admin section) then you should see tracking on the Adwords end.
If you don't see tracking on the Adwords end but have followed my steps here, then it is likely because you have not made a purchase after coming from a paid search ad.
You just can't pull up your site, make a purchase, and then have that tracked as a "conversion" on the paid search side. You must first come from one of your own ads (that you are running for paid search.) This is because a purchase from someone coming directly from an ad is not the same as a purchase from someone coming in from another source (from a tracking perspective.)
To test a conversion on the Adwords side, do this.
1) Search Google for a term you are bidding on in the paid search side.
2) Find one of your ads (that you are running) in the search results and click it (the ad MUST be a ppc ad ... not an organic listing).
3) Make a purchase as normal on your site.
4) Check your Adwords conversion tracking reports later in the day (or in 24 hours) for updated stats. Google does not report in real time ... even with Adwords tracking.
Let me know if that helps.
Thanks a lot! That was extremely clear.
I believe I got it working now a purchase/sale conversion was created automatically for some reason.
Thanks!
Hi, ZC user.
I have Google Analytics for monitoring my site www.kavanali.com
End I put some banners in shop.
Problem is when I see in Analytics: page Views is 350
In shop in banner_manager for the same date page Views is 1200
How is it possible such a difference in the statistics of page views?
:blush:
First, Eric, thank you for this module.
I had the same problem as Rufusclc addressed in Posts #1123 and #1124 of this thread.
Following your advice, I went back and looked at the files in the includes and admin folders of the module. I found that the includes file still had a folder named your_template, which was odd, since I had believed I renamed everything. I renamed it again, and uploaded, but on upload I could not see the correctly named your_template. I went back to the windows explorer in my computer and re-checked, and it had not been renamed. My second try at renaming it stuck, and it uploaded successfully.
Although I will not know for 24 hours if it actually becomes trackable by Google Analytics, I can now pass the W3C validation, whereas prior to this my </body> and </html> tags were not showing in the "view source." This inability to pass validation had been bugging me for a couple of weekends.
Thanks.
I have installed your mod.
I follow all the instructions, i could almost track everything in my site through analytics, including tunneling and so on, but i cannot receive any checkout-success information and data
I try to set up goal in analytics and adwords conversion tracking too but it fails.
Can you suggest me what i have to check?
Furthermore, it's better to use urchin or the more modern GA? now the set up is yet on urchin it's possible to change to GA?
Thanks for your answer
Pay no attention to what the Banner manger or "hits" in zen cart reports. It is not the figure you should be looking at if you are really looking at tracking your site.
The number reported by zen are based on "hits" (which you should never use) and those update with each page refresh (you can see why it is not good to use them).
The true number is what Google Analytics reports.
For simplest example, if you go to your home page and see a banner, then your banner manager would say "1". If you refresh that page your banner manager now shows "2". Refresh again, you get "3", etc....
Google would only show "1" (which is right. You are only 1 person but you "hit" the page 3 times.) So the true number of visitors (UNIQUES) is 1 in this example.
Banner manager (nor any stats zen cart provides) only tracks "hits". If you want to really know what is going on with your business you should never look at this number.
Yes, you definitely need to name the directories to those which you are using for it to work.
You can see if it is installed correctly by simply viewing your page source while looking at your site. This will not ensure that "all" parts of GA are installed, but it will let you know if the tracking code is in place on the site.
If you are not getting Checkout Success stats but everything else is tracking then I would check to see if you have any other module installed that altered the checkout success page (affiliate programs etc... do this.)
If so, you will need to integrate the checkout success edits from that program with mine (it's very easy and I can tell you how to do it if this is indeed your issue).
Keep in mind that Adwords conversion tracking is completely different than any other type of tracking See my earlier post ( #1242) on this exact topic.
For more accurate ECOMMERCE tracking, Urchin still seems to be the better option. the new GA version seems to skew your stats a bit more when it comes to ecommerce.
You can easily switch between the two without any problem at any time. In my module, it is just flipping a switch in the configuration section for Google Analytics.
It's here in tpl_footer_googleanalytics.php:
var pageTracker = _gat._getTracker('<?php echo GOOGLE_ANALYTICS_UACCT; ?>');
Hhmmm... maybe sounds stupid , but:
I only have this message from a certain location. The connection is poor/slow. But from several other locations where the connection is good/fast(er), I do not have this problem.
Maybe it's possible that this '_get' is waiting on a define, but due to a bad/slow connection it doesn't work?
Just a thought...
Well, I try to upload Simple Google Analytics and no success... I do not know what I do wrong. Where exactly should I upload it?
I am sure this has been answered before but I am not finding it. I have installed simple google analytics be for, but this time I am not getting it to work. I have all the right numbers in the Mod but still get tracking not installed. Can it be because I have two subdirectories installed with analytics. I have been trying for too many hours now and I am giving up.
Thanks
Since this file is not a part of the Simple Google Analytics module I still am thinking it is coming from the other mod.
Let me find out what might be causing that. I suspect it is a non-complete uninstall of that first one.
Will report back here. Hang tight.
Take a look at the readme file that came with the package. It has all the instructions on how to upload and configure. There are only 3 or 4 steps. Very straight forward.
A few notes:
1) Make sure you name any folder that says "your_template" to the name of your template before uploading.
2) Drag and drop (upload) the includes folder and everything in it (the rest does not need to be uploaded).
3) Run the SQL install patch and configure from admin.
It sounds like you didn't provide Google with the proper directory to validate the tracking code at. If you are running from a sub-directory make sure that is the url you tell Google to find the code at when you "verify". If you don tell it to look there, it will show tracking not installed.
Also make sure you completed step 3 in the readme (but since you have installed this before I assume you have done this.)
Hope that helps!
hello,
The mod was working on 1.3.8a and since cache error debugging wasn't available then, don't know if it was a problem back then.
Anyway, it was working then I upgraded to 1.3.9b. On the cache, I noticed the following error every time a purchase is made:
PHP Warning: require(includes/templates/cherry_zen/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
[23-May-2010 06:19:53] PHP Warning: require(includes/templates/cherry_zen/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/l/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
[23-May-2010 06:19:53] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/cherry_zen/checkout_success//google_analytics.php' (include_path='.:/usr/local/php5/lib/php') in /home/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
I have the google analytics folder correctly located on:
templates/cherry_zen/google_analytics/google_analytics.php
Then just to be sure, I took out the php file and just added it to the root of templates/cherry_zen/google_analytics.php
I still get the same error though, but it appears the site is functioning. I tested it, no blank pages and google is recording the order, it is just that the error comes out everytime.
Any ideas?
as it turns out I did skip step 3 so I made the corrections but still no Joy. I went to look at my other store to see how it was set up and they were the same. I went back to see if maybe I had put the wrong account numbers in and some how the Analytics Account was gone and so was the Google AdWords Conversion Tracking Number. I don't know why they disappeared but I don't care because it is working now
Hello there,
I just installed for the first time google analytics on my website, and followed the process step by step.. but it doesn't seem to work, when I go to my google analytics account, the status shows a yellow warning instead of "receiving data".
I hope someone can help me, thanks.
This should work regardless of version (older versions as well as new.)
The error you are getting looks it can't find the file in the following location:
includes/templates/cherry_zen/checkout_success//google_analytics.php
Notice the "checkout_success" portion. That is not a part of the original code. It looks to me like the tpl_main_page.php file is somehow now referencing the google_analytics.php file in the checkout success folder (which is incorrect).
Did you change anything else (add any mods) during upgrade? Did you add any third party mods or alter the "checkout_success" portion? During that process is when your error likely developed.
The message basically means that the system is looking for the google_analytics.php file in the "checkout_success" folder and since it can't find it, it throws the error. The tracking still works because you likely have the proper code also referencing the "google_analytics" folder (as it should.)
Remove the reference to the checkout_success portion and all should be ok.
Just checked your site, and the tracking code is installed correctly.
You may need to reverify the status of the code in place with Google to make it see it.
Try to do that and you should be ok. Make sure when telling Google where to find the code you use the proper url (watch the trailing slash at times).
Also make sure you are using the right Google Analytics tracking ID. Currently on your page you are using "UA-16986522-1". If you are not looking at the tracking for that exact number (within your GA account) you'll find it says "no tracking installed" (or the warning message.)
Let me know if that helps.
Thanks for your response,
I wrote to quickly on the forum, later on I noticed it takes until 24 hours to get activated..
have a good day
Ok, so I've downloaded the analytics module and read the install file but it's not very good. Can someone please point me in the right direction concerning how to actually install this thing?
Ian
If you are using Simple Google Analytics (not the other module) then the install is very straight forward. Follow the steps numbered in the readme and run the Install patch.
Just make sure you don't miss step #3 in the install (which is the only time you need to add anything to code), and copy the files to the same folder your template is running from.
Should be up and running in 2 minutes or less.
Ahh. Turns out that I had the other module downloaded. I've deleted that one because it seems like much more trouble. I've downloaded Simple Google Analytics but before I go any further and actually install this I want to make sure that having conversion tracking already set up on my site won't screw anything up? You know, I've added the conversion tracking code to my checkout_success page. Do I need to remove that before installing? I don't want the two pieces of code to conflict.
Ian
My version has conversion tracking already built in so it would conflict with the coded you entered on the checkout_success page.
I would remove that code and then once you get mine installed, go to the configuration section of the admin and plug your tracking ID (just the conversion tracking number) into the proper text field and save. Select the radio button that says "turn on conversion tracking" and save. All set.
The other thing I have noticed with those that moved from the other version to this one is that there are a number of files the other version makes you add. Make sure you remove all of those files it makes you add including those "js" type files that auto load. Those can cause conflicts as well with my version at times and render no tracking at all.
Let me know if that helps.
Thanks!
I have followed the installation guide in the download package, how do I now if the installation is correct?
I have installed this module for a number of months now. I was using predominately the urchin.js version. I have noticed however when testing myself, that a number of the google organic searches not appear. Also if a organic search does appear then the correct keyword does not appear & i get something like "site:ethoil.com" (my website)
I have changed to ga.js but that too seems to be as inconsistent as the other. ALso any referrals on yahoo search never appear??
If you entered your Analytics ID in the "Configuration" section for Google Analytics and the code shows on the bottom of your pages you are ready to go. You will have to make sure you tell google where to verify the tracking code at for it to start recording data.
The module does not actually record the data. That is done on Google's end. So any tracking that is not consistent is a Google side issue more than likely.
This module simply provides the ability for tracking to take place by placing the code on the page.
There will always be differences in tracking to some degree (more on the ga.js version than the urchin version) because google uses javascript to track.
For Yahoo, it should appear just like any other engine does UNLESS you are talking about "yahoo search marketing" 9as in paid search or ppc).
Google does not track that info out of the box and you have to make some adjustments (on google's end not within the module) to track that information in your Google Analytics.
Here is an article that may help you do that.
How To Track Yahoo Paid Search With Google Analitycs
Hi there,
I've just installed this for the first time on a 1.3.9d cart and when I install the sql, it returns the following error:
1366 Incorrect integer value: '' for column 'configuration_group_id' at row 1
in:
[INSERT INTO configuration_group VALUES ('', 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Not sure what that means but any advice is much appreciated.
Thanks heaps
Rob
Rob,
This works fine on all version of zen (including the newest).
A few questions for you:
1) How did you install the patch? You should copy and paste it into the zen cart admin (not upload it) and run it from there.
2) What version of MySQL are you running?
3) What version of PHP are you running?
Hi and thanks for the reply,
At first I tried uploading it, and that produced the error. Then I tried pasting it in, and that gave the same error exactly.
I'm running PHP Version 5.2.13 on IIS7 FastCGI mode, and MySQL 5.1.46
I've got 3 Zen Carts on the server, one old 1.3.7, one fairly old 1.3.8a, which has an earlier version of the analytics mod on it, and now I'm keen to get it working on 1.3.9d
Do you think there is any damage from uploading the script first time around, or is it pretty safe once it has failed with the error.. I assume it would have stopped processing the script, but I don't really know much about it.
Perhaps I should check the db for some tables to remove if the script upload messed it up?
Thanks for any advice on this
Rob
@robax,
Give this link a try. The error you are getting is likely a result of strict mode being turned on in your MySQL install.
http://www.zen-cart.com/forum/showthread.php?t=63993
That link gives some info on how to turn it off or address it.
Let me know if it helps!
Hi
I've been using google simple anaytics for some time now and it has been good.
The only issue is that some traffic appears as a referral from my own domain.
ie. classicalchandeliers.co.uk/ referral
This is not good when I am trying to track the source of sales.
I do have a htaccess redirect from non-www to www
Any idea how this could be fixed?
thanks in anticipation
Paul
Paul,
Try some of these links to see if anything helps. There is some good info here. Let me know if any of this solves any issues. It sounds like there are a number of cases where this could happen.
http://groups.google.com/group/analy...890?lnk=gst&q=
http://www.google.com/support/forum/...4a0d52c7&hl=en
http://www.google.com/support/forum/...bb8b6ec9&hl=en
http://www.analyticsmarket.com/blog/...-from-own-site
Paul,
Here is another really good link on the subject:
http://www.google.com/support/forum/...d8aabe33&hl=en
Hi
I'm running Zencart 1.3.9 d
This is a fresh install of Simple google Anayltics
Files installed.
I've appended the code to just before the closing <\body> in
/includes/templates/[your_template]/common/tpl_main_page.php
I've run the install.sql - no errors.
I've setup up a google analytics account.
I've configured the "UA-" account number in Zencart to match.
No matter what I do, I can't get Google to connect. The yellow hazard sign never dissaperas in Google.
I can see code has been appended to my source when viewing in FireBug.
My site is :-
http://www.reefbay.co.uk/ (which redirects with a 903 to http://www.reefbay.co.uk/shop)
Can anyone see anything obvious I have missed? I'm sure it must be something really basic, but I just can't see it.
cheers
Al
Please ignore my previous.
I refreshed Google after 10 minutes the icon has changed to a 'tick' (receiving data).
So, this MOD is fine and so are the instructions!
Google wasn't in a hurry to re-validate my tracking code!!
Thanks
Al
Make sure you provide Google with the proper URL for verifying the tracking code at. The redirect is likely hurting that process.
Try giving Google the exact url of the store:
http://www.reefbay.co.uk/shop/
That should do it.
Hi,
Thats exactly what I did, just prior to the thing working!
I did wonder if the re-direct could cause problems.
Nice mod.
Cheers
Al
I went into the directed path for the first time install:
/includes/templates/[your_template]/common/tpl_main_page.php
(/includes/templates/darkness/common/tpl_main_page.php)
In order to copy and paste the line of code, as directed but which I go to the above path I do not have the /tpl_main_page.php. The only files I have listed in that path are:
tpl.header.php
tpl.footer.php
Am I in the wrong area?
You'll need to copy the tpl_main_page.php from the template_default directory to your custom directory then add the line of code. That is so Zen activated the override system for that file on your template. Right now your cart is pulling the file from the default template directory.
@outeredge2
You need to now enter your Google Analytics ID number into the configuration section of the admin (zen cart). If you are using Adwords and want to activate conversion tracking you'll want to add that number as well.
Once you enter those items you'll want to have Google "verify the tracking code". All should work after that.
You can perform a "view source" on the page to verify the proper tracking id has been inserted.
Thanks Eric. I added the ID Number and still nothing. I went into Google Anyalytics and it said that the code could not be found! grrrr. This was meant to be easier than this I thought! :(
I have 6 sites being tracked by Google. So the account numbers are all like below:
UA-########-1
UA-########-2
UA-########-3
UA-########-4
etc.
What is the url to the site you are looking to track? I'll take a look here.
The website is www.driftbuildstore.com
Some how this site below starting getting tracked recently but I have never done anything to it so I'm not to sure what is going on with it or how it happened.
www.extremeduraflex.com
Ok... it just started working for some reason! not sure how though! Any thoughts?? The code doesn't seem to apprea when I firebug it!
Cool! Thanks again. I will try it on the others now! :) fingers crossed!
Hi,
I'm just wondering if Simple GA will be able to use the new asynchronous tracking code available from GA soon?
I thought it would be a simple matter of just changing the javascript in google_analytics.php until I ran in to the conversion section for the checkout_success page, then I realised I was out of my depth :no:
I have supertracker installed, and sometimes I get more hits logged in that mod than I do in GA, I'm presuming it's something to do with the loading speed issue that Google mention on the old snippet code vs the new asynchronous one but I could be wrong!
Thanks for a great mod though, really easy to set up and works great!
It does not have that capability yet, but I am working on a new release that will have that ability. Make sure you read about the async code. Currently I have heard and read it does not track as well as previous versions (missing some things here and there.)
It has nothing to do with the way Google loads etc... The true figure you always want to pay attention to is Google. They track "unique visits" which is the real number of actual visitors that come to your site. 'hits' is not real visitors. It will always be inflated and should not be looked at as it provides no real value.
Here is an article that might help on that topic.
http://www.zencartoptimization.com/2...created-equal/
Thanks for the info Eric, that article made for an interesting read.
I'm using Google analytics from now on!
The only advantage with Supertracker is that it tells me if someone added an item to their cart, so I can tell if people are adding products but not checking out.
With this in mind, I've added some event tracking code to my 'Add to Cart' button to log it as an event. This is working well.
What I'd like to do now is be able to log if a customer presses 'Add to Cart' but the item they are adding is out of stock.
The trouble is I don't know how I can tell when they press the button if an item is in stock or not!
Have you got any ideas how I can track customers attempting to add out of stock items to their cart?
That would be tough to track. However on a side note, is there are reason you are letting them add an item that is out-of-stock? You should tell them the item is out-of-stock before you give them the opportunity to add it or you are going to really create some frustrated customers which will translate to lost sales.
Just some added thoughts.
Thanks Eric,
I don't think there is a way to tell the customer before hand if an item is out of stock if it has attributes is there?
For example, if I have a pair of impact shorts that is available in black and white, and sizes small, medium and large I don't think there is any way to say which is out of stock up front.
I've done the best I can and made some mods......
I've added a stock checker button that pops up a window showing which items are in stock, and if someone tries to add an out of stock item to their cart I keep them on the product page and show an out of stock error message.
On that note, I've managed to track when the customer tries to add an out of stock item.
All do is check for the out of stock error message being in the message stack and if it is present, I send an event track to GA.
It seems to be working pretty well :)
Try this:
Stock by Attributes
Or this link for a listing of various stock / attributes mods. I like the stock by attributes one personally.
http://www.zen-cart.com/index.php?ma...+by+attributes
Hello,
I just installed Simple Google Analytics and am still getting an exclamation mark for status. I double checked all the files I copied to the server and also installed the SQL patch. I even put in the UA number into the zencart admin. Anybody have any ideas? Thank you in advance.
Oh yes, I am using ZenCart 1.3.9g. Thank you.