LAW-5188 blog wp

This commit is contained in:
Vladimir
2022-03-01 14:58:31 +01:00
parent 8a4fc72fd8
commit 2905edc297

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>