Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gtm-service-for-encore

Package Overview
Dependencies
Maintainers
8
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtm-service-for-encore

Small helper that provide methods for publishing GTM events

  • 1.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
8
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 27 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc