forked from LiveCarta/LiveCartaWP
LAW-5188 blog wp
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user