Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › Google Analytics Not Tracking Properly
Tagged: e-commerce, ecommerce, ecommerce tracking, Google Analytics, tracking, WP eStore
- This topic has 33 replies, 11 voices, and was last updated 9 years, 6 months ago by devastator.
-
AuthorPosts
-
July 17, 2010 at 3:19 am #1508IvyMember
If your Google Analytics is not tracking properly please ask yourself the following questions:
1) Do you have your Google analytics account set up to tack your eCommerce (this option will be turned off by default in your Analytics profile)?
2) Do you have the “Enable Google Analytics Tracking” checkbox checked in the setting menu of WP eStore plugin?
3) Are you using any other Analytics plugin on your site? If so is
this plugin working correctly?
Sometimes a broken analytics plugins can cause all analytics related tracking to be broken.
4) Are you checking your ecommerce analytics immediately after a sale?
Please note that there is a delay in your Google Analytics stats display so the transactions won’t appear instantly after payment.
July 27, 2010 at 7:11 am #22503DFranzwaMemberRegarding #2) “Do you have the “Enable Google Analytics Tracking” checkbox checked in the setting menu of WP eStore plugin?”
Having a wee bit of an issue here. There is no “Enable Google Analytics Tracking” checkbox in my settings, under 3rd party integration or anywhere else.
I’m running WP eStore Settings v 2.9.8 and still running under wp 2.9.2 Would not bringing WP up to 3.0 cause that not to show?
I do have G.Analytics set up as well as Google Analytics for WordPress plugin activated.
Thanks, Dave
July 27, 2010 at 8:17 am #22504IvyMemberHi Dave, I believe you need an eStore update. Please see the following post on how updates work:
https://support.tipsandtricks-hq.com/forums/topic/how-and-when-do-you-get-an-update
July 28, 2010 at 3:04 am #22505DFranzwaMemberHi Ivy, Thanks for that little piece of advice. I have submitted the update form.
March 28, 2011 at 8:40 am #22506jaylatSpectatorQuestion – if I uncheck the “Auto Redirect” then my customer must click on the link to get back to my web site, right? My concern is that I have overseas non-English speaking buyers who might not know where to click.
My analytics aren’t tracking but I can see from this post that to get them working I have to force my customer to click to get his product (assuming the email doesn’t go through). So I have to choose between (1) auto return and (2) working google analytics? Is there any other way around this?
March 29, 2011 at 12:04 am #22507amin007ParticipantYou don’t have to uncheck the auto redirecto to get Analytics working (this post was a little outdated.. I just updated it).
Make sure you have a recent build of eStore (you can get one from here):
https://support.tipsandtricks-hq.com/update-request
And then follow what this page says:
http://www.tipsandtricks-hq.com/ecommerce/google-analytics-e-commerce-tracking-for-wp-estore-850
Remember, you need to wait a few hours before the sale will be shown in your Analytics account (Google Analytics shows a delayed report).
If its still now working do a test transaction then when you land on the “Thank You” page do a “View Page Source” of this page and find out the Google analytics tracking section. You can find this code by searching for the following in this HTML source:
// Google Analytics for WordPress
Post the code you see there. This will help me see if the product details are actually sent to the analytics plugin for tracking.
March 31, 2011 at 6:08 am #22508jaylatSpectatorHi Key Master,
Thanks, checked everything on the list and still not working after several sales and a 2 day delay. I’ve put through a transaction and found the following code (I hope this is what you are looking for):
// Google Analytics for WordPress by Yoast v4.0.10 | http://yoast.com/wordpress/google-analytics/
var _gaq = _gaq || [];
_gaq.push();
_gaq.push([‘_tra// Google Analytics for WordPress by Yoast v4.0.10 | http://yoast.com/wordpress/google-analytics/
var _gaq = _gaq || [];
_gaq.push();
_gaq.push(,‘_addTrans’,’04Y20737NG172835N’,’Comics by DreamTales’,’5.00′,’0.00′,’0.00′,’York’,’PA’,’United States’,‘_addItem’,’04Y20737NG172835N’,’1′,’Suzy & Frank II’,”,’5.00′,’1′,‘_trackTrans’);
(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
//]]></script>
March 31, 2011 at 11:10 pm #22509amin007ParticipantThank you for sharing that code. Look like your eStore update didn’t work properly or you didn’t do it.
Make sure you get a build of eStore from here:
https://support.tipsandtricks-hq.com/update-request
See the double [[ in the code? that needs to be one [
'_addItem','04Y20737NG172835N','1','Suzy & Frank II','','5.00','1','_trackTrans'
April 2, 2011 at 12:42 am #22510jaylatSpectatorThanks, that fixed it!
April 17, 2011 at 3:00 pm #22511bowerstechMemberHi Ivy, the e-commerce tracking was working for my site (http://keepyourfamilysafeonline.com) for the first 2-4 days, but for more than a week transactions have not been recorded.
I did the test transaction but the // Google Analytics for WordPress was not found in the source of the return page??
April 17, 2011 at 10:55 pm #22512amin007ParticipantI don’t see any analytics code on any of your pages. Do you have the Google Analytics plugin active? Make sure it doesn’t have any warning in the dashboard that says (you need to complete a step).
When the plugin is running and tracking your page views you should be able to view the page source and see the analytics tracking code in every page.
April 18, 2011 at 12:25 am #22513bowerstechMemberNo errors in the plugin. I noticed it was set to manual so I changed to header. Here is what I get now in the code:
<script type=”text/javascript”>//<![CDATA[
// Google Analytics for WordPress by Yoast v4.0.13 | http://yoast.com/wordpress/google-analytics/
var _gaq = _gaq || [];
_gaq.push();
_gaq.push(,,,);
(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
//]]></script>
So far it has not recorded the transaction in Analytics. Did the test about 5 minutes ago.
April 18, 2011 at 2:17 am #22514bowerstechMemberHmm. It appears to be working now. Thanks
August 25, 2011 at 6:58 pm #22515njevicSpectatorI’m also having troubles getting the e-commerce to work.
Check that e-Commerce is enabled on Analytics; is enabled in eStore; have Google Analytics for WordPress up.
I am on 5.0.0 eStore.
Below is my Google Analytics from one of my pages:
<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push();
_gaq.push();
(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
I don’t see
“<script type=”text/javascript”>//<![CDATA[
// Google Analytics for WordPress by Yoast v4.0.13 | http://yoast.com/wordpress/google-analytics/”
at the beginning of the analytics scripts like bowerstech in the post above…
I thought my problem might have been that I have the actual analytics code pasted in the tracking scripts section of the site (I also have scripts for Get Clicky and Piwik), but I deleted all of these scripts and updated Yoast’s plugin – but when I view the source code, I don’t see any Google Analytics code.
Thanks,
Nick
August 30, 2011 at 6:10 am #22516 -
AuthorPosts
- You must be logged in to reply to this topic.