Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 1.12 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.12 KB

<google-tag-manager>

Polymer 1.2 wrapper element for google tag manager.

So far only basic functionality is implemented, I've not messed up with extra dataLayer support and stuff.

Check out the demo

Setup

Install with bower or download the zip

bower install --save sespiros/google-tag-manager

Import it in your code

<!-- for relative paths -->
<link rel="import"href="../bower_components/google-tag-manager/google-tag-manager.html">

Usage

<google-tag-manager cid="GTM-XXXXXX"></google-tag-manager>

Playing With Your Element

If you wish to work on your element in isolation, we recommend that you use Polyserve to keep your element's bower dependencies in line. You can install it via:

npm install -g polyserve

And you can run it via:

polyserve

Once running, you can preview your element at http://localhost:8080/components/google-tag-manager/.

Contribute

Feel free to extend it or propose new functionality