2017 © Pedro Peláez
 

wordpress-plugin woocommerce-order-datalayer

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

image

framecreative/woocommerce-order-datalayer

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  • Friday, January 12, 2018
  • by framecreative
  • Repository
  • 2 Watchers
  • 3 Stars
  • 384 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 10 Versions
  • 34 % Grown

The README.md

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., (*1)

Requirements

  • Wordpress 4.0+
  • Woocommerce 3.0+
  • PHP 5.6+

Install

Via Composer

composer require framecreative/woocommerce-order-datalayer, (*2)

Manually

Download and install into your plugins folder, (*3)

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, (*4)

The Versions

12/01 2018

dev-master

9999999-dev

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

18/08 2017

1.4.1

1.4.1.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

24/07 2017

1.4.0

1.4.0.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

06/07 2017

1.3.2

1.3.2.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

06/07 2017

1.3.1

1.3.1.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

06/07 2017

1.3.0

1.3.0.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

05/07 2017

1.2.0

1.2.0.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

05/07 2017

1.1.1

1.1.1.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

05/07 2017

1.1.0

1.1.0.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative

05/07 2017

1.0.0

1.0.0.0

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

  Sources   Download

MIT

The Requires

 

by Frame Creative