PHPackages                             framecreative/woocommerce-order-datalayer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. framecreative/woocommerce-order-datalayer

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

framecreative/woocommerce-order-datalayer
=========================================

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

1.4.1(8y ago)111.1k3[1 issues](https://github.com/framedigital/woocommerce-order-datalayer/issues)MITPHP

Since Jul 5Pushed 8y ago4 watchersCompare

[ Source](https://github.com/framedigital/woocommerce-order-datalayer)[ Packagist](https://packagist.org/packages/framecreative/woocommerce-order-datalayer)[ RSS](/packages/framecreative-woocommerce-order-datalayer/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Woocommerce Order to 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
------------

[](#requirements)

- Wordpress 4.0+
- Woocommerce 3.0+
- PHP 5.6+

Install
-------

[](#install)

#### Via Composer

[](#via-composer)

`composer require framecreative/woocommerce-order-datalayer`

#### Manually

[](#manually)

Download and install into your plugins folder

Features
--------

[](#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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Recently: every ~11 days

Total

9

Last Release

3193d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0aa72f116f5374b54c5f58eb5dfa808a5d7c76114a6db4e4b1507641f57ed1f0?d=identicon)[framecreative](/maintainers/framecreative)

---

Top Contributors

[![jackmcpickle](https://avatars.githubusercontent.com/u/89775?v=4)](https://github.com/jackmcpickle "jackmcpickle (16 commits)")

---

Tags

datalayergoogle-tag-managerwordpress-plugin

### Embed Badge

![Health badge](/badges/framecreative-woocommerce-order-datalayer/health.svg)

```
[![Health](https://phpackages.com/badges/framecreative-woocommerce-order-datalayer/health.svg)](https://phpackages.com/packages/framecreative-woocommerce-order-datalayer)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
