Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Google analytics code #552524

    Hi!,

    I´m adding this snippet to the functions.php file, but I have two questions.

    add_action('after_setup_theme','avia_change_analytics_pos', 10);
    function avia_change_analytics_pos()
    {
            remove_action('wp_footer', 'avia_print_tracking_code');
            add_action('wp_head', 'avia_print_tracking_code');
    }

    1) I don´t have a child theme, just Enfold, so I´m adding it to the main functios.php file. Is that correct?
    2) Doing it that way, I´m having the analytics code in two places, in the HEAD and at the end of the html. Why?
    Regards,
    Chris

Viewing 1 post (of 1 total)