gtm-service-for-encore
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Encore GTM Service

Small helper that provide methods for publishing GTM events

Install

$ npm install gtm-service-for-encore

Usage

  1. Import object from the list:

    • utils
    • mappers
    • events
  2. Call required method from the object

Documentation

Utils object contains util methods to work with dates: - getFormattedDateString - return date in YYYY-MM-DD string format - getNameOfTheDay - return name representation of the day of the week (i.e. Monday, Saturday)

Mappers object contains mappers for objects or parts of the object: - getPerformanceTypeName - return full name of performance type attribute

Events object contains methods allowing user to add formatted GTM event for a specific type of event: - ticketBuilder - addToCart - removeFromCart - checkout - checkoutWithDimensions - purchase - error

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i gtm-service-for-encore

    Weekly Downloads

    9

    Version

    1.1.2

    License

    none

    Unpacked Size

    37.9 kB

    Total Files

    41

    Last publish

    Collaborators

    • joaquinvolpe
    • dpiletski
    • shivalijindal
    • xiaottg
    • leonardo.moreno
    • galvogalvo
    • chasenyc
    • davidbrewer
    • paulrumyantsevitr
    • a.bobrovnik
    • yuriyibc
    • ipanfilenko