Giter Site home page Giter Site logo

funnyleone / magento2-google-tag-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magepal/magento2-google-tag-manager

0.0 2.0 0.0 101 KB

Google Tag Manager (GTM) with Data Layer for Magento2. GTM make tag management simple, easy and reliable by allowing marketers and webmasters to deploy tags to their website without editing html code.

Home Page: http://www.magepal.com

PHP 89.19% JavaScript 5.34% HTML 5.47%

magento2-google-tag-manager's Introduction

MagePal Extensions

Google Tag Manager for Magento2 with Data Layer

Total Downloads Latest Stable Version

Google Tag Manager (GTM) is a user-friendly solution which simplifies the process of adding, edit and manage JavaScript tags and other snippets of code on your Magento site. You can quickly and easily add Facebook tags, AdWords Conversion Tracking, Remarketing, DoubleClick code, Google Analytics and many more in a breeze without the need for a developer to make changes to your Magento code base. GTM makes running your digital marketing campaigns much easier when calibrating with multiple department and agencies by making available the right set of tools so that everyone can get their job done quickly.

Want to track more? Upgrade to our new Enhanced E-commerce for Google Tag Manager to take full advantage of Google Analytics most powerful e-commerce features. Gain valuable insight and increase your conversion rate by leveraging Google Enhanced Ecommerce to understand the value of each user actions and behaviors.

Learn more about our Google Enhanced Ecommerce extension. A small increase in your store’s conversion rate can make a giant impact on your revenue.

Google Tag Manager for Magento

Features

  • Quick and easy setup
  • Add tag via XML layout and/or observer
  • Data layer support

Installation

Step 1

Using Composer (recommended)
composer require magepal/magento2-googletagmanager
Manually (not recommended)
  • Download the extension
  • Unzip the file
  • Create a folder {Magento 2 root}/app/code/MagePal/GoogleTagManager
  • Copy the content from the unzip folder

Step 2 - Enable GTM ("cd" to {Magento root} folder)

  php -f bin/magento module:enable --clear-static-content MagePal_GoogleTagManager
  php -f bin/magento setup:upgrade

Step 3 - How to Configure Google Tag Manager

Log into your Magento 2 Admin, then goto Stores -> Configuration -> MagePal -> Google Tag Manager and enter your GTM account credentials

Data layer attributes

  • Trigger: event equals gtm.dom
    • pageType (i.e catalog_category_view)
    • list (cart, category, detail, other)

Customer

  • Trigger: event equals mpCustomerSession
    • customer.isLoggedIn
    • customer.id
    • customer.groupId

Category

  • Trigger: event equals gtm.dom
    • category.id
    • category.name
    • category.path

Product

  • Trigger: event equals gtm.dom
    • product.id
    • product.name
    • product.sku
    • product.path

Cart

  • Trigger: event equals mpCustomerSession
    • cart.hasItems
    • cart.items[].sku
    • cart.items[].name
    • cart.items[].price
    • cart.items[].quantity
    • cart.total
    • cart.itemCount
    • cart.itemQty
    • cart.hasCoupons
    • cart.couponCode

Order

  • Trigger: event equals gtm.dom
    • transactionId
    • transactionAffiliation
    • transactionTotal
    • transactionShipping
    • transactionTax
    • transactionCouponCode
    • transactionDiscount
    • transactionSubTotal
    • transactionProducts[].sku
    • transactionProducts[].name
    • transactionProducts[].price
    • transactionProducts[].quantity

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

Support

If you encounter any problems or bugs, please open an issue on GitHub. For fast Premium Support visit our Google Tag Manager product page for detail.

Need help setting up or want to customize this extension to meet your business needs? Please email [email protected] and if we like your idea we will add this feature for free or at a discounted rate.

Other Extensions

Custom SMTP | Google Tag Manager | Enhanced E-commerce | Reindex | Custom Shipping Method | Preview Order Confirmation | Guest to Customer | Admin Form Fields Manager | Customer Dashboard Links Manager | Lazy Loader | Order Confirmation Page Miscellaneous Scripts

© MagePal LLC. | www.magepal.com

magento2-google-tag-manager's People

Contributors

srenon avatar ihorvansach avatar alex-koepke avatar agranjeon avatar gewaechshaus avatar magefan avatar timweprovide avatar

Watchers

James Cloos avatar Abul 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.