Support » Theme: Customizr » Google analytics

  • Can’t find the answer so sorry in advance if it has been asked but where exactly can you put the google analytics code on this theme?

Viewing 1 replies (of 1 total)
  • Add this code in your functions.php

    add_action('wp_head','my_analytics',1,20);
    
    function my_analytics() {
    	?>
    
                YOUR GOOGLE ANALYTICS TRACKING CODE HERE
                (looks like <script type="text/javascript">.....</script> )
    
    	<?php
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Google analytics’ is closed to new replies.