I tried this already, had no luck :huh:
Printable View
I tried this already, had no luck :huh:
Ok, I've finally got the e-commerce working, but I have another problem.
In my tracking code, I have two instances of the GA tracking code, which is causing my statistics to show an inflated hit count and an abnormally low bounce rate.
I look at the code in tpl_main_page.php and find one instance of the GA code and upon checkout, Zencart is adding an extra instance of the GA code.
How do I fix this?
Here is the relevant code:
HTML 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">
try {
var pageTracker = _gat._getTracker("UA-6204079-3");
pageTracker._trackPageview();
} catch(err) {}</script>
<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-6204079-3");
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans(
"148",
"",
"56.91",
"3.86",
"8.95",
"Riverside",
"California",
"United States"
);
pageTracker._addItem(
"148",
"5",
"IT203 ISCAlure-Citrella<br> for citrus leafminer",
"Lures",
"4.41",
"10"
);
pageTracker._trackTrans();</script><!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1940015892;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (56.91) {
var google_conversion_value = 56.91;
}
var google_conversion_label = "purchase";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/1940015892/?value=56.91&label=purchase&script=0">
</noscript>
</body></html>
Here is the code from tpl_main_page.php:
HTML 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">
try {
var pageTracker = _gat._getTracker("UA-6204079-3");
pageTracker._trackPageview();
} catch(err) {}</script>
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
All zen cart installs have the "tpl_main_page.php" file located in the /common folder of the "template_default" directory.
If you are using a custom template with a different directory you should utilize the overrides that zen cart provides.
Copy the "tpl_main_page.php" from the "template_default" directory to your /common folder in your custom directory and add the line of code indicated in the installation instructions for the Google Mod.
Should work if you do that. If you can't see the code you either did not copy it into your template file or did not include that "tpl_main_page.php" file in the proper location of the template you are using.
Hope that helps.
The only way there can be two instances of the tracking code is if you or someone else hand entered it into the page in question (maybe in the footer file?)
You'll need to remove the hand entered version from every page it is on and only leave the version I have in my mod here.
The duplicate tracking code us typically a result of the hand entered code 99.9% of the time. Once you find where the "added code" is (again, check the footer file as a possible area where most people try to hand enter it all) and remove it, you'll be ok.
What's the best way to track referrals in Analytics using a url parameter? Such as:
www.domain.com/?referrer=emaillink
www.domain.com/?referrer=bbforum
The issue is 7% of my visitors are "direct" traffic, ie: no known referrer, so they're clicking on my email links or copying and pasting the url or typing it in, and I want to find out which.
I'm running a patched 1.3.7 cart and I've added in this Simple Google Analytics.
We have a web site with several pages of product and company information and then we have a store. You can get to the store from many of our pages and we'd like to know which ones are the best.
(These are not real URLs. Don't click on them.)
our website is www.oursite.com and the store's index.php is www.oursite.com/inner/store/
We have people come to www.oursite.com/inner - navigate around and then go to the store.
The code shows on my pages and google shows the traffic so I believe it's all working. BUT...
When we use Analytics, traffic to www.oursite.com/inner/store is all direct! If we look at Analytics' "Top Landing Pages" www.oursite.com/inner/store is one of them. But no one goes directly to our store that way.
How do I know? Because inner can only be accessed directly (there are no links) and it's never been published. All of the traffic is our test traffic.
Any ideas?
Hello, Zenners .. not sure if we have a common problem or a situation unique to our set-up, but we haven't been able to figure out a solution or find one.
CreekTreeUSA is our primary site with a dedicated SSL cert, and Faery's Whimsy, Wizard's Whimsy & Gothic Shadows are add-on domains.
When purchases are made in the add-on carts, the SSL is via CreekTreeUSA. This has worked fine for several years.
We've also had Simple Google Analytics 1.0 (the urchin code) installed since 2007 and it's been working fine as far as we knew, and as far as needed.
Recently we have need to break down the purchases for each store by its traffic source, i.e. referral, google, direct, etc. and found that for the add-on domains all purchases show up as one traffic source, referrals. So we thought maybe updating to the latest version 1.2.2 and using the google code would help, and we updated CreekTreeUSA and one of the add-ons, Faery's Whimsy, to that. However, the results in Ecommerce traffic sources for Faery's Whimsy didn't change, all traffic sources are still referrals.
We're running Zen Cart 1.3.7 on a Zen certified host.
If other info would help, please let us know. Any input gratefully accepted.
Bob & Nancy
Some thoughts:
1) If your traffic coming into "inner..." is only test traffic at this point (or in other words traffic that can get there through the links you provide only outside of the website) then it will always show as direct no matter what.
2) If your analytics is setup correctly across the store, the site pages, etc... then you should see an constant flow from page to page and those that move from the site to the store and vice versa will not show as direct but as "coming from" (a page).
Make sure you are using the same GA tracking ID across the entire site (not two different ones by mistake).
3) I have a number of sites setup like this and the bottom line is so long as the analytics is setup correctly the flow should be there once all pages link to each other (and you don't have just select "test" traffic coming to the inner pages.)
Bob,
To make sure I understand, it sounds like you are trying to track multiple website urls as separate domains with one analytics account right?
A few thoughts for you.
1) This can be done with one analytics account but the code would need to bee altered.
2) have you considered setting up multiple website profiles under your one analytics account for each of your domains? This would provide you with a unique tracking id for each domain that you can use to track them separately from within your one analytics account.
Thanks for the response. You're right, and I should have mentioned, we do have multiple profiles set up, UA-XXXXXXX-1 thru UA-XXXXXXX-4 (the XXXXXXX is the same for all 4 sites), and the corresponding profile ID is entered into the Analytics Account field in the Analytics Configuration. Was wondering if the Affiliation needed to be something specific, though. Also, version 1.2.2 has only been installed on -3 (CreekTreeUSA) and -4 (Faery's Whimsy, as those are the ones we're working with right now. The CreekTreeUSA profile DOES show all the breakdowns by traffic source for eCmmerce, but the others don't.
So you have multiple profiles and each ecommerce site has it's "own" Simple GA installed AND each of those has entered the unique Analytics ID in the admin right? (just making sure).
Are you using the "ga.js" or the "legacy (urchin)" tracking code? What happens if you switch between them (shouldn't have any effect but just covering the bases here.)
Do you have ecommerce tracking enabled on the other profiles that are not showing it, and do you have those tracking IDs entered in the Simple GA admin (in zen) as well?
Let me know the answers to those and we'll see where that takes us.
Hello, econcepts, thanks for your time.
Each of the sites has Simple GA installed, and the pertinent Analytics Profile ID is entered into Analytics Accounts in the SGA Configuration. (The Affiliation field has the shop name in it, not the Profile ID. Not sure exactly what that is for.)
CreekTreeUSA and Faery's Whimsy are using ga.js, the other 2 still have the legacy version of Simple GA.
All 4 profiles have "Yes, an E-Commerce Site" chosen. As for the "tracking IDs" isn't that the same as the Analytics Profile ID? If not, where do I find the "tracking ID"?
The information in the profiles was set up 2 years ago, and it looks like there may have been some changes since then. For instance, I just noticed that the goal steps are set up with the domain name ( i.e. https://www.creektree.net/faeryswhim...ckout_shipping) and there's a note there now that the domain name shouldn't be included. Is that right?
Really appreciate the help on this econcepts.
Bob
Hi Everyone!
I'm sure this is going to be a simple question to answer but we will see! I'm running ZenCart 1.3.8. I downloaded and modified one of the free templates from (sorry, site offline). I'm now trying to add Google Analytics and it says to modify the /includes/templates/[your_template]/common/tpl_main_page.php file. The only files that came with the free template are: CSS, images, and a template_info.php file. My question is, where do I put the code? Do I need to copy files from the template_default folder into my custom template folder?
Thanks for your help!
Kristina Marshall
Hi, Kristina ... just create a 'common' folder in the your_template folder, then copy the tpl_main_page.php file to it from the default_template/common folder, and make your changes to the new tpl_main_page.php file. Many changes for Zen Cart custom code can be made similarly, without touching the original code.
Thanks for your help! I do believe I have everything installed correctly. I went in to the admin side of my site and put in the UA code but nothing is showing up in my analytics for my store. Do I need to add a new account in Google Analytics and point it to my store? Will there be more code I need to enter?
Bob,
You can still use the "http:" portion and domain for the url that won't be a problem. Google just recommends the other way (but I do it both).
The best thing to do here might be for me to take a look at what you have in the backend. I'll do some more looking at the front end now that I have links and see if I can't turn anything up.
Hang on ...
Don't know if you need a new account, you may need a new profile, though ... go to your Google Analytics account overview page, click on the account name to get to the profiles. See if the status of profile associated with the UA number is checked in green to show active. Or are there any obvious messages for that profile?
Ok I set up a new profile associated with my store. It gave me the google analytics code which I pasted into the tpl_main_page.php file. Is this where it needed to go? I also updated the UA number in my administrative panel. In my google anayltics account it still says that tracking is not installed. Where am I going wrong? :blink:
Post the link to your site and I'll take a look.
Did you make sure that the tracking code is actually showing on the pages of your site?
One way to check is to view your website in a browser than perform a "view source" to look at the code behind the page.
Scroll to the bottom and see if the "Google Analytics" tracking code is present. If so, then you have the website portion setup correctly but the likely issue lies within the way your Google Analytics account sees it.
If the code is not existent on the bottom of your pages then you didn't properly place the code from "Step 3" of the read me onto your template file (or the correct template file that is.)
We'll get to the bottom of it here.
Post the link and I can point you in the right direction.
I'm running a heavily modded 1.3.8 and just tried installing googly analytics...
I uploaded the files (paying close attn to my custom folder), files went to the right place.
I added the code to my tpl_main_page.php and ran the sql patch...
now my store is GONE. Every page is blank.
Please...please help.
I've already ran the UNINSTALL sql patch and re-uploaded the orig tpl_main_page.php file and my store is still gone!
I need help in a hurry please! I just ran a massive email marketing campaign (my first one!) hence the need to try google analytics today...and people are trying to get on my site right NOW. Oh gosh, this is the worst possible thing to happen!
Disregard my prev post. PROBLEM RESOLVED!!
It was NOT this app that caused the issue. :blush:
It was a plugin from mailchimp called Ecommerce 360 that was causing me grief, and a quick search through these forums pointed me to instructions for debugging/correcting the issue. (Thanks Dr. Byte!)
Everything's fine now, site's up & running.
I'll try to install google analytics again later, after my nerves recover. :-)
Hi,
I have a problem with SGA and ecommerce revenue... I have JAM affiliate installed aswell, and that seems to mess up the GA code, as the JAM has its own tpl_footer (placed in a folder called .../[my template]/checkout_success). That footer overrides the other one, and thus removes the SGA code from checkout success - where I need it to be, to track revenue etc...
Any idea how to work around this?
Yes, the fix for how to integrate the two (JAM and SGA) can be found here:
http://www.zencartoptimization.com/2...-the-workbook/
Scroll all the way to the bottom of the page (in the comments section). I've detailed out how to integrate the two there.
Let me know if you have any questions.
Question: once this is all setup and configured - analytics and conversion tracking done - should the checkout_success page contain some sort of analytics code at the bottom?
I just processed on offline order (the lead was generated through the website but not through the cart) to test everything, and the final checkout_success page contains no tracking code.
edit: tracked the problem: I extracted into my zenCart folder on my HD and missed the google_analytics folder inside includes/templates/my_template (lol)
Stuck it back in, refreshed the checkout_success page, and tracking code is now there. Let's see if it turns up tomorrow.
Works brilliantly.
If I only have a few sales already, is there any way I can enter them manually, at the times they happened?
You can't enter them through Zen Cart unless of course you checkout.
You also can't add them through GA (directly) but might be able to come up with a "fake" thank you page that has the code (goal tracking only ... likely won't work for ecommerce as that is dynamic in nature) hit that page and it should register the sale.
My suggestion would be to simply keep a log of the missed sales since the tracking code and know they are there. Unless there were a ton, it really won't make a difference in the overall picture of things anyhow (bigger samples provide better measurement.)
I have downloaded and installed the files needed, and the SQL patch as per the OP.
I then went to Configuration from the admin panel, then to the Google Analytics, then added my # starting with the UA, UA-50140XX-XX.
We posted the site on a few forums, and according to GA, the site received no traffic, but according to Zen Cart, we got 800+.
Any help as to why this happened would be nice.
Thanks guys.
Two things.
1) Zen cart only tracks "hits". It is not a good indicator of actual traffic received to the site. You need to use Google Analytics to truly get an idea.
This article might help clarify the difference:
http://www.zencartoptimization.com/2...created-equal/
2) Post a URL to your site and I'll see if you have it installed on the page.
3) Did you "verify" the url with GA once you added the tracking? Does Google say "Tracking not installed", "Waiting for Data", or "Gathering Data"?
It says gathering data
www.downlowcaraudio.com
Love this add-on.. Installed like a dream, and I am impressed with the support the author has provided..
Ditto. The "20 ways to increase zen cart conversions" from his site is pure gold. It's not a book you skim through, it's actually taken me a few days to get a few things done - but they're great suggestions. I'll be buying the book he has on the site, and probably using his affiliate link for my new PRWEB release.
I know its been a few days, but I am still having problems.
http://i23.photobucket.com/albums/b3...gaproblem1.jpg
http://i23.photobucket.com/albums/b3...gaproblem2.jpg
Thanks man, any and all help is really appreciated
Hi Eric
Just wanted to say a huge thanks for the add-on, it's brilliant, and is working very well on my site.
One point I need help with is excluding dynamic IP addresses from the Google Filters - I don't want Google tracking internal (my) access. I tend to make one change to my site live, and then click refresh to see the changes, plus I'm navigating around the site CONSTANTLY, trying to test things out etc. It's probably skewing the analytics reports by a HUGE margin!
The suggestion by Google is to "add a page" to the site, and put in this line of code:
In Zen Cart's case, adding a new "page" isn't that obvious. Would it be ok to alter one of the exsisting pages with the code, and reupload it?Code:<body onLoad="javascript:pageTracker._setVar('test_value');">
I presume after activating this filter, it's only valid from configuration point, and is not retrospective is it?
I've just set this up for the first time, and it now successfully say's 'waiting for data'.
I had to put the code into the header php page of my template design. Not a problem though is it?
It seems though, that since installing the addon (but before modifying any of my template files to actually add the code) I noticed that the site no longer displays any products on its welcome screen.
Any reason anyone can think of?? It shows the welcome message, products still show when I navigate to them, but not on the home page.
Please Help!
It says that tracking has not been installed on any of the sites. I confirmed that by going to each site and looking for myself.
Looks like you missed step 3 of the install process (you need to insert a line of code in your "tpl_main_page.php" file for the tracking to actually be displayed on the page.
Make sure you insert that code in the proper template as well (if using a custom one).
That should do it.
Thanks to you both. It's always great to hear these comments. Makes contributing all that worth it!
Glad you found both resources helpful. I enjoyed creating them.
I've just opened a new online coaching program for zen cart users you might be interested in as well. As a member you get all the resources (books, templates additional add-ons etc... for free.)
You can learn more about that here:
http://www.ecommerceamplifier.com/ec...ching-program/
Sounds like you've done something when you tried to enter the code in the header.
You can add it there but the preferred method is to add it as instructed in Step 3 of the install (to the "tpl_main_page.php" file).
I would go back and look at what you altered to make sure you didn't inadvertently delete something on the template that caused your issue.
It should not cause the problems you mentioned and I've never seen that before (thousands of installs without this problem.)
Let me know if you get it corrected r if you need me to look at it further.
Glad you like it. It has come in handy for many.
No need to do that at all (add pages, code etc...) to exclude yourself.
Here is the easiest way to exclude your own traffic from your analytics reports. go to the following link and follow the instructions. Very straight forward and easy to use. Works like a charm.
http://ecommerceamplifier.com/tools/gaexclude/
You must have a tpl_main_page.php as all zen installs contain that file (it is one of the primary files that runs the entire cart.)
You'll find it in the includes/templates/[your template here]/common/ folder.
If you are using a custom template you need to take the tpl_main_page.php from the template_default directory and copy it into your overrides folder then alter as needed.
I went to your site and it says that the tracking is now installed (I also verified that by looking at your source code.)
You need to now go back into your Google Analytics accouunt and "verify" the tracking again (for that profile). That will send out Google to look and verify your tracking is installed.
Once they verify it (a few seconds) you'll see "waiting for data" ... and eventually "gathering data".
You're almost there.
I remember this being mentioned somewhere - but couldn't find it through searches. I just had a customer pay through Paypal, and it didn't track the sale in GA e-commerce. Any way to get it to track the sale when customer pays with Paypal?
As long as the customer is re-rerouted back to your site after the sale then they should be tracked even when paying with PayPal.
I work with a number of store owners who use PayPal in in one way shape or form on their sites and in all cases the sales are tracked ok.
Did you make sure you setup your return url in PayPal to go back to the zen cart site when the payment is complete? If not, you might want to look at doing that. The return url will then trigger the sale.
Hope that helps.
I have installed the version of the SGA Contribution v1.2.2 and using the ltest version of Zen Cart. I already had a Google Analytics Account along with Adwords. I use PayPal as my processor. I have a regular website were a "buy now" link takes you to my Zen Cart store. I am using a custom template and made the necessary modifications.
I clicked thru one of my ads and made a purchase thru my store without error. I did this twice yesterday and do not see it tracked.
I followed the directions according to the contribution. I placed the contents of both the Admin and Includes folders into the respective locations. Was I supposed to just place the folders themselves into the main directory of the store? Am I supposed to modify "checkout success" page? My web is www.blackoutez.com.
:frusty:
Thanks in advance
I can't figure this out. I have set up GA and this mod, tracking is working but no purchase info is being tracked.
I ran a test order and verified that this code is at the bottom of the 'checkout_success' page.
I am trying to understand GA Funnels and Goals, but do I need to set a Goal and a Funnel for this transaction tracking to work?HTML 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-1412881-2");
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans(
"24",
"",
"91.88",
"3.40",
"0.00",
"Aurora",
"Colorado",
"United States"
);
pageTracker._addItem(
"24",
"180",
"Discovery",
"Wine of the Month Club Full Year",
"85.00",
"1"
);
pageTracker._trackTrans();</script>
One thing that has me very unsure is that I have my ZC installed in the /shop subdirectory, so in GA I set the site as:
http://www.mysite.com/shop/
and home page as index.php, index.php?mainpage=, index.php?mainpage=index
Any GA gurus know what I'm doing wrong here???:shocking:
Some thoughts to make sure you didn't miss anything:
1) Did you turn on "Conversion Tracking" from within the Zen Cart admin and also enter your Adwords conversion tracking id?
2) Did you turn on conversion tracking and copy the proper tracking id from the Adwords account? (You'll insert this tracking id into the Zen Cart admin under the "Conversion Tracking" text section.
3) You do not need to alter the checkout success page etc... (my contribution automatically does that for you as long as you turn on the proper elements from within the Config section of the zen admin for SGA.)
4) Have you setup a cookie on your computer to exclude your IP or address from the reports? If so your conversion won't track.
Let me know if that helps.
To track the products and the amount of them you need to turn on Ecommerce Tracking (from within your Google Analytics Account).
My contribution automatically handles ecom tracking providing you have it turned on from within your GA account. You do this form under the "Profile" section of the site you wish to add.
You do NOT need to setup Goals or Funnels for Ecom transactions to work. They are handy to have but are a totally separate tracking feature provided by Google Analytics (triggered and based upon url usually).
It doesn't matter if you have your cart in a subdirectory or not as long as you setup your goals to point to the proper location (and then properly setup your funnels to do so as well.)
In short though you do not need to set up those two in order for the transaction (ecom portion) to work.
Here are two links that might help you figure out how to make it work:
Google Analytics Demystified: Part 5 Goal Tracking and Funnels
Google Analytics Uncovered for Zen Cart
Glad to see it's now working for you. :)
Riiight... I think I did what I was supposed to, but I have two problems now. First, I didn't find the yourdomainhere in the code, and second, the footer is messed up on my site (www.hjemmemamma.com/nettbutikk).
Where did I go wrong?
"yourdomainhere" refers to your actual domain (replace that text with your actual domain name.)
I looked at your site and it does not appear that you have the Google tracking installed at all now.
What you need to do is follow the instructions at the link I provided very closely. That should get you exactly what you need.
Let me know if that helps.
This is the code at the bottom of that link:
There's no "yourdomainhere" to replace..?PHP Code:
< ?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
< ?php
if ($_GET['main_page']=="checkout_success") {
##########################################
## START JAM INTEGRATION WITH ZEN CART ##
## ZC Integration code by DrByte 8/2006 ##
##########################################
if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {
if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {
$_SESSION['affiliate_order_id'] = $zv_orders_id;
$commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');
echo '';
}
}
#######################################
## END JAM INTEGRATION WITH ZEN CART ##
#######################################
} // end if for determining if this was the checkout_success page.?>
Earlier today I tried replacing the jam part with the code I already had, and removed that space between < and ? at the top. The footer looks fine again, but I just ran a test and jam is not working. GA tracked up until yesterday, and some today as well, though I'm not sure those hits came before I changed the code. The e-commerce tracking is still down.
Now I've tried once more, doing exactly like it said - without putting my domain in there, as there was no where to put it. If you look at my site again, you'll see that the footer is a mess and that GA and JAM probably are non-functioning as well... I'll leave it like that for a few hours, but I'll have to start looking for another program if I can't get this to work... *desperate*
'
Unicorn - replace all the < ?php with <? php and see where that gets you.
We gota go one step at a time here. You need to fix the spaceing on the php tag, what you have is just wrong, thats why it displays in the footer instead of actualy running. Once you put it that way on the site, we can look at what else the code is doing to try to find and fix the error.
I just tried a test checkout on your page (which looks fine now), but it it not running the google code. Did you remove it?
Thanks for trying! :)
No, I didn't... I too discovered that it was gone, so I re-installed the module, but nada... Luckily one of my computer savvy friends was online last night, so I gave him admin access, ftp info and everything. Now GA works fine, with ecommerce up and running. Don't know about the Jam just yet, I'll have to run a sale test through an affiliate link, but for some reason the cookies on this laptop are non-functioning as well... :blink:
Unicorn.
It sounds like when you tried to do the first alteration you inadvertently removed something that should have stayed.
Blank pages and footers that become strange are usually a result of incorrect or missing PHP (or HTML) info.
If you PM me your server login details and your Zen Cart Admin details I can take a look for you.
The install is pretty straight forward.
Shoot me that info and I'll see what I can do for you.
:)
Unicorn.
Go back to my post and check it out again. A user just brought it to my attention that the "yourdomainhere" portion was not in the post.
I determined that this was because my system hid that portion for security reasons. I added a space (and additional notes to step 2 that should clarify.)
Let me know if it helps.
Nope, GA ecommerce is not working.
Ecommerce tracking is automatically built into my application.
To activate it though you need to let Google know that you want to track ecommerce transactions. You do that from your Profile page within Google Analytics. Tell Google "Yes" I am an ecommerce site.
You may also want to consider this as a resource:
http://www.zencartoptimization.com/2...-the-workbook/
The JAM affiliate thing is not part of the book (yet) but again, if you send me the login info for your site I'll have it up and running pretty quickly.
It was, and it did. But it stopped, as soon as I got Jam working (before, it was the same problem there, as Jam tracked hits and no sale). That is excactly why I'm so desperatly trying to get this to work, because I really need both to track hits AND sales... :frusty:
I'm sending you the info, and wishing you luck. :)
Just got the info (3 minutes ago.) Done. :)
You should be good to go now.
Your problem was that you were mixing up directories and had some stuff (the JAM code) still in the "checkout_success" directory under your "classic" template folder. This should have been removed.
Once I removed that and checked the info in your actual template directory (lavender) it all looked fine.
You'll have to complete a sale to see if it works but I'd very inclined to say it does now.
Let me know.
Aaaaah, thank you, thank you, thank you!!! :D
Just ran a test, and jam works perfectly. Still a bit too early to tell with GA, but I'm optimistic! Yay!! :)
See, I switched templates a while back, and must have left the jam behind and forgotten all about it when I put it up in the new template.
No problem. Glad it's working for you. :)
I have installed Google Analytics for my site at www.babooshkaboutique.com Google Analytics shows that it is receiving data. It even shows I am receiving date when I remove my google analytics number from the module. I have went as far as to setting up another GA account, when I do that I can never get GA to say that it is receiving data on the new account.
Since setting it up GA shows that I have only had 1 hit, but I have steadily been making sales.
Could someone help me with what may be going wrong? The code in my GA account is the same as what I have entered in the admin panel.
Are you sure you are using the Simple Google Analytics Module? That is the one I created and the one this support thread is for.
There is another Google Analytics integration module that I have heard can cause various problems for users. From the look of your source code (I went to your site) it looks like that is the one you are using.
My module is a simple and quick install (You will need to remove the other one) and it works without flaw (providing you remove the other one).
The module that this support thread is for can be found here:
http://www.zen-cart.com/index.php?ma...roducts_id=412
Is it possible to pay you to install this?
Yeah, I read the install readme .txt and now I'm wondering the same thing. Is it possible to pay you to install this?
Seriously folks.. this is the EASIEST of the Google Analytics add-ons to install.. and it works INSTANTLY!!! Now if you REALLY wanna pay someone......:laugh::laugh: but seriously.. you really should be able to install this with NO issues..:yes:
Thanks for the compliment. I tried to make it as easy as possible and I have heard it is by far the easiest to install of all GA modules (and one of the few that actually works the way it should.)
I appreciate the feedback and am glad to see it acts and installs the way I intended it to.
:)
OK, I've read through most of this thread, but still need some help.
I have had this mod installed on my site since around January of this year. It has worked great for traffic, but the ecommerce tracking is way off, and I can't figure out why.
Some info:
-I have ecommerce marked to "yes" in GA.
-I am using the latest version of ZC and SGA.
-Again, the traffic info tracks just fine.
-I accept Paypal, Google Checkout, checks/money orders, and credit cards through Paypal Pro
-I have tried both urchin and the other code, neither seem to make a difference
Now, here's the weird part. I average around 20 orders per day, but only about 1 every few days shows up in ecommerce tracking in GA. When I put through a test order, I do not see any SGA code in the page source, but it is obviously sometimes working, since some random orders do get captured by GA. The orders that are captured do not correspond to any particular payment method and appear to be randomly distributed among the available methods.
Here are my settings:
Analytics Account XXXXX <---I have this as the correct ID
Target Address delivery
Affiliation Info
Use sku/code products_id
Activate Conversion Tracking No
Use Older "urchin.js" Tracking Code No
Google AdWords Conversion Tracking Number
Google AdWords Language en_US
The site is goinggear.com and I would appreciate any help anyone could throw my way. I'm sure I missed a simple step and made a dumb mistake, but I can't figure out what it is even after checking the files again and again. I am thinking maybe it is a setting in ZC, but after reading the tutorials and descriptions for each, I can't figure out what it might be.
GoingGear,
Looks like you don't have the initial code installed correctly on the site. I go to your site and from the home page do a view source. I see no Analytics code anywhere.
I suspect this is because you have an issue with your footer. I also noticed that while looking at your source. It appears that your footer shows on some pages (like product pages) but not on others (like the home page etc...) This will cause inconsistencies in reporting.
If you look at your source you'll see it stops dead at the following "What's New" section:
Just stops. This is likely because something else you installed (probably directly after the what's new section) is causing the page to stop loading. It might be under certain browsers or all, it might be sporadic or not (I can't tell) but that is definitely one issue.Quote:
<!--// bof: whatsnew //-->
<div class="rightBoxContainer" id="whats_new" title="New Products" style="width: 150px">
<div class="ctrlsclose3"><a href="#"><span class="closeright"></span></a></div>
<div class="ctrls"><a href="#"><span class="min minmaxright"></span></a></div>
<h3 class="rightBoxHeading" id="whatsnewHeading">New Products</h3>
<div class="sideBoxContent centeredContent"><a href="http://goinggear.com/index.php?main_page=product_info&cPath=14_46&products_id=348"><img src="images/tiabloaceg.jpg" alt="Tiablo ACE-G CREE MC-E Flashlight" title=" Tiablo ACE-G CREE MC-E Flashlight " width="100" height="75" /><br />Tiablo ACE-G CREE MC-E Flashlight</a><div>$147.99</div></div><div class="sideBoxContent centeredContent"><a href="http://goinggear.com/index.php?main_page=product_info&cPath=14_44&products_id=347"><img src="images/nitecoredi.jpg" alt="NiteCore Defender Infinity CREE XP-E R2 LED Flashlight" title=" NiteCore Defender Infinity CREE XP-E R2 LED Flashlight " width="100" height="75" /><br />NiteCore Defender Infinity CREE XP-E R2 LED Flashlight</a><div><span class="normalprice">$82.99 </span> <span class="productSpecialPrice">$65.00</span><span class="productPriceDiscount"><br />Save: 22% off</span></div></div><div class="sideBoxContent centeredContent"><a href="http://goinggear.com/index.php?main_page=product_info&cPath=14_46&products_id=349"><img src="images/tiablorps.jpg" alt="Tiablo A10/ACE Remote Pressure Switch" title=" Tiablo A10/ACE Remote Pressure Switch " width="100" height="67" /><br />Tiablo A10/ACE Remote Pressure Switch</a><div>$20.00</div></div></div>
<!--// eof: whatsnew //-->
Here are some other things to do after you correct that:
1) Use the urchin code to get more accurate results on ecommerce tracking (the ga.js version has a bug on GOOGLE's end that to date I have yet seen corrected by them. As a result the ecommerce tracking results can be off.)
The rest sounds like you are ok.
Report back here and let me know if this helps.
Thanks!
Just to add my two cents to what econcepts just said. A simple mistake in php coding, in a sidebox for example, like a missing semi-colon or a single-quote character out of place or missing can cause this kind of behavior, too.
I added a custom sidebox (a twitter latest-tweets box) and made a simple mistake like that - messed all kinds of things up 'below' that code.
Also, make sure your analytics code isn't inside of a conditional statement (an 'if' block, for example).
This is a great add on! :bigups: