0.1.4 • Published 6 years ago

google-tag-manager-react-router-integrator v0.1.4

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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);
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

8 years ago

0.0.1

8 years ago