This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Inserting Google tags

  • Creator
  • #18956

    I am trying to insert this Google Tag code into the footer of every page on my website. Should I just go into each page and use the Text tab and place it at the bottom? Any help is appreciated. Thank you.

    new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],

Viewing 1 replies (of 1 total)
  • Author
  • #18959
    Jason Bobich


    I would suggest incorporating through a child theme.

    How a child theme works:

    A basic example of what you could do from your child theme’s functions.php, and simply hooking to wp_footer:

    function my_google_tag() {
    	your output would go here...
    add_action('wp_footer', 'my_google_tag');
Viewing 1 replies (of 1 total)
  • The forum ‘Barely Corporate Responsive WordPress Theme’ is closed to new topics and replies.