@source4society/react-scepter-web-gtm-component

1.0.2 • Public • Published

react-scepter-web-gtm-component

A simple Google Tag Manager component for the web

scepter-logo

redux-logo

react-boilerplate

airbnb-codestyle

Build Status

codecov

Installation

npm install @source4society/react-scepter-web-gtm-component

or

yarn add @source4society/react-scepter-web-gtm-component

At least a single <script></script> tag must be found in you document for this component to work.

Usage

Add this component to your web application to load a GTM container on mount. Note that if you are using a react-style router then you will likely have to add some logic for triggering GTM events upon navigation. This is best done inside of GTM itself. Example usage:

  <GTMComponent containerId={'GTM-XXXXXXX'} />

where containerId is the ID of your GTM container.

Readme

Keywords

none

Package Sidebar

Install

npm i @source4society/react-scepter-web-gtm-component

Weekly Downloads

1

Version

1.0.2

License

AGPL-3.0

Unpacked Size

92 kB

Total Files

27

Last publish

Collaborators

  • danfredriksen