google-tag-manager-react-router-integrator

0.1.4 • Public • Published

npm version Build Status Coverage Status Dependency Status devDependency Status

Simple integrator for react router history and google tag manager

Install

npm install --save google-tag-manager-react-router-integrator

Test

npm run test

Dev environment

npm run dev

Use

import gtmIntegrator from 'google-tag-manager-react-router-integrator';
 
const historyChangeHandler = location => {
    // push informations with dataLayer
}
gtmIntegrator('GTM_CONTAINER_ID')(history)(historyChangeHandler);

Package Sidebar

Install

npm i google-tag-manager-react-router-integrator

Weekly Downloads

17

Version

0.1.4

License

ISC

Last publish

Collaborators

  • francesco.b