Skip to content

LybeAB/Lybe_GoogleTagManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Magento Google Tag Manager

Minimalistic Google Tag Manager integration for Magento with Data Layer support.

Installation

  1. modman clone git@github.com:LybeAB/Lybe_GoogleTagManager.git
  2. modman deploy Lybe_GoogleTagManager
  3. Clear the cache

Settings

Admin > Configuration > Sales > Google API > Google Tag Manager

Data Layer Variables

  • event - string "transaction"
  • transactionId - string
  • transactionAffiliation - string
  • transactionCurrency - string
  • transactionTotal - numeric
  • transactionShipping - numeric
  • transactionTax - numeric
  • transactionProducts - array of TransactionProduct objects
    • name - string
    • sku - string
    • category - string
    • price - numeric
    • quantity - numeric
  • nthPurchase - numeric
  • customerId - numeric
  • daysSinceLastTransaction - numeric

Magento Config Paths

  • google/tagmanager/active
  • google/tagmanager/container

Other Google Tag Manager Modules

Run tests

composer install
vendor/bin/phpspec run

About

Magento Google Tag Manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published