Currently, it populates the global variable
window.WCPAYLOAD with an object structure which, at a minimum, has a member
type which determines the structure.
The possible values for
checkout are nearly identical and place the majority of the values in the
order-confirmation is similar, but places the majority of the values in the
You can view the source file
output-samples.php in the plugin directory to see samples of the structure that is output. Values and types should be self-explanatory, they are output directly using WooCommerce API calls.
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the plugin from Plugins page.
There is currently no configuration of this plugin, but to confirm it’s working you can view the source of the cart, checkout, and order confirmation page and look for a global variable called WCPAYLOAD on the page. If you find it, it’s working.
- WooCommerce 2.0
- PHP version 5.3 or greater
- Does it work with WooCommerce 2 and WooCommerce 3?
Yes, there are compatibility code written which detects what’s available and then does the right thing. Testing with WooCommerce 2 has not been extensive so if you find issues, please contact us and report any bugs. We like to be responsive.
- I installed it but it doesn’t seem to do anything?
It doesn’t do anything on its own; it simply updates your page state so that a global variable
WCPAYLOADis set to the current cart state, or order confirmation state. You need to then connect this to your preferred analytics package to add the events as you wish.
- Would you add a feature which does X?
Yes, probably. If you don’t ask you don’t get.
- I notice you don’t have any advertising or anything, what’s that about?
No one actually asks this question, but I found the other plugins out there which have advertising and «Pro» upgrade plans to be annoying. So I wrote this. Enjoy.
There are no reviews for this plugin.
Contributors & Developers
“Conversion Tracking for WooCommerce” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
Version 1.0.2 (27-July-2018)
- Version bump didn’t seem to take, so trying again with new version number.
Version 1.0.1 (25-July-2018)
- Fixed issue with
customervalue not being populated for guest orders. Updated
readme.txtto fix layout issue.
Version 1.0.0 (10-July-2018)
- Initial release