Fix configs loading #470
2 changed files with 3 additions and 4 deletions
|
@ -41,9 +41,9 @@ if (!_siteConfig.default) {
|
|||
|
||||
if (_siteConfig.default.analytics) {
|
||||
googleId = _siteConfig.default.analytics.googleId;
|
||||
}
|
||||
|
||||
_reactGa.default.initialize(googleId);
|
||||
}
|
||||
|
||||
var GAListener =
|
||||
/*#__PURE__*/
|
||||
|
|
|
@ -12,9 +12,8 @@ if (!siteConfig) {
|
|||
|
||||
if (siteConfig.analytics) {
|
||||
({ googleId } = siteConfig.analytics);
|
||||
}
|
||||
|
||||
GoogleAnalytics.initialize(googleId);
|
||||
}
|
||||
|
||||
class GAListener extends React.Component {
|
||||
componentDidMount () {
|
||||
|
|
Loading…
Reference in a new issue