node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

googletagmanager

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