Created
December 5, 2017 02:26
-
-
Save congthien/07d6ea432152ba44cbe762f7601af9a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onepress_ga_tag(){ | |
?> | |
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-93671552-1"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'UA-93671552-1'); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'onepress_ga_tag' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment