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