Google Tag Manager Next.js simple component Table of contents Installation Usage License Installation npm install --save next-gtm or yarn add next-gtm Usage Your Layout Component: import Gtm from 'next-gtm' <Head> // layout code </Head> <Gtm id='GTM-XXXXXXXX'/> // ... License [ISC]© Pavel Ishenin