Skip to content

Instantly share code, notes, and snippets.

Created February 22, 2023 12:24
What would you like to do?
Add GTM in code snipped wordpress plugin
add_action( 'wp_head', function () { ?>
<!-- Google Tag Manager -->
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<!-- End Google Tag Manager -->
<?php } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment