GithubHelp home page GithubHelp logo

mkjeldsen / eec-gtm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sahava/eec-gtm

0.0 2.0 0.0 8 KB

DOM scraping scripts for tracking content with Enhanced Ecommerce with Google Tag Manager

JavaScript 100.00%

eec-gtm's Introduction

eec-gtm

DOM scraping scripts for tracking content with Enhanced Ecommerce with Google Tag Manager.

Tags

Custom HTML

These can be found in the tags folder of this repository. Remember to modify them so that they match your content. EEC - HTML - Compile impressions * Trigger 1: DOM Ready * Trigger 2: EEC - Impression click

EEC - HTML - Checkout Funnel and scroll tracking

  • Trigger: EEC - Page is an article

Universal Analytics

EEC - Event - Add To Cart * Tag Type: Event * Event Category: Ecommerce * Event Action: Add To Cart * Enable Enhanced Ecommerce Features: Checked * Use data layer: Checked * Trigger: EEC - addToCart

EEC - Event - Checkout

  • Tag Type: Event
  • Event Category: Ecommerce
  • Event Action: Checkout
  • Enable Enhanced Ecommerce Features: Checked
  • Use data layer: Checked
  • Trigger: EEC - checkout

EEC - Event - Product Click

  • Tag Type: Event
  • Event Category: Ecommerce
  • Event Action: Product Click
  • Enable Enhanced Ecommerce Features: Checked
  • Use data layer: Checked
  • Trigger: EEC - productClick

EEC - Event - Product Detail Impression

  • Tag Type: Event
  • Event Category: Ecommerce
  • Event Action: Product Detail Impression
  • Non-Interaction: True
  • Enable Enhanced Ecommerce Feature: Checked
  • Use data layer: Checked
  • Trigger: EEC - productDetail

EEC - Event - Product Impressions

  • Tag Type: Event
  • Event Category: Ecommerce
  • Event Action: Product Impressions
  • Non-Interaction: True
  • Enable Enhanced Ecommerce Feature: Checked
  • Use data layer: Checked
  • Trigger: EEC - impressionsPushed

EEC - Event - Purchase

  • Tag Type: Event
  • Event Category: Ecommerce
  • Event Action: Purchase
  • Enable Enhanced Ecommerce Feature: Checked
  • Use data layer: Checked
  • Trigger: EEC - purchase

Variables

Custom JavaScript

These can be found in the variables folder of this repository. Remember to modify them, so they work on your site!

EEC - Impression click TRUE

EEC - Words in text price

Data Layer

EEC - Post type * This variable should return the post type of the page * This is used in the trigger for the Checkout plugin, since it should only fire if the page is an article page

Triggers

Custom Event

EEC - checkout * Event name to match: checkout * All Events

EEC - impressionsPushed

  • Event name to match: impressionsPushed
  • All Events

EEC - productClick

  • Event name to match: productClick
  • All Events

EEC - productDetail

  • Event name to match: productDetail
  • All Events

EEC - purchase

  • Event name to match: purchase
  • All Events

EEC - addToCart

  • Event name to match: addToCart
  • All Events

Page View

EEC - Page is an article

  • Filter 1: {{EEC - Post type}} equals single-post
  • Trigger Type: DOM Ready

Link Click

EEC - Impression click

  • Tag filter: {{EEC - Impression click TRUE}} equals true
  • Listener filter: {{Page URL}} matches RegEx .*

eec-gtm's People

Contributors

sahava avatar

Watchers

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