Adding Google Analytics to Customizr

For Customizr-Pro and Hueman-Pro users: You can paste your Google Analytics tracking code in a specific field designed for that. Please read the following documenation:

 

If you’re not a developer, you can refer to this complete documentation on setting up your Google Analytics tracking code with a plugin.

 

Here’s a quick snippet to add Google Analytics tracking’s code to your website.

Where to copy/paste this code? => in your functions.php file of a child theme. I strongly recommend you create a child theme. Download a start-up child theme here.

Everything you need to know about child theme with Customizr here.

 

add_action('wp_head','my_analytics', 20);

function my_analytics() {
	?>

            YOUR GOOGLE ANALYTICS TRACKING CODE HERE
            (looks like <script type="text/javascript">.....</script> )

	<?php
}

 

75 thoughts on “Adding Google Analytics to Customizr”

Comments are closed.