Download the PHP package kodbruket/magento2-gtm without Composer
On this page you can find all versions of the php package kodbruket/magento2-gtm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kodbruket/magento2-gtm
More information about kodbruket/magento2-gtm
Files in kodbruket/magento2-gtm
Package magento2-gtm
Short Description Google Tag Manager for Magento 2
License MIT License
Informations about the package magento2-gtm
Google Tag Manager for Magento 2
Installation
The easiest way to install the extension is to use Composer, just run the following commands:
$ composer require kodbruket/magento2-gtm
$ bin/magento module:enable Kodbruket_Gtm
$ bin/magento setup:upgrade
Configuration
Enable the module under Stores / Configuration / Sales / Google API. Enter your container ID from Google Tag Manager and specify whether to use quote or order when tracking the transaction on the success page. When the module is set to track by quote it will try to set transactionID
to the reserved order ID from the quote. If no order ID has been reserved it will fall back to the entity ID of the quote.
The module looks at the full action names catalog_product_index
, catalog_category_index
and checkout_checkout_index
to decide which data to include in the data layer. It's fully possible to add or define other full action names directly from admin. Just set Use custom action names to Yes and define the action names you want it to look at.
Authors
All versions of magento2-gtm with dependencies
magento/module-sales Version *
magento/module-quote Version *
magento/module-checkout Version *
magento/module-tax Version *
magento/framework Version *
magento/zendframework1 Version *