Adding Your Google Analytics Tracking Code

The Total theme includes a built-in field to easily add your Google analytics tracking ID to your site so the theme will then insert the standard code needed for tracking.

Adding the code using a child theme or Plugin (if you want a custom output)

Alternatively you can use a child theme to add your code to your pages if you need more control over the output. This can be done by using the snippet below (added to the bottom of your child theme’s functions.php file):

add_action( 'wp_head', function() { ?>
   YOUR CODE GOES HERE
<?php } );

Or of course you can always use a plugin such as the Code Snippets plugin to add this code to your site.