Skip to content

Commit

Permalink
Closes: #47 - Multiple installations of google tag manager detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
minorgod committed Aug 19, 2019
1 parent aacc3b5 commit 4dfabc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-gtm",
"version": "2.0.0",
"version": "2.0.1",
"description": "Google Tag Manager implementation in Vue application",
"main": "./dist/vue-gtm.min.js",
"author": "Manish Kumar",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ export const loadScript = function (id) {
*/
export const hasScript = function () {
return Array
.from(document.getElementsByName('script'))
.from(document.getElementsByTagName('script'))
.some(script => script.src.includes('googletagmanager'))
}

0 comments on commit 4dfabc1

Please sign in to comment.