fix(v2): make Google analytics and Google gtag plugins work

This commit is contained in:
Yangshun Tay 2019-06-10 00:48:38 -07:00
parent cfffad8c6d
commit 8a6f8ef9c3
3 changed files with 11 additions and 7 deletions

View file

@ -24,7 +24,7 @@ export default (function() {
}
if (
// process.env.NODE_ENV !== 'production' || // TODO: Add it back after testing that it works.
process.env.NODE_ENV !== 'production' ||
!trackingID ||
typeof window === 'undefined'
) {