Download the PHP package framecreative/woocommerce-order-datalayer without Composer
On this page you can find all versions of the php package framecreative/woocommerce-order-datalayer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download framecreative/woocommerce-order-datalayer
More information about framecreative/woocommerce-order-datalayer
Files in framecreative/woocommerce-order-datalayer
Download framecreative/woocommerce-order-datalayer
More information about framecreative/woocommerce-order-datalayer
Files in framecreative/woocommerce-order-datalayer
Vendor framecreative
Package woocommerce-order-datalayer
Short Description Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.
License MIT
Package woocommerce-order-datalayer
Short Description Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.
License MIT
Please rate this library. Is it a good library?
Informations about the package woocommerce-order-datalayer
Woocommerce Order to Datalayer
Pushes completed orders into a javascript object named datalayer
into the wp_head()
for Google Tag Manager to use.
Outputs the order details into the dataLayer on the receipt page then sets a meta value into order post called _ga_tracked
so the dataLayer is not outputted twice if the user refreshes.
Requirements
- Wordpress 4.0+
- Woocommerce 3.0+
- PHP 5.6+
Install
Via Composer
composer require framecreative/woocommerce-order-datalayer
Manually
Download and install into your plugins folder
Features
- Use filter
woocommerce_order_datalayer
to add objects to the dataLayer before it is outputted. - Adds order meta to track that the dataLayer has been triggered already.
DataLayer contains:
- transactionId
- transactionDate
- transactionType: 'sale'
- transactionAffiliation
- transactionTotal
- transactionShipping
- transactionTax
- transactionPaymentType
- transactionCurrency
- transactionShippingMethod
- transactionPromoCode
- ecomm_totalvalue
- event: 'orderCompleted'
- ecomm_prodid: [ids]
- ecomm_pagetype: 'purchase'
- transactionProducts:
- id
- name
- sku
- category
- price
- currency
- quantity
All versions of woocommerce-order-datalayer with dependencies
PHP Build Version
Package Version
Requires
composer/installers Version
~1.0
The package framecreative/woocommerce-order-datalayer contains the following files
Loading the files please wait ....