Coder Social home page Coder Social logo

magento_googletagmanager's Introduction

Google Tag Manager

A standard implementation of Google Tag Manager for Magento, with data layer support for transaction and visitor data.

Features

Built in data layer support

Use the data layer to enable Google Analytics e-commerce tracking using Google Tag Manager's native tags. You can also build more flexible macros in GTM using visitor data.

The future

Additional data layer work is planned for future releases, starting with site search data.

This extension is made available for free. Any donations toward maintaining it and adding new features as Google Tag Manager evolves are greatly appreciated.

Donate via PayPal

Installation

The latest version of this extension can be downloaded via Magento Connect and installed via Magento Connect Manager.

Alternatively, you can also clone or download this repository and copy the app directory into the root of your Magento installation (not recommended unless you're sure you know what you're doing).

Usage

Log in to your Magento installation's admin and navigate to System > Configuration > Sales > Google API. If installed correctly, you should see a new section below Google Analytics for Google Tag Manager.

Deploying the tag container

To deploy the tag container on all your pages, switch the Enable option to Yes and enter your Container Public ID. This can be found in the Google Tag Manager interface, and takes the form GTM-XXXX.

Enabling the data layer

The data layer provides Google Tag Manager with additional data that can be used to form macros which can in turn be used for creating rules that dictate when specific tags will fire. It is also populated with transaction data when orders are placed, facilitating Google Analytics e-commerce tracking when using the appropriate tag in Google Tag Manager.

The data layer is disabled by default and can be enabled independently for both transaction and visitor data. To do this, change the Data layer: Transactions or Data layer: Visitors options to Enable.

For transactions, there are additional fields for transactionType and transactionAffiliation that can take custom values, depending on the store view. These can be left blank if desired, or populated to allow Google Tag Manager to fire different tags for different stores.

Support

Please report bugs and feature requests using the Github issue tracker.

magento_googletagmanager's People

Contributors

cvm avatar rjbaker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.