Fix configs loading #470

Merged
bones7242 merged 15 commits from fix-configs-loading into master 2018-06-07 19:40:01 +02:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 5484e39eaa - Show all commits

View file

@ -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__*/

View file

@ -12,10 +12,9 @@ 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 () {
this.sendPageView(this.props.history.location); this.sendPageView(this.props.history.location);