Skip to content

Instantly share code, notes, and snippets.

Created April 20, 2019 04:03
What would you like to do?
add_action( 'wp_head', 'solusipress_ga_script', 0 );
function solusipress_ga_script()
{ ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=""></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxxx-1');
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment