googletagmanager
v1.0.2
Published
Google Tag Manager loader for web apps
Downloads
74
Readme
googletagmanager
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');