50479: Added google analytics support

This commit is contained in:
Kristof De Langhe
2018-03-20 15:29:05 +01:00
parent 62ff2d3454
commit 35cbedf6fe
10 changed files with 40 additions and 1 deletions

View File

@@ -25,6 +25,11 @@ export function main() {
}
});
// Add google analytics key
var script = document.createElement('script');
script.innerHTML = 'ga(\'create\', \'' + ENV_CONFIG.gaTrackingId + '\', \'auto\');';
document.body.appendChild(script);
return platformBrowserDynamic().bootstrapModule(BrowserAppModule);
}