mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
fix(v2): make Google analytics and Google gtag plugins work
This commit is contained in:
parent
cfffad8c6d
commit
8a6f8ef9c3
3 changed files with 11 additions and 7 deletions
|
@ -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'
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue