Merge pull request #6376 from Jerryby/wordpress

LAW-5188 blog wp
This commit is contained in:
gregory-p
2022-03-01 16:59:17 +03:00
committed by GitHub

View File

@@ -64,8 +64,12 @@
</div>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
if (typeof ga === 'function') {
ga('send', 'pageview', 'vpv-blog');
if (typeof ga === 'function' &&
typeof frontSettings !== 'undefined' &&
frontSettings.GoogleAnalytics &&
frontSettings.GoogleAnalytics.config) {
ga('create', frontSettings.GoogleAnalytics.config, 'auto');
ga('send', 'pageview', 'vpv-blog');
}
});
</script>