GTM for WooCommerce Plugin Reference
Detailed information about plugin requirements, supported eCommerce events and properties.
Requirements
These are basic requirements that needs to be present in order to make the plugin work.
WordPress version | 5.1.0 - 6.0.0 |
WooCommerce version | 4.0 - 6.6.1 |
PHP | 7.2 - 8.1 |
Frontend Events
Event name | Plugin version | Description | Properties |
view_item_list | PRO | When list of products is viewed by user. It can be category product listing or related products on single product page. |
|
select_item | PRO | When a product is selected (clicked) in a products list. |
|
view_item | PRO | When a single product page and details are viewed. |
|
add_to_cart | FREE (PRO improves support for variable products) | When a product is added to a cart. Can happen on a list or single product page. |
|
remove_from_cart | PRO | When a product is removed from a cart on a cart page. |
|
being_checkout | PRO | When first checkout page is visited. |
|
purchase | FREE (PRO prevents events duplication) | When an order confirmation page with transaction details is visited |
|
Properties
These are all properties that are supported by the plugin and tracked for the events documented above.
Items
Property name |
Description |
item_name | Product name |
item_id | Product id (WooCommerce internal id, can be changed to SKU - learn more here) |
price | Product price (one item) |
quantity | Quantity of products (applicable to cart, checkout and purchase related events) |
item_coupon | |
item_variant | |
item_list_name | |
item_list_id | |
index |
Property name | Description |
transaction_id | Unique transaction id assigned by WooCommerce |
affiliation | WooCommerce shop name |
value | Total transaction value including tax and shipping (applicable for purchase event only) |
tax | Amount of tax for the transaction if any. |
shipping | Amount paid for shipping service. |
currency | Currency of the transaction. |
coupon | Promotional coupon code if used. |
Property name | Description |
value | Total value of all items considered for given eCommerce event (all events with items array except purchase where value is computed differently - see above). |