Skip to content

Instantly share code, notes, and snippets.

@TarttWeb
Last active December 1, 2022 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TarttWeb/5d0f090dcb3a569d95c437e887105ead to your computer and use it in GitHub Desktop.
Save TarttWeb/5d0f090dcb3a569d95c437e887105ead to your computer and use it in GitHub Desktop.
Add GTAG to WordPress Header
// 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