How to Installing Google Analytics on your WordPress without plugin

Google Analytics provides powerful digital analytics for anyone with a web presence, large or small. It’s one of the most powerful digital analytics solutions available – and it’s free for anyone to use.

Google Analytics Code

Google Analytics Code

How to place your Google Analytics Code on your WordPress without plugin

Open your theme’s functions.php file



add_action(‘wp_footer’, ‘add_googleanalytics’);

function add_googleanalytics() { ?>

// Paste your Google Analytics code here

<?php } ?>

Leave a comment

Logged in as Lamvt. Log out?