-
Re: Simple Google Analytics - Support
The google analytics plug in was set up on the admin of my site and I enabled the adwords conversion tracking, this was all working fine and was tracking transactions that came through from adwords adverts. But this stopped working in January
Can anyone please advise? I have tried contacting google who say they can't help because i am using zen cart which is third party so they can offer no support
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
palagio
The google analytics plug in was set up on the admin of my site and I enabled the adwords conversion tracking, this was all working fine and was tracking transactions that came through from adwords adverts. But this stopped working in January
Can anyone please advise? I have tried contacting google who say they can't help because i am using zen cart which is third party so they can offer no support
Yes, it likely has nothing to do with Google's end.
When tracking just stops working for no reason there are a few things that can cause it (all deal in some way with a change that was made on the website end or within the analytics themselves.)
1) Check to make sure that the tracking code is indeed appearing on your pages (including placing a test order and viewing the source on the checkout success page.)
2) Did you recently install any affiliate type program (in January) such as JAM affiliate? If so, the way they integrate that with zen cart overrides the code for Google Analytics. To get them both to work together you need to make a tweak to your site (moving the JAM affiliate code to a new location.)
Instructions to do that can be found here:
http://www.zencartoptimization.com/2...-the-workbook/
Scroll down the page to the "Comments" section. Around July 22, 2009 you'll find a post I made that specifically deals with how to correct the issue.
3) Check to make sure that the tracking ID used on your website is the same as the tracking ID shown in Google Analytics. I've seen this inadvertently changed at times. Do the same for the tracking ID for Adwords.
4) Make sure that you have "conversion tracking" turned on in the Zen CArt admin (under Google Analytics Configuration.)
It's likely that one of these issues is the culprit.
Give them a check and let me know if any solve your problem.
-
Re: Simple Google Analytics - Support
I'm running ZC 1.3.9h and doing a new install of SGA. I've double checked that the files are in the correct places and loaded the SQL and made the mods to html_header.php and tpl_main_page.php in my current template directories. I've linked my Adwords and GA accounts and inserted the numbers in the SGA config. I've setup the GA profile with Yes for E-commerce. All this and GA still shows the tracking not installed icon under status.
The GA profile I set up points to the home page of my site. I assume that's correct? Any suggestions as to where I went wrong and where to look for my lack of connectivity? Thanks.
-
Re: Simple Google Analytics - Support
Scratch my previous post. As it turns out the GA account number was confusing me. On one screen it shows the number as UA-xxxxxxx and on another screen it shows it as UA-xxxxxxx-x. So I tried it with the second -x suffix ad now it seems to be recognizing the everything.
-
Re: Simple Google Analytics - Support
Hi,
Because one of my clients I had the change to take a look of your module. It was a pretty good tool and I thank for that. However, I'd like to ask why one particular thing is done as it currently is.
In the google_analytics.php file at the front end side /includes/templates/template_name/google_analytics, every if statement what will end up producing the eCommerce tracking data, you have escaped all double quotes. Those double quotes will be used as elements in the Javascript code for Google Analytics. And that's the goal I assume.
It has been recommended that eCommerce tracking should be handeled with Asynchronous tracking. Well, if you use double quotes on your Javascript code, it doesn't work.
I tested it and changed all escaped double quotes to plain old single quotes and your module started working perfectly with Asynchronous tracking.
Is this a bug or just something I don't completely understand?
My ZenCart version is 1.3.9h and the Simple Google Analytics version is 1.2.4.
Thanks,
Ville
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
talviruusu
Hi,
Because one of my clients I had the change to take a look of your module. It was a pretty good tool and I thank for that. However, I'd like to ask why one particular thing is done as it currently is.
In the google_analytics.php file at the front end side /includes/templates/template_name/google_analytics, every if statement what will end up producing the eCommerce tracking data, you have escaped all double quotes. Those double quotes will be used as elements in the Javascript code for Google Analytics. And that's the goal I assume.
It has been recommended that eCommerce tracking should be handeled with Asynchronous tracking. Well, if you use double quotes on your Javascript code, it doesn't work.
I tested it and changed all escaped double quotes to plain old single quotes and your module started working perfectly with Asynchronous tracking.
Is this a bug or just something I don't completely understand?
My ZenCart version is 1.3.9h and the Simple Google Analytics version is 1.2.4.
Thanks,
Ville
It could be a bug, however, I am using the Asynch code on a number of sites as is and it works just fine (including ecom tracking.)
When you made changes, could it be possible that you altered something which caused the escaped quotes to not 'escape' as they should (and instead, actually print the 'escape' character instead)?
I'll look into it here but haven't heard of any other reports of similar nature and again, have it working unaltered on a number of sites without a problem.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
It could be a bug, however, I am using the Asynch code on a number of sites as is and it works just fine (including ecom tracking.)
When you made changes, could it be possible that you altered something which caused the escaped quotes to not 'escape' as they should (and instead, actually print the 'escape' character instead)?
I'll look into it here but haven't heard of any other reports of similar nature and again, have it working unaltered on a number of sites without a problem.
I didn't alter it before this. There were double quotes around all ecom tracking variables on the source code at the browser side. After I changed them to single quotes it started working.
I waited three days before I even started to wonder that something could be wrong. After changes, it literally took few hours and I saw first numbers.
But...because it has worked for you many times, that makes me consider an alternative issue like my server. I'm not THAT technical that I could explain why this could be, but that's the only "variable" what could play a part on this issue. :smile:
-Ville
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
talviruusu
I didn't alter it before this. There were double quotes around all ecom tracking variables on the source code at the browser side. After I changed them to single quotes it started working.
I waited three days before I even started to wonder that something could be wrong. After changes, it literally took few hours and I saw first numbers.
But...because it has worked for you many times, that makes me consider an alternative issue like my server. I'm not THAT technical that I could explain why this could be, but that's the only "variable" what could play a part on this issue. :smile:
-Ville
No problem. I too am going to look into it. Although I haven't heard any reports, If one person sees it, it could be likely others do to.
Thanks!
-
Re: Simple Google Analytics - Support
I have done a new install of SGA in version 1.3.9h but I've had one problem: I am using a custom template and there wasn't a
html_header.php file in the "common" folder so I copied the file from the default template folder into my custom folder as suggested in a previous post. So far so good, but when I copied the code from Step 3 Part A and updated everything, it caused my text size to go bigger and the site went left instead of being centered as it was previously.
Having just the file there didn't change anything but adding
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
caused template changes. Any suggestions?
-
Re: Simple Google Analytics - Support
As an adendum to my post above, I'm beginning to suspect that my template override is not quite right . . .
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
MickeyDora
As an adendum to my post above, I'm beginning to suspect that my template override is not quite right . . .
Making the change indicated should have no impact at all on the rest of the template ... not the look or feel, or the operation of it. If you noticed any alterations that occurred after you inserted that line then you must have done something incorrect when trying to either implement the template overrides, or in copying and pasting the code into place.
I suspect that the custom template you were using had some changes that were needed or made to the top portion of the site, and putting the html header in place may have caused those to be wiped out.
Do you have a link for the site?
-
Re: Simple Google Analytics - Support
Sure . . .
www. dynotab direct. com (disregard spaces).
To be honest, template overrides have always left me pretty befuddled. I just have put in the work to sort them out.
Right now I have the html_header.php installed but without the added code referenced in my original post.
Thanks!
-
Re: Simple Google Analytics - Support
Ok, looking at that link, it shows that absolutely no tracking is installed. So something you recently did caused the code that should render the tracking to be overwritten.
I would suggest going back and making sure you have the files in the correct locations. That is why your tracking is not registering.
If you need me to look closer at it send me a PM and we'll work something out.
From this angle I can tell that the tracking is not in place and thus either the files needed are not in the correct locations, or the code in those files is not present to generated the tracking.
-
Re: Simple Google Analytics - Support
For the benefit of the ZC community, I made an error in the installation and I was able to rectify this problem. Works great now.
-
Re: Simple Google Analytics - Support
Glad to hear you got it working.
-
Re: Simple Google Analytics - Support
Hi All,
i have install the Files and after installing the SQL patch.
The following error appear:
Forbidden
You don't have permission to access /Soos/sqlpatch.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I did change the Admin Folder Name before, does it conflit the files?
I'm using: v1.3.9e
Here is my site: www.sgspeer.com
Help.
Thasnk you in advance
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Glad to hear you got it working.
Hi ,
i have install the Files and after installing the SQL patch.
The following error appear:
Forbidden
You don't have permission to access /Soos/sqlpatch.php on this server.
I did change the admin folder name and using 1.3.9g
Thank you in advance
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
hmm ... let me take a look at it here and see what the issue might be.
Hi Eric,
Just wanted to know if you ever managed to find out what the issue was with trying tracking google image searches using your suggested method.
My original question is here, and your first response is here.
Thanks :smile:
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
sgspeer
Hi ,
i have install the Files and after installing the SQL patch.
The following error appear:
Forbidden
You don't have permission to access /Soos/sqlpatch.php on this server.
I did change the admin folder name and using 1.3.9g
Thank you in advance
This sound like you changed the permissions on some files on your server some how. Nothing relating to this add-on. I would suggest you go back and check all file permissions on your server to determine which may have been altered. For that file mentioned in particular as well.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
gaffettape
Hi Eric,
Just wanted to know if you ever managed to find out what the issue was with trying tracking google image searches using your suggested method.
My original question is
here, and your first response is
here.
Thanks :smile:
This should work for you (from my previous post you referenced. I've got it on a few sites and it works ok. Are you pasting the code as indicated into the correct location in your admin? What type of results are you getting?
-
Re: Simple Google Analytics - Support
How do I uninstall the SQL from the Database?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
bkeaton
How do I uninstall the SQL from the Database?
There is an uninstall SQL patch included with the package. Just run that from your admin.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
This should work for you (from my previous post you referenced. I've got it on a few sites and it works ok. Are you pasting the code as indicated into the correct location in your admin? What type of results are you getting?
Hi Eric,
I think I have added the code correctly - see my code below as it appears on my site (minus account number etc.)
Code:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-XXXXXXXX-X");
pageTracker._initData();
var ref = document.referrer;
if (ref.search(/images.google/) != -1 && ref.search(/prev/) != -1) {
var regex = new RegExp("images.google.([^/]+).*&prev=([^&]+)");
var match = regex.exec(ref);
pageTracker._clearOrganic();
pageTracker._addOrganic("images.google."+ match[1],"q");
pageTracker._setReferrerOverride("http://images.google." + match[1] + unescape(match[2]));
}
pageTracker._trackPageview();
</script>
As I mentioned in a previous post, I have added the code you suggested, however GA still doesn't appear to be tracking image search data. In my GA account the searches still show as "google.com (referral)" then "/imgres" then if I try and found out the keyword it says "(not set)"
-
Re: Simple Google Analytics - Support
There seems to be bug, or incompatibility, between his mod and fec (Fast and Easy Checkout). Fec has been installed for months, when installed this the checkout stopped working. Disabling fec allowed the default checkout to work.
For now, I've disabled Simple Google Analytics and installed the analytics code directly. Anybody else see this or know what the conflict is?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
There seems to be bug, or incompatibility, between his mod and fec (Fast and Easy Checkout). Fec has been installed for months, when installed this the checkout stopped working. Disabling fec allowed the default checkout to work.
For now, I've disabled Simple Google Analytics and installed the analytics code directly. Anybody else see this or know what the conflict is?
That's strange, I have FEC (1.9.4) and this mod working fine together...?
Just thought I'd let you know.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
gaffettape
That's strange, I have FEC (1.9.4) and this mod working fine together...?
Just thought I'd let you know.
In checking the version, it's actually the FEC AJAX version 2.13.2
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
In checking the version, it's actually the FEC AJAX version 2.13.2
Ah, you're using the AJAX version, I'm using the standard version.
In that case, disregard my previous post!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
In checking the version, it's actually the FEC AJAX version 2.13.2
I'll have to take a look at that Jim. What specifically happens when the two are installed?
I've seen a number of other things "stop working" (on other sites) when that AJAX version is installed. It seems as though it uses it's own framework and in pulling parts of that in causes incompatibilities with some other items.
One thing I will note is I have had no issues with it working when that version is in effect (error wise.) I've worked with a number of stores using that and had no issues.
Having said that, the only way I think it wouldn't work is if the AJAX version overrides the footer / checkout success portions of the site. The only thing the Simple GA mod does is install Google tracking on the bottom of the page (or top of using Asychronous code.)
Let me know what problems you see and we'll try to determine what is causing it.
Thanks!
-
Re: Simple Google Analytics - Support
Thanks Eric.
The problem is the shopping cart page will not load. It returns an empty page. Whether logged in or not. However, the item does get added to the cart. Meaning when I remove the module, the item I tried to add is in my cart.
I had the Asychronous code installed. When I switched and added the google code directly to the html_header.php file, it works fine.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
Thanks Eric.
The problem is the shopping cart page will not load. It returns an empty page. Whether logged in or not. However, the item does get added to the cart. Meaning when I remove the module, the item I tried to add is in my cart.
I had the Asychronous code installed. When I switched and added the google code directly to the html_header.php file, it works fine.
IF you get a blank white page, that usually means there is a PHP error somewhere. Make sure when you installed the mod (specifically the async portion) that you didn't include or remove any "extra" info that would cause the PHP to stop.
TO find out exactly where the error is, reload that page with Analytics installed (so it goes "white") then look in your "cache" directory for the Mydebug ... error log (with the same dat and time you accessed the file with.) This will tell you what the error is, and what line it can be found on so it can be corrected.
My guess is that during install, some code might have been added that threw the async portion off.
Let me know what you find out.
Thanks!
-
Re: Simple Google Analytics - Support
I looked at the log file and found this:
[07-May-2011 12:42:19] PHP Warning: require(includes/templates/defend/quick_checkout//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/ready20/public_html/includes/templates/MY_TEMPLATE/common/html_header.php on line 80
In digging into the ajax version of FEC ( I didn't install it), I see it redirects to it's over version of the html_header.php file in /includes/templates/MY_TEMPLATE/quick_checkout
Code:
<?php
if ((isset($_REQUEST['request']) && $_REQUEST['request'] == 'ajax') || (isset($_SESSION['request']) && $_SESSION['request'] == 'ajax')) {
// do nothing
//echo '<!-- request = ' . $_REQUEST['request'] . ' -->';
//echo '<!-- session = ' . $_SESSION['request'] . ' -->';
} else {
// not ajax, so load regular file
if (file_exists(DIR_WS_TEMPLATE . 'common/html_header.php')) {
require(DIR_WS_TEMPLATE . 'common/html_header.php');
} else {
require(DIR_WS_TEMPLATES . 'template_default/common/html_header.php');
}
}
?>
No sure I know why it doesn't work but adding the analytics code to the html_header.php file the old fashioned way works, so that's what I did.
Figured I post what I found here in case you can figure what the problem or for others in the same situation.
-
Re: Simple Google Analytics - Support
Ah I see what it is doing. When using that version it reworks the directory level to want to look for the google_analytics.php file outside of the directory it is now in and instead wants it to be in the "quick_checkout" directory (from this angle that is what it looks like.)
I would bet if you include the google_analytics.php file in there it should work. Just a thought.
Thanks for posting the find!
-
Re: Simple Google Analytics - Header layout affected in FF
Thanks for the mod. I successfully installed it and then noticed in FireFox 4.01 that the header of my site changed, specifically the top left logo shifted down a couple of spaces. It looks fine in IE9.
I checked the additions to the tpl_main_page and html_header files and am not sure what may be the issue...I don't see anything obvious like a <br /> or extra line. Any ideas?
Cheers,
R
1.39g
avenue-r.com
-
Re: Simple Google Analytics - Support
Unless you altered something accidentally on install (mainly of pasting items into the header sections you mentioned) then it shouldn't have any effect on your design layout.
I would go back and make sure you didn't make any unwanted changes to those files and then check your stylesheet etc... to see if you need any adjustments there.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
giftmeister
D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.
No problem. It happens. :)
-
Re: Simple Google Analytics - Support
I have the most recent version of this contribution however, running on 1.38a (heavily modded)
In Google Analytics it shows this:
Code:
Product Revenue $14.95 - Quantity - 1
When in fact it should be 23.
I do not allow the customers to just simply choose a quantity from the quantity box since each product has it's own customization.
So, this order was all for the same product but with different attribute/values selected. (from over 2,000 choices)
Is there something I need to do to my code to have Google correctly track this order? Right now it thinks I sold only "one" of that "one product". I'm sure this is messing with my counts for the year and other metrics / etc...
Thank you for any help in this matter.
-
Re: Simple Google Analytics - Support
I've got it running fine on a number of sites that use multiple attributes etc... and it all works fine.
Let's see if we can't narrow down the problem on your site here.
I'm not sure which portion you said was incorrect however in your description.
Is the "quantity" being calculated incorrectly (which causes the price to be incorrect)?
Is it the "total" that is being calculated incorrectly (and the quantity etc... is all correct?
I suspect that maybe somewhere in your programming (if any of the heavily modded sections deal with the attributes and pricing) that this might be the cause. My thinking is that if this has been modified then maybe the total is not being carried over correctly (to the proper value) and this is causing the analytics to only pick up the total (minus the attributes).
Let me know answers to the above and we'll see if we can't sort it out.
-
Re: Simple Google Analytics - Support
I posted a thread, but I now see this thread!
Simple problem, hopefully a simple fix.
My website is not passing the session information to Paypal, so when they return to the site to complete the sale google analytics shows every sale as [mysite].co.uk instead of the actual traffic source. The traffic source does show up correct in other areas of analytics, just not for purchases.
In Paypal I have added utm_nooverride=1 to the return page in Paypal's settings - That's suppose to pass the session back from Paypal to my site.
So my guess is that it's still not working as my site is not passing the info to Paypal.
I assume I have to add something in my google_analytics.co.uk to do that?
-
Re: Simple Google Analytics - Support
econcepts, how does setting Recreation Session in Admin - Session to True affect this mod? Obviously, when this is set to true, the session will change when the customer attempts to login or create account. How does this affect tracking?
Thanks!
-
Re: Simple Google Analytics - Support
If I'm installing this mod for the first time on a store using ZenCart version 1.3.8a, which version of the mod should I install? Will the most recent 1.3.9 version be compatible, or should I download the older version for 1.3.8?
Thanks in advance for any advice on this
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
CreepyD
I posted a thread, but I now see this thread!
Simple problem, hopefully a simple fix.
My website is not passing the session information to Paypal, so when they return to the site to complete the sale google analytics shows every sale as [mysite].co.uk instead of the actual traffic source. The traffic source does show up correct in other areas of analytics, just not for purchases.
In Paypal I have added utm_nooverride=1 to the return page in Paypal's settings - That's suppose to pass the session back from Paypal to my site.
So my guess is that it's still not working as my site is not passing the info to Paypal.
I assume I have to add something in my google_analytics.co.uk to do that?
If I understand you correctly, you'll need to capture the info passed via PayPal (in the query string) and add that to GA.
If you can pull this off, the best way of doing this is to send a a variable that Google Already tracks back in your pass back query string.
Try using the Google URL builder to get the proper parameter in there.
http://www.google.com/support/analyt...y?answer=55578
Let me know if this helps.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BlessIsaacola
econcepts, how does setting Recreation Session in Admin - Session to True affect this mod? Obviously, when this is set to true, the session will change when the customer attempts to login or create account. How does this affect tracking?
Thanks!
Recreating the session has no effect on this tracking mod. It tracks the same person all the way through via Google (with cookies etc...)
They will be seen as the same 'unique visitor' either way you set it.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Argon09
If I'm installing this mod for the first time on a store using ZenCart version 1.3.8a, which version of the mod should I install? Will the most recent 1.3.9 version be compatible, or should I download the older version for 1.3.8?
Thanks in advance for any advice on this
Any version of this mod will work for your needs. The best option is to choose the newest version.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Recreating the session has no effect on this tracking mod. It tracks the same person all the way through via Google (with cookies etc...)
They will be seen as the same 'unique visitor' either way you set it.
Thank you so much for the clarification. So glad to read this! I am also curious if you plan some day in the future to convert your yahoo tracking for Microsoft Adcenter.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Google says the newest code will give you the 'most' information. However, many people don't even know 'how or where' to find that info (or even set it up) by using new tracking codes so it doesn't matter.
All forms of tracking will provide you with the basic info you need to run a successful business. I've found that the ga.js tracking code produces a larger margin of error specifically with regard to ecommerce tracking (inconsistent reporting) so I never personally use that.
I tend to stay with either the older urchin methods (for most accurate results) and have been migrating to the asych tracking on a few sites. ONce I determine the asych tracking is as accurate in core data (the info I use to run a business) as the legacy urchin code I'll migrate to that fully.
Quoting this post from February. Is this still the current conclusion, to use urchin.js, or has anything changed? I see a note in the mod that the author found that the urchin.js is more accurate, but that was dated back in 2008. I'm still missing 15-20% of my transactions from the Analytics report using urchin.js, but I don't know of ga.js has improved in the last couple years.
Or what's this about asynch tracking? Will it be updated in the mod?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BlessIsaacola
Thank you so much for the clarification. So glad to read this! I am also curious if you plan some day in the future to convert your yahoo tracking for Microsoft Adcenter.
Yes, actually I have it running on a few of my own sites now (converted) but need to make it "public ready" (which I have yet to do.)
Once I get to that point (MSN tracks differently than Yahoo did and a few of the variables make it a little more complex to 'standardize') I'll release it.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fakeDecoy
Quoting this post from February. Is this still the current conclusion, to use urchin.js, or has anything changed? I see a note in the mod that the author found that the urchin.js is more accurate, but that was dated back in 2008. I'm still missing 15-20% of my transactions from the Analytics report using urchin.js, but I don't know of ga.js has improved in the last couple years.
Or what's this about asynch tracking? Will it be updated in the mod?
If you are using the urchin version of the code (legacy tracking) then you should not have that big of a difference unless something else is not setup correctly (at least that is what I find from my experience.)
The ga.js version tracks ok with everything EXCEPT, everyone still using it reports Ecommerce Tracking to be off pretty significantly in some cases.
The newest version of this module has Asych tracking built into it and that is an option you could use as well. I have not seen any problems using that to date and in a few cases have switched over to that on a number of sites.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Yes, actually I have it running on a few of my own sites now (converted) but need to make it "public ready" (which I have yet to do.)
Once I get to that point (MSN tracks differently than Yahoo did and a few of the variables make it a little more complex to 'standardize') I'll release it.
Thank you for the update! Looking forward to it and if you need testers we'd be happy to test it for you.
-
Re: Simple Google Analytics - Support
I just noticed an odd behavior after upgrading to 1.2.4. Please note that this issue may have been there before now, I just didn't notice it until today.
If you have an order for an item that uses attribute the order transaction details in Google Analytic is not reporting correctly. So let's say for example a custom buys t-shirt A for $10 and select size Small and then add another t-shirt A for $10 to cart and select size Medium and let's say the customer now adds a CD for $10 to cart and shipping is $2.
Google Analytic correctly shows total revenue of $32 shipping cost of $2 is also shown. Unfortunately, Google Analytic shows 2 individual products as purchased instead of 3 units it only records one occurrence of t-shirt A even though two were purchased in different sizes. The transaction screen also only picks up one purchase of t-shirt A not two with different size.
This to me seems like a bug and would like suggestion on how to fix it.
We are using the newest Asycronous tracking code so I am not sure if that makes any difference. We used to implement the ga.js.
Thanks!
-
Re: Simple Google Analytics - Support
Good point here. This is actually how Google sees it and would be 'correct' to some degree (nothing with the module itself ... more with how Google reads the info).
Here is what I mean:
If you look at it from Google's perspective, there were only "2" unique products (by product id / model) ordered yet there were "3" variations of products in all.
So from Google's end, it reads it as two unique products (which is correct) one of which has '2 variations' (but in fact is the same product as the first.)
Does that make sense?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Good point here. This is actually how Google sees it and would be 'correct' to some degree (nothing with the module itself ... more with how Google reads the info).
Here is what I mean:
If you look at it from Google's perspective, there were only "2" unique products (by product id / model) ordered yet there were "3" variations of products in all.
So from Google's end, it reads it as two unique products (which is correct) one of which has '2 variations' (but in fact is the same product as the first.)
Does that make sense?
What you're saying make sense but it's a faulty logic on Google's part. Obviously, if the product ID is the same Google analytic should be smart enough to show the variation.
So in my example, even if google is only reporting one product A, if they are not going to report the variation they should at least count all for that id. So if a customer buys 2 small t-shirt and 2 medium shirt, if Google is only going to report it as a t-shirt the count should be 4 NOT two units.
Oh well!
-
Re: Simple Google Analytics - Support
Apologies if this has been answered before in this long thread, however...
I created a new page called "main", which has its own "tpl_main_page.php" in \includes\templates\mytemplate\main\ because its layout is different from all other pages.
(Background: This new page was originally the homepage of my old site, but upon migrating the site to zen cart, "index.php" has become the homepage. Wishing to retain the content and layout of the old homepage, I had to create a new page called "main".)
1. Just before the </body> at the bottom of the "main" page, I inserted the following code as instructed:
Code:
<!-- Google Analytics 1-2-3 start-->
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
<!-- Google Analytics 1-2-3 end-->
and then removed the "/" before "google_analytics.php".
2. I then placed a copy of "google_analytics.php"
from
includes\templates\mytemplate\google_analytics\
into
\includes\templates\mytemplate\main\
However, while the above throws no errors and because my zen cart is still under development on localhost, I have no idea whether the above actually works on a live site or indeed is the correct way to invoke google analytics for this one page.
Comments/Criticisms most appreciated.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
dw08gm
Apologies if this has been answered before in this long thread, however...
I created a new page called "main", which has its own "tpl_main_page.php" in \includes\templates\mytemplate\main\ because its layout is different from all other pages.
(Background: This new page was originally the homepage of my old site, but upon migrating the site to zen cart, "index.php" has become the homepage. Wishing to retain the content and layout of the old homepage, I had to create a new page called "main".)
1. Just before the </body> at the bottom of the "main" page, I inserted the following code as instructed:
Code:
<!-- Google Analytics 1-2-3 start-->
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
<!-- Google Analytics 1-2-3 end-->
and then removed the "
/" before "google_analytics.php".
2. I then placed a copy of "google_analytics.php"
from
includes\templates\mytemplate\google_analytics\
into
\includes\templates\mytemplate\main\
However, while the above throws no errors and because my zen cart is still under development on localhost, I have no idea whether the above actually works on a live site or indeed is the correct way to invoke google analytics for this one page.
Comments/Criticisms most appreciated.
This is one way to do it. The way to see if it will work is to look at the page on your local server and simply "view source" (from the browser). If you see the Google Analytics code on the page you're all set.
-
Re: Simple Google Analytics - Support
I have changed templates, what do I need to do to get analytics working again?
-
Re: Simple Google Analytics - Support
Does anybody know the benefit of using Asynchronous Snippet versus ga.js option? I've read on Google analytics and still not sure what the benefit is even though they are promotion the Asynchronous Snippet method.
Thanks!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
This is one way to do it. The way to see if it will work is to look at the page on your local server and simply "view source" (from the browser). If you see the Google Analytics code on the page you're all set.
Hi econcepts. Thanks for your prompt reply.
Yes, the code does appear in view source.
On further thought, however, I am wondering how else to access the original google_analytics.php in includes\templates\mytemplate\google_analytics\.
It seems I only need to change the "$current_page_base" in the following code at the bottom of my new tpl_main_page.php to reference /mytemplate/, but which is currently rendering as "main" .
Code:
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . 'google_analytics.php');
Any thoughts or solutions.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
kolivo
I have changed templates, what do I need to do to get analytics working again?
Follow the install instructions in the readme file (no need to reapply any admin SQL patches.) You'll need to make any code changes (to the tpl_main_page.php, and the html_header.php within your new template and also make sure you copy the "google-analytics" directory to your new template folder as well.
Basically, if you go through the readme and follow the instructions but skip the part about installing the SQL patch, you should be ok.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BlessIsaacola
Does anybody know the benefit of using Asynchronous Snippet versus ga.js option? I've read on Google analytics and still not sure what the benefit is even though they are promotion the Asynchronous Snippet method.
Thanks!
Of course they say there are more tracking options with the new snippet (if you know how to find them and activate them in analytics.) One thing they say is the asych tracking loads at the top of the page (instead of the bottom as in the past) which helps a number of tracking issues. It also is apparently 'faster' in loading the way it calls the script etc...
I can say that if you are running any Website Optimizer experiments that having the code at the top of the page will help as often times it is needed to be placed before any Optimizer code on the page.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
dw08gm
Hi econcepts. Thanks for your prompt reply.
Yes, the code does appear in view source.
On further thought, however, I am wondering how else to access the original google_analytics.php in includes\templates\mytemplate\google_analytics\.
It seems I only need to change the "
$current_page_base" in the following code at the bottom of my new tpl_main_page.php to reference /mytemplate/, but which is currently rendering as "main" .
Code:
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . 'google_analytics.php');
Any thoughts or solutions.
If the code is showing on you page when you view source then you should have to change anything. The tracking is installed correctly.
-
Re: Simple Google Analytics - Support
Searching through threads and trying to find an answer - hoping someone here can help. It seems that no matter if I use this module or I'm inserting analytics code manually, ALL orders placed through paypal or check/money order aren't being tracked by google. Only my credit card transactions.
Is anyone else seeing this? I'm using the standard IPN paypal module. Thanks and apologies if this has been covered.
-
Re: Simple Google Analytics - Support
If none are being tracked then there has to be a problem with how you are returning the users to the site after a successful order. The only way Google (r any other tracking system on your site) will ever be able to track a sale from a site like PayPal is if the customer returns to your site after the sale. If they don't all you'll see if them 'leaving' (going to paypal) and never returning.
I have worked with hundreds of sites that use PayPal and all track just fine with Google Analytics. I would highly recommend you use the Simple Google Analytics module to insert the code on your site. Manually inserting if not done correctly (you don't just insert the code in one spot for it to work) will get you undesired results.
-
Re: Simple Google Analytics - Support
Quote:
Manually inserting if not done correctly (you don't just insert the code in one spot for it to work) will get you undesired results.
thanks for your help and advice. still searching on why this is happening. i've been using the module to track conversions for several months now and scrolling back, I do see orders being tracked, just not all of them and usually paypal orders.
to address your last point, do you mean to say I can't just paste the google conversion tracking code into my checkout success page and be done with it? what else would i be missing?
-
Re: Simple Google Analytics - Support
For proper conversion tracking, can you plewase advice what setting this shouyld be set to?
Provide details about the page where this conversion will be tracked.
Page security level HTTP or HTTPS
Thanks a lot!
-
Re: Simple Google Analytics - Support
Anyone please?
I just want to make sure I've got the right settings for Adwords to track the conversions. I've spend over an hour already going through this thread, but have not found details on Adwords Conversion setting.
Thanks a lot!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
ttfan
Anyone please?
I just want to make sure I've got the right settings for Adwords to track the conversions. I've spend over an hour already going through this thread, but have not found details on Adwords Conversion setting.
Thanks a lot!
From your Zen Cart admin (Simple Google Analytics Configuration) just set the "Converison Tracking" to active (on) and then add your Adwords conversion tracking id number. Save and you're all set.
Conversion tracking is added (as it should) to the checkout success pages. Remember, only conversions that came directly from a click on one of your ads will be recorded in Adwords. If you get a sale that came from a source other than Adwords, you'll see that conversion in the Analytics side of things (providing you have that all setup correctly.)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
bi11i
thanks for your help and advice. still searching on why this is happening. i've been using the module to track conversions for several months now and scrolling back, I do see orders being tracked, just not all of them and usually paypal orders.
to address your last point, do you mean to say I can't just paste the google conversion tracking code into my checkout success page and be done with it? what else would i be missing?
A few things ...
1) The only "conversion tracking" script Google provides you with either relates directly to Adwords or Optimizer. There is no 'conversion script' for Analytics. Analytics automatically tracks your conversions if you have the proper code in place.
This module places the proper code in the right locations (even for Google Adwords conversion tracking) throughout the site and on the 'checkout success' pages.
So if you go and manually try to add the code to those page(s) you'll conflict with what is already in place.
2) If talking about Google Analytics, then the 'added tracking' which would be placed on the checkout success page is the 'ecommerce tracking'. However, this too is already inserted along with my module, so no need to manually add that either.
3) If you just place the conversion tracking script that Google gave you (for Adwords of course) on your thank you page, you might track a conversion, but you won't have the dynamic tracking ability that my script provides. So instead of getting an order for $50 (as an example) recorded as $50, you'll get an order, but it will likely show either $1 or "$0" for the value.
The module I've built automatically takes the order information and adds it to the proper locations to be tracked.
In short, everything you need to track all types of transactions is included with the Simple Google Analytics module. You shouldn't have to place any tracking code manually anywhere on the site. Doing so could conflict with what is already being tracked.
If you added manual code you likely caused a conflict. I would recommend removing the manually inserted code and letting the module do the work for you.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
From your Zen Cart admin (Simple Google Analytics Configuration) just set the "Converison Tracking" to active (on) and then add your Adwords conversion tracking id number. Save and you're all set.
Conversion tracking is added (as it should) to the checkout success pages. Remember, only conversions that came directly from a click on one of your ads will be recorded in Adwords. If you get a sale that came from a source other than Adwords, you'll see that conversion in the Analytics side of things (providing you have that all setup correctly.)
Thank you for the response, but what I need to know is what Adword setting I need to have for:
Page security level: HTTP or HTTPS
Does this refer to the security level of the success page? I've currently got it set to the default of http
I've had one conversion so far, so it's obviously doing some tracking, but the URL it lists on my Adwords conversion page is the home page of my Zencart site (with the https).
Thanks for all your time you spend here... much appreciated!
-
Re: Simple Google Analytics - Support
It doesn't matter what setting you tell Google you have (secure vs. non-secure) because my module also automatically detects that and adjusts accordingly.
The only reason Google asks you for that is so that you can generate the tracking code to place on the page, and again, you don't need the tracking code because the module already has it in place.
Let me know if that helps.
(P.S. If you really want to find out if you are https or http then you can complete an order ... it doesn't have to be after clicking one of your ads if just testing ... and then while on the checkout success page just look at the address bar of your browser to see if the page is secure or not. It can be different based on the way you installed zen cart and configured it.)
-
Re: Simple Google Analytics - Support
Hi!
Just installed google analytics on my website (zen cart 1.3.9), changed account number in admin/google analytics but when i checked the status , show tracking not installed. Double checked if all the files are in the right place and they are but it doesn't work. Any idea, anybody? Thanks.
-
Re: Simple Google Analytics - Support
Did you complete step 3 of the README?
What is the url of the site?
Most of the time when it still says tracking not installed, step three was skipped of the file(s) were put in the wrong location.
-
Re: Simple Google Analytics - Support
I've got this installed on a site but Google is not reporting any conversions. All the other tracking data seems to be collecting just fine.
I've placed a test order and verified to analytics code is there. Any suggestions??
-
Re: Simple Google Analytics - Support
When you say conversions, what type do you mean. There are several ways to record 'conversions' in Google Analytics. Adwords conversion tracking, ecommerce conversion tracking, goal conversion tracking.
If you are looking to get data on ecommerce transactions, make sure you have told Google that the site is an ecommerce site and that you want to track data for it.
If you are looking to track Adwords conversions make sure you enter the Adwords (not Google Analytics) tracking ID in the "conversion" area of the admin (Google Analytics Configurate) and then turn it on by selecting the proper radio button within that same area.
Along those lines, Conversions for Adwords will only track if a visitor to your site first clicks on one of your ppc ads and then makes a purchase.
If you're trying to track Goal conversions make sure you have the Goal path setup correctly as well as the final 'thank you' page for the Goal URL.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
Eric,
I'm having problems with ecommerce transactions. Goals are tracking just fine.
Google Analytics is set to Yes for ecommerce website. That's the only place it needs to be set, right?
Thanks,
Jim
-
Re: Simple Google Analytics - Support
Yes, that is the only spot it needs to be turned on.
What flavor of tracking code are you using? (Async, ga.js, Legacy / urchin.js)
-
Re: Simple Google Analytics - Support
-
Re: Simple Google Analytics - Support
Is this the script I use in the admin/ install SQL Patch ?
SET @configuration_group_id=0;
SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title= 'Google Analytics Configuration' LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Analytics Account', 'GOOGLE_ANALYTICS_UACCT', 'UA-XXXXXX-X', 'Enter your Google Analytics account number', @configuration_group_id, 1, NOW(), NULL, NULL),
(NULL, 'Target Address', 'GOOGLE_ANALYTICS_TARGET', 'customers', 'What adress (City/State/Country to correlate the transaction with) use in Analytics transaction?', @configuration_group_id, 2, NOW(), NULL, 'zen_cfg_select_option(array(\'customers\', \'delivery\', \'billing\'),'),
(NULL, 'Affiliation', 'GOOGLE_ANALYTICS_AFFILIATION', '', 'Optional partner or store affilation', @configuration_group_id, 3, NOW(), NULL, NULL),
(NULL, 'Use sku/code', 'GOOGLE_ANALYTICS_SKUCODE', 'products_id', 'Using as Product SKU code', @configuration_group_id, 4, NOW(), NULL, 'zen_cfg_select_option(array(\'products_id\', \'products_model\'),'),
(NULL, 'Use pagename', 'GOOGLE_ANALYTICS_USE_PAGENAME', 'false', 'Use pagename in tracking? Be careful when using this!', @configuration_group_id, 5, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Attributes Brackets', 'GOOGLE_ANALYTICS_PRODUCTS_ATTRIBUTES_BRACKETS', '[]', 'Attributes Brackets', @configuration_group_id, 6, NOW(), NULL, NULL),
(NULL, 'Attributes Delimiter', 'GOOGLE_ANALYTICS_PRODUCTS_ATTRIBUTES_DELIMITER', '; ', 'Attributes Delimiter', @configuration_group_id, 7, NOW(), NULL, NULL),
(NULL, 'Tracking Outbound', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND', 'false', '', @configuration_group_id, 21, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'Tracking Outbound Links Prefix', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX', '/outgoing/', '', @configuration_group_id, 22, NOW(), NULL, NULL),
(NULL, 'Use AdWords Conversion', 'GOOGLE_CONVERSION_ACTIVE', 'true', 'Use AdWords Conversion', @configuration_group_id, 91, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'AdWords Conversion ID', 'GOOGLE_CONVERSION_ID', '', 'Enter your Google Conversion ID', @configuration_group_id, 92, NOW(), NULL, NULL),
(NULL, 'AdWords Conversion Language', 'GOOGLE_CONVERSION_LANGUAGE', 'en_US', 'Enter your Google Conversion Language', @configuration_group_id, 93, NOW(), NULL, NULL);
-
Re: Simple Google Analytics - Support
That is not the code for the Simple Google Analytics module I built (this support thread). It looks like you have Andrew's version (which I have been told has bugs.) I would recommend downloading the Simple Google Analytics module and using that. Easy install and does more than Andrew's version.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
That is not the code for the
Simple Google Analytics module I built (this support thread). It looks like you have Andrew's version (which I have been told has bugs.) I would recommend downloading the Simple Google Analytics module and using that. Easy install and does more than Andrew's version.
Thank you. I downloaded your version.
before I start, I am reading your read me. I found this : Step 4
At the bottom of /includes/templates/[your_template]/common/html_header.php. For the life of me I can not find this html_header. php. All my common folders have tpl_header.php but not "html_header.php
Is that created when I add the -install SQL file?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Yes, actually I have it running on a few of my own sites now (converted) but need to make it "public ready" (which I have yet to do.)
Once I get to that point (MSN tracks differently than Yahoo did and a few of the variables make it a little more complex to 'standardize') I'll release it.
I am wondering if you by any chance have an approach you can share that will at least track conversion even if the revenue data is not being tracked. I have tried the conversion code from adcenter and it's not tracking. Here is the code from them that I am currently using:
Code:
<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.atdmt.com/mstag/site/ca8df32c-e586-4f05-8b99-a0fe58e21bd5/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"MASKED",type:"1",revenue:"",actionid:"28215"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/ca8df32c-e586-4f05-8b99-a0fe58e21bd5/analytics.html?dedup=1&domainId=MASKED&type=1&revenue=&actionid=28215" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Golden Synergy
Thank you. I downloaded your version.
before I start, I am reading your read me. I found this : Step 4
At the bottom of /includes/templates/[your_template]/common/html_header.php. For the life of me I can not find this html_header. php. All my common folders have tpl_header.php but not "html_header.php
Is that created when I add the -install SQL file?
If your custom template does not have this file then you'll want to copy it from the 'default_template' directory into your custom 'common' directory. Alter that file and you're all set.
Remember, where ever you see 'your_template', replace this with the actual name of your own template directory.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BlessIsaacola
I am wondering if you by any chance have an approach you can share that will at least track conversion even if the revenue data is not being tracked. I have tried the conversion code from adcenter and it's not tracking. Here is the code from them that I am currently using:
Code:
<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.atdmt.com/mstag/site/ca8df32c-e586-4f05-8b99-a0fe58e21bd5/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"MASKED",type:"1",revenue:"",actionid:"28215"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/ca8df32c-e586-4f05-8b99-a0fe58e21bd5/analytics.html?dedup=1&domainId=MASKED&type=1&revenue=&actionid=28215" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>
Yes. Take that exact code and put it into the tpl_main_page.php file near the bottom (just above or below the "google analytics" require file.
Insert it as follows to only show on the checkout_success page and you should be ok.
PHP Code:
<?php
/************* bof AdCenter Tracking Code ********************/
if($page_directory == 'includes/modules/pages/checkout_success') { ?>
INSERT YOUR TRACKING CODE HERE
<?php
}
/************* eof AdCenter Tracking Code ********************/
?>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Yes. Take that exact code and put it into the tpl_main_page.php file near the bottom (just above or below the "google analytics" require file.
Insert it as follows to only show on the checkout_success page and you should be ok.
PHP Code:
<?php
/************* bof AdCenter Tracking Code ********************/
if($page_directory == 'includes/modules/pages/checkout_success') { ?>
INSERT YOUR TRACKING CODE HERE
<?php
}
/************* eof AdCenter Tracking Code ********************/
?>
Thanks! I will give this a try. I actually have the code currently placed in the checkout_success file and perhaps that's a wrong approach. I wonder how it populates the revenue if there's no variable that's defined for it.
Thanks!
-
Re: Simple Google Analytics - Support
Since my file Is not matching what your read me said "find the line of code that looks like this:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');"
?>
Is the area in red below the line I should replace?
</table>
<?php
/**
* prepares and displays footer output
*
*/
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
</div>
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
</body>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
BlessIsaacola
Thanks! I will give this a try. I actually have the code currently placed in the checkout_success file and perhaps that's a wrong approach. I wonder how it populates the revenue if there's no variable that's defined for it.
Thanks!
It will not populate the revenue figure if you do not provide one. To do this you'll need to write more programming code in order to read the order total on the thank you page and insert it into the proper slot within the tracking.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Golden Synergy
Since my file Is not matching what your read me said "find the line of code that looks like this:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');"
?>
Is the area in red below the line I should replace?
</table>
<?php
/**
* prepares and displays footer output
*
*/
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
</div>
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
</body>
If you have never installed the module before then your template will not have that line of code. You want to follow the portion of the readme for new installs ... not upgrades. It looks as if you are reading the upgrade section.
You definitely do not want to alter any pre-existing code on the page (especially anything to do with the footer file.) This will likely break the site.
This goes without saying, but before you make any changes, make a BACKUP of all files you are going to alter so you have an easy way of returning to the beginning if you need to.
-
Re: Simple Google Analytics - Support
Something is very odd for me.
I have moved my shop from a host who ran it on an old version of ZC like 1.3.7 or something to a new host and its running on 1.3.9h.... Looked at analytics and realised that it stopped recording on that very day of change. Then realised I had to put on analytics.. So I have gone ahead and installed SGA.
Its been working fine. Stats going back for years, and then zeros for a little while..
When prodding on the GA website.. I see that there is a old interface and a new beta interface..
In the old interface, there is this green tick showing 'receiving data'... In the new interface, n the tracking code page it says this... 'Tracking Not InstalledLast checked: 09-Nov-2008 12:34:03 PST'... Thats like 3 years ago... So mybe there is a bug in the new interface... No idea how to make it check now that I have installed the code onto my site..
One other thing, bac to the old interface. There are 2 entries for my domain, one current with lots of stats, and one old UA code that was used by a previous company yers ago... But.. That old UA code is also showing as green tick with receiving data... But.. Its not... The old code does not exist in a single place on my zen cart.!! very odd.!!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Gertzy
Something is very odd for me.
I have moved my shop from a host who ran it on an old version of ZC like 1.3.7 or something to a new host and its running on 1.3.9h.... Looked at analytics and realised that it stopped recording on that very day of change. Then realised I had to put on analytics.. So I have gone ahead and installed SGA.
Its been working fine. Stats going back for years, and then zeros for a little while..
When prodding on the GA website.. I see that there is a old interface and a new beta interface..
In the old interface, there is this green tick showing 'receiving data'... In the new interface, n the tracking code page it says this... 'Tracking Not InstalledLast checked: 09-Nov-2008 12:34:03 PST'... Thats like 3 years ago... So mybe there is a bug in the new interface... No idea how to make it check now that I have installed the code onto my site..
One other thing, bac to the old interface. There are 2 entries for my domain, one current with lots of stats, and one old UA code that was used by a previous company yers ago... But.. That old UA code is also showing as green tick with receiving data... But.. Its not... The old code does not exist in a single place on my zen cart.!! very odd.!!
None of those interfaces has to do with any of Simple Google Analytics or Zen Cart.
That is all on the Google end (the interface) and is only used to view the Google stats (on the Google end) in either their new interface layout or their old one.
Having said that, if your tracking seems off, my guess is that when the site was upgraded, something was overwritten in how the Simple Google Analytics module sends data to Google.
In short, if you are getting data (don't even worry about the old interface and what any of those account says) in your Google Analytics side, then it should all be ok.
-
Re: Simple Google Analytics - Support
Hi, I just installed the Simple Google Analytics Mod on my website for the first ime, which is running Zen Cart v1.3.9h. But I'm having a bit of trouble with the customization steps that are listed in the Readme file. In Step 3, Part B where it instructs to insert the given code into the /includes/templates/[your_template]/common/html_header.php directory of the website, I've run into the issue of my site not having a html_header.php file. I'm running the cherry zen template on my site and am wondering how I should proceed with the install from here on? Thanks in advance for any advice anyone can offer.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
larkin1981
Hi, I just installed the Simple Google Analytics Mod on my website for the first ime, which is running Zen Cart v1.3.9h. But I'm having a bit of trouble with the customization steps that are listed in the Readme file. In Step 3, Part B where it instructs to insert the given code into the /includes/templates/[your_template]/common/html_header.php directory of the website, I've run into the issue of my site not having a html_header.php file. I'm running the cherry zen template on my site and am wondering how I should proceed with the install from here on? Thanks in advance for any advice anyone can offer.
Go find the html_header.php file in the default header common folder, and make a copy of it in your Cherry Zen common folder... then edit it there...
-
Re: Simple Google Analytics - Support
I've run into an odd problem implementing Simple Google Analytics. When I finished all the installation steps in the readme, I found that my shop main page was loading completely blank, only the black background is visible.
I tracked the problem down to the code in tpl_main_page.php. When I add the code:
PHP Code:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
to my tpl_main_page.php, my main page goes blank. When I remove it, it works again.
Any ideas? I'm using the default tpl_main_page.php, as my template didn't have one. So this code is the only change from the Zen Cart default.
Thanks in advance!
HG
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Gertzy
Go find the html_header.php file in the default header common folder, and make a copy of it in your Cherry Zen common folder... then edit it there...
That causes a 500 error because it's not a standard file for the cherry zen template.
Has anyone successfully integrated the Simple Google Analytics mod while using the Cherry Zen template? If so, how did you do it with that html_header.php file not existing?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
larkin1981
That causes a 500 error because it's not a standard file for the cherry zen template.
Has anyone successfully integrated the Simple Google Analytics mod while using the Cherry Zen template? If so, how did you do it with that html_header.php file not existing?
It doesn't matter whether it's a standard cherry-zen template file - files that aren't modified by default in the cherry-zen are taken from the template_default folder - it should not cause any problem whatsoever to copy the exact file over.
Are you sure you're dropping it into the right folder in your template?
Have you tried dropping it into the template folder without modifying it first?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
HenryGale
I've run into an odd problem implementing Simple Google Analytics. When I finished all the installation steps in the readme, I found that my shop main page was loading completely blank, only the black background is visible.
I tracked the problem down to the code in tpl_main_page.php. When I add the code:
PHP Code:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
to my tpl_main_page.php, my main page goes blank. When I remove it, it works again.
Any ideas? I'm using the default tpl_main_page.php, as my template didn't have one. So this code is the only change from the Zen Cart default.
Thanks in advance!
HG
A blank page means there is an error in your PHP code somewhere. Typically this happens when one inadvertently alters other code or places the php code listed in such a way where it mess with current code on the site.
To find out where your problem is make sure you have error checking turned on (default in 1.3.9 versions but if you don't have that you can download the error checking file "Debug Error logging").
To find out where the error is then, place your code back on the page and then try to access it. When you get the white page an error log will be written to your 'cache' folder (with the date / time ... this is how you tell which log goes with which action. If there are too many you can delete the error logs and repeat the above step so there is only one in there when needed.)
Open that error log and it will tell you the exact issue and line of code to look at. If you can;'t figure out what the error means, post it here and I'll walk you through it.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
larkin1981
That causes a 500 error because it's not a standard file for the cherry zen template.
Has anyone successfully integrated the Simple Google Analytics mod while using the Cherry Zen template? If so, how did you do it with that html_header.php file not existing?
This module works with all templates no matter where they come from or who built them.
If you get 500 error you did something wrong in moving the file.
Cherry zen actually does use the html_header.php file in the default folder (all template must for them to work) so by moving it you must have incorrectly placed it.
What you want to do is take the following file:
/includes/templates/template_default/common/html_header.php
copy that to the following location
/includes/templates/[insert your template name here]/common/html_header.php
After you have moved it there make your changes and upload.
If all has been done correctly, it should work just fine with no issues.
-
Re: Simple Google Analytics - Support
Hello there
can you help me please ,
all installed very well ( i think)
but i see : Tracking Not InstalledLast checked: Mar 26, 2011 12:30:39 PM PDT
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
and i ask , why ?
www.king-magic.com
-
Re: Simple Google Analytics - Support
Looking at your site and viewing the source code it appears that you have 2 - 3 different snippets of Google Analytics installed on the pages. You should only have one.
Remove all those you don't need and only let the Module add it.
Once that is complete, go back and re-verify the tracking with Google.
That should do it.
-
1 Attachment(s)
Re: Simple Google Analytics - Support
Hello - has anyone had experience of this issue when doing a clean install
I am installing onto my test system prior to installing on the live version and I keep getting a sql syntax error when trying to install the SQL file
Quote:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
PRIMARY KEY (languages_id),
KEY idx_languages_name_zen ('name')
) TYPE=M' at line 5
I have looked at the MySQL reference but have to confess I got somewhat lost
I am using Zen Cart 1.3.9h
Database Patch Level 1.3.9h
PHP 5.3.5
Mysql 5.5.8
I have searched the thread and the forum and am perplexed that there doesnt seem to be others who have experienced the problem
Any help gratefully received
Thank you
Centec2b
-
Re: Simple Google Analytics - Support
i believe i have added everything correct. I receive no errors of any kind and even analytics says its receiving data. In fact, my traffic dropped to 0 so i know its not calculating my traffic. Also, when i view my source code on any page in the site, i cannot see any code relating to google analytics.
i am using the "iC_AcadameV1.2" template along with the latest version of Zen Cart.
i also had to copy the "html_header" into my iC_AcadameV1.2 template folder because it was not there.
Anyone got any ideas?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Centec2b
Hello - has anyone had experience of this issue when doing a clean install
I am installing onto my test system prior to installing on the live version and I keep getting a sql syntax error when trying to install the SQL file
Hello reference my original post #1600. I am assuming the problem is within my setup on the test system, rather than a code error, due to the overwhelming number of successful users.
But it still seems odd that no one else has had a problem
To try and locate the problem I have updated to the latest version of xampp for win 32 1.7.4
Rewritten the code into a new sql file
Neither have any beneficial effect
I guess the next step is to try and cross reference against other SQL instructions
I have an odd feeling I am going to kick myself when the reason for the error becomes apparent!
Centec2b