{"id":88590,"date":"2018-07-15T19:39:58","date_gmt":"2018-07-15T19:39:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/conversion-tracking-for-woocommerce\/"},"modified":"2019-06-17T22:35:37","modified_gmt":"2019-06-17T22:35:37","slug":"conversion-tracking-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/ms.wordpress.org\/plugins\/conversion-tracking-for-woocommerce\/","author":16039933,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"5.2.24","requires":"4.0","requires_php":"5.3","requires_plugins":"","header_name":"Conversion Tracking for WooCommerce","header_author":"Kent Davidson","header_description":"Outputs JavaScript variables for various steps in your order process, making it very easy to integrate with most analytics packages.","assets_banners_color":"f8f5f3","last_updated":"2019-06-17 22:35:37","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/marketacumen.com\/?crcat=wp-plugin&crsource=conversion-tracking-for-woocommerce&crcpn=plugin&crkw=plugin-uri","header_author_uri":"https:\/\/marketacumen.com\/?crcat=wp-plugin&crsource=conversion-tracking-for-woocommerce&crcpn=plugin&crkw=author-uri","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1438,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>N\/A<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1909511","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1909511","resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":"1909511","resolution":"","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1909511","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[701,888,282,550,286],"plugin_category":[36,45],"plugin_contributors":[159288],"plugin_business_model":[],"class_list":["post-88590","plugin","type-plugin","status-publish","hentry","plugin_tags-commerce","plugin_tags-e-commerce","plugin_tags-ecommerce","plugin_tags-tracking","plugin_tags-woocommerce","plugin_category-analytics","plugin_category-ecommerce","plugin_contributors-marketacumen","plugin_committers-marketacumen"],"banners":{"banner":"https:\/\/ps.w.org\/conversion-tracking-for-woocommerce\/assets\/banner-772x250.png?rev=1909511","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/conversion-tracking-for-woocommerce\/assets\/icon.svg?rev=1909511","icon":"https:\/\/ps.w.org\/conversion-tracking-for-woocommerce\/assets\/icon.svg?rev=1909511","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>This plugin requires WooCommerce to operate.<\/strong> Instrumenting analytics for your cart should be straightforward and use standard JavaScript. This plugin aims to solve this to allow you to use your own JavaScript or a tag management solution to integrate your analytics tracking. The idea is that the page outputs the variables you need, sanitized and ready to consume in JavaScript, and you simply pass them along to the analytics packages.<\/p>\n\n<p>This plugin does not do anything except publish the values you need as JavaScript variables; to make it useful you need to incorporate it into an analytics package and refer to the variables.<\/p>\n\n<p>Currently, it populates the global variable <code>window.WCPAYLOAD<\/code> with an object structure which, at a minimum, has a member <code>type<\/code> which determines the structure.<\/p>\n\n<p>The possible values for <code>type<\/code> are:<\/p>\n\n<ul>\n<li><code>cart<\/code><\/li>\n<li><code>checkout<\/code><\/li>\n<li><code>order-confirmation<\/code><\/li>\n<\/ul>\n\n<p>The types <code>cart<\/code> and <code>checkout<\/code> are nearly identical and place the majority of the values in the <code>cart<\/code> member. <code>order-confirmation<\/code> is similar, but places the majority of the values in the <code>order<\/code> member.<\/p>\n\n<p>You can view the source file <code>output-samples.php<\/code> 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 <strong><a href=\"https:\/\/docs.woocommerce.com\/wc-apidocs\/package-WooCommerce.Classes.html\">WooCommerce API<\/a><\/strong> calls.<\/p>\n\n<h4>Contribute<\/h4>\n\n<p><a href=\"https:\/\/github.com\/razzed\/conversion-tracking-for-woocommerce\">Github<\/a><\/p>\n\n<h4>Author<\/h4>\n\n<p><a href=\"https:\/\/github.com\/razzed\">Kent Davidson<\/a><\/p>\n\n<!--section=installation-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<h4>Minimum Requirements<\/h4>\n\n<ul>\n<li>WooCommerce 2.0<\/li>\n<li>PHP version 5.3 or greater<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Does it work with WooCommerce 2 and WooCommerce 3?<\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt>I installed it but it doesn't seem to do anything?<\/dt>\n<dd><p>It doesn't do anything on its own; it simply updates your page state so that a global variable <code>WCPAYLOAD<\/code> is 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.<\/p><\/dd>\n<dt>Would you add a feature which does X?<\/dt>\n<dd><p>Yes, probably. If you don't ask you don't get.<\/p><\/dd>\n<dt>I notice you don't have any advertising or anything, what's that about?<\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>Version 1.0.2 (27-July-2018)<\/h4>\n\n<ul>\n<li>Version bump didn't seem to take, so trying again with new version number.<\/li>\n<\/ul>\n\n<h4>Version 1.0.1 (25-July-2018)<\/h4>\n\n<ul>\n<li>Fixed issue with <code>customer<\/code> value not being populated for guest orders. Updated <code>readme.txt<\/code> to fix layout issue.<\/li>\n<\/ul>\n\n<h4>Version 1.0.0 (10-July-2018)<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Outputs WooCommerce variables on the cart, checkout, and order confirmation pages as a global named WCPAYLOAD to make integration with analytics and c &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/88590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=88590"}],"author":[{"embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marketacumen"}],"wp:attachment":[{"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=88590"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=88590"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=88590"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=88590"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=88590"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ms.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=88590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}