forked from LiveCarta/LiveCartaWP
@@ -64,8 +64,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', (event) => {
|
window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
if (typeof ga === 'function') {
|
if (typeof ga === 'function' &&
|
||||||
ga('send', 'pageview', 'vpv-blog');
|
typeof frontSettings !== 'undefined' &&
|
||||||
|
frontSettings.GoogleAnalytics &&
|
||||||
|
frontSettings.GoogleAnalytics.config) {
|
||||||
|
ga('create', frontSettings.GoogleAnalytics.config, 'auto');
|
||||||
|
ga('send', 'pageview', 'vpv-blog');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user