Skip to content

cofounders/googletagmanager

Repository files navigation

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

About

Google Tag Manager loader for web apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published