WordPress.org

Forums

Customizr
Google analytics (2 posts)

  1. famoso
    Member
    Posted 1 year 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 1 year 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
    }

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic