跳到内容

Conversion Tracking for WooCommerce

v1.0.2

marketacumen · 2018年7月15日 上架

Outputs WooCommerce variables on the cart, checkout, and order confirmation pages as a global named WCPAYLOAD to make integration with analytics and c …

正在使用
10+
评分
暂无
累计下载
1,714
最近更新
2019年6月18日
需要 WordPress 4.0+已测试到 5.2.31PHP 5.3+

贡献者

This plugin requires WooCommerce to operate. 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.

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.

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 type are:

  • cart
  • checkout
  • order-confirmation

The types cart and checkout are nearly identical and place the majority of the values in the cart member. order-confirmation is similar, but places the majority of the values in the order member.

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.

Contribute

Github

Author

Kent Davidson

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums