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