Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › E-Commerce Data not showing in Google Analytics
Tagged: Google Analytics, stats, tracking code
- This topic has 10 replies, 4 voices, and was last updated 13 years, 8 months ago by amin007.
-
AuthorPosts
-
March 9, 2011 at 1:37 pm #2844etzhaimMember
Hello,
I have followed all the relevant instructions in the guides and checked the forum for answers to other users.
– I do have an Analytics account working properly.
– I do have E-Commerce Tracking enabled in my Analytics account.
– I have checked the “Enable Google Analytics Tracking” checkbox in the setting menu of the WP eStore plugin.
– I do have “Auto Return” turned ON in my Paypal profile with proper PDT setup.
My configuration is as follows:
– I’m using Thesis Theme 1.8 with WordPress 3.0.5.
– I use Shopping Cart with WP eStore 5.0.0
I’m using the following plugins:
* Breadcrumb NavXT 3.8.1
* Broken Link Checker 1.2.4
* Disqus Comment System 2.61
* Enable Media Replace 2.4.1
* Exec-PHP 4.9
* GetSocial 1.3.1
* Google Analyticator 6.1.2 (I have changed from Google Analytics For WordPress 4.0.9 after few transactions did not show up)
* Google XML Sitemaps 3.2.4
* Mad Mimi for WordPress 1.4.3
* PdAlex Glossary 1.3.1
* Redirection 2.2.3
* TinyMCE Advanced 3.2.7
* W3 Total Cache 0.9.1.3
* WP Smush.it 1.3.4
* WP Title 2 3.6
I have copied the code of the last 2 transactions which have NOT been tracked by Analytics. From a quick check that I have done, it seems that WP eStore does not place the proper Analytics parameters in the Thank You page.
My website is: http://www.etzhaim.net/
Please let me know.
March 9, 2011 at 11:01 pm #29964wpCommerceModeratorCan you please share the code of the last transactions?
March 10, 2011 at 12:32 am #29965amin007ParticipantThe eStore plugin calls a hook to add transaction tracking code to the Analytics plugin. Different analytics plugin will have different hooks. The current eStore implementation expects the presence of a particular Google Analytics plugin mentioned in the instruction.
It is possible to integrate it with any analytics plugin but I will need to code it accordingly. Do you know if the one that you are using has a option for 3rd party plugins to add its transaction tracking code?
March 10, 2011 at 4:44 am #29966etzhaimMemberI can switch back to Google Analytics for WordPress version 4.0.9 any time but is not going to change anything.
The Analytics code of last transaction was:
<script type="text/javascript">var analyticsFileTypes=['zip'];var analyticsEventTracking='enabled';</script> <script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-3168489-4']);_gaq.push(['_trackPageview']);(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 will switch back to recommended plugin and wait for next transaction
Thanks
March 10, 2011 at 1:47 pm #29967jessie.m.davisMemberI have to agree with etzhaim and I am using Google Analytics for WordPress and I’ve never been able to get my eCommerce tracking to work. I followed the instructions exactly as they were stated and I can’t get it to work.
March 11, 2011 at 2:55 am #29968amin007ParticipantYoast’s Google analytics plugin is really good but after version 4 it introduced a few bugs. He has released 9 patches after that version but it is still not working on some sites. Its an external plugin so I can’t really force him to do anything but if you find any other good WP Google Analytics plugin that allows a shopping cart integration I will do the integration on eStore side and offer that as an option.
March 13, 2011 at 5:34 am #29969etzhaimMemberHere is the code of the last transaction, as you can see WP eStore has done its job this time:
<script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-3168489-4']);</script><script src="http://www.etzhaim.net/wp/wp-content/plugins/google-analytics-for-wordpress/custom_se_async.js" type="text/javascript"></script> <script type="text/javascript">_gaq.push(['_setCustomVar',1,'tags','',3],['_trackPageview'],'_addTrans','4HG40293SE529221F','Etz Haim','3.99','0.00','0.00','Prato','PO','Italy','_addItem','4HG40293SE529221F','1','The Secrets Of Your Birthday (epub - iPad/iPhone)','','3.99','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>
But, still, I cannot see any transaction on Google Analytics E-Commerce part.
I have been able to track the Thank You page Analytics by creating a specific Goal to it.
This is kind of frustrating.
Any clue?
March 13, 2011 at 5:35 am #29970etzhaimMemberBy the way, I forgot, I switched back to Google Analytics For WordPress 4.0.9 which is the one I am using now.
March 13, 2011 at 5:38 am #29971etzhaimMemberThe strange thing I have noticed are the double square brackets and that are surrounding all the information given by WP eStore to the plugin.
Therefore, I insist that the problem is on your side, no matter which plugin we use.
March 14, 2011 at 2:16 am #29972amin007ParticipantI think Yoast may have changed how the push works in the analytics plugin. I will investigate this and see what I find.
March 14, 2011 at 6:46 am #29973amin007ParticipantI have made some changed to the eStore plugin which I think should fix it. Download a new build from here and give it a go:
-
AuthorPosts
- You must be logged in to reply to this topic.