Skip to content

Commit

Permalink
fix(google-tag-manager): fix respectDoNotTrack (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier authored and Pooya Parsa committed Jul 13, 2019
1 parent 712a666 commit 56cb078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/google-tag-manager/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GTM {
'gtm.start': new Date().getTime()
})

if (!this.options.respectDoNotTrack && this.options.pageTracking && !this.hasDNT()) {
if (this.options.pageTracking && (!this.options.respectDoNotTrack || !this.hasDNT())) {
this.initPageTracking()
}
}
Expand Down

0 comments on commit 56cb078

Please sign in to comment.