UNPKG

next-gtm

Version:
39 lines (23 loc) 437 B
# Google Tag Manager Next.js simple component ## Table of contents - [Installation](#installation) - [Usage](#usage) - [License](#license) ## Installation ``` npm install --save next-gtm or yarn add next-gtm ``` ## Usage Your Layout Component: ```javascript import Gtm from 'next-gtm' <Head> // layout code </Head> <Gtm id='GTM-XXXXXXXX'/> // ... ``` ## License [ISC]© Pavel Ishenin