Last active
December 1, 2022 18:29
-
-
Save TarttWeb/5d0f090dcb3a569d95c437e887105ead to your computer and use it in GitHub Desktop.
Add GTAG to WordPress Header
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
// Add Google Analytics to <head> | |
function add_google_analytics_to_head() { | |
// Paste the whole google tracking tag (gtag.js) here. | |
} | |
add_action( 'wp_head', 'add_google_analytics_to_head' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment