How to Install Google Analytics in WordPress

 In Optimization & Best Practices

Functions.php Method or create your own plugin.

Add the code below on your theme functions

add_action('wp_footer', 'add_googleanalytics');
function add_googleanalytics() { ?>
// This is the place where you need to paste your Google Analytics Tracking Code
<?php } ?>
Recommended Posts

Start typing and press Enter to search