node package manager

googletagmanager

Google Tag Manager loader for web apps

googletagmanager Build Status

Google Tag Manager loader for web apps

Installation

Bower

bower install googletagmanager

NPM

npm install googletagmanager

or

package.json

"dependencies"{
  "googletagmanager": ""
}

HTML

<script src="googletagmanager.js"></script>

Usage

// Using CommonJS 
var googletagmanager = require('googletagmanager');
 
// or AMD 
define(['googletagmanager'], function (googletagmanager) {
  // ... 
})
 
// Invoking the GTM script loader 
googletagmanager('GTM-ABC123');

License

MIT License