The following code will add Google analytics tracking code to your WordPress site’s header. Simply replace “UA-000000000-1” with your analytis UA tracking code and insert the snippet into functions.php.

// Insert Google Analytics into the site header
function mwx_google_analytics() { ?>%MINIFYHTML353a6bf29a5750b5ef220416dd044d836%%MINIFYHTML353a6bf29a5750b5ef220416dd044d837%<?php
add_action( 'wp_head', 'mwx_google_analytics', 10 );

Leave a Reply

Get in Touch

Please fill out the form below and we will get back to you ASAP