Skip to content

Commit

Permalink
updating packages and accepting ID as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
mib200 committed Aug 20, 2019
1 parent 91f5017 commit fee9964
Show file tree
Hide file tree
Showing 6 changed files with 4,217 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import VueRouter from 'vue-router';
const router = new VueRouter({ routes, mode, linkActiveClass });

Vue.use(VueGtm, {
id: 'GTM-xxxxxxx', // Your GTM ID
id: 'GTM-xxxxxxx', // Your GTM single container ID or array of container ids ['GTM-xxxxxxx', 'GTM-yyyyyyy']
enabled: true, // defaults to true. Plugin can be disabled by setting this to false for Ex: enabled: !!GDPR_Cookie (optional)
debug: true, // Whether or not display console logs debugs (optional)
loadScript: true, // Whether or not to load the GTM Script (Helpful if you are including GTM manually, but need the dataLayer functionality in your components) (optional)
Expand All @@ -45,7 +45,7 @@ Vue.use(VueGtm, {
});
```

This injects the tag manager script in the page, except when `enabled` is set to `false`.
This injects the tag manager script in the page, except when `enabled` is set to `false`.
In that case it will be injected when calling `this.$gtm.enable(true)` for the first time.

# Documentation
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-gtm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3'
services:
node-cli:
image: mfrankiewicz/node:cli
volumes:
- .:/app
Loading

0 comments on commit fee9964

Please sign in to comment.