WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Google analytics (2 posts)

  1. famoso
    Member
    Posted 10 months ago #

    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?

  2. nikeo
    Member
    Theme Author

    Posted 10 months ago #

    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
    }

Reply

You must log in to post.

About this Theme

About this Topic