• Hi Guys,

    Really battling and getting frustrated, spoke to Google today and they advised that my analytics code isn’t setup correctly, and that the tracking code is sitting on line 1879-1888, and I can see this under view-source:https://www.ativo.co.za/
    Google advised it needs to move to end of line 226

    However when I go through the templates for my theme I cannot find this line, or code even while searching. or using Notepad++ to download the files, the style.css stops at line 1870

    How can I find where this line is located?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there!

    How are you adding the code? Is it from a theme option or a plugin? From the sound of it, the script is being loaded via the wp_footer action – which is the wrong hook. The Google Analytics script needs to be in the <head> of the document and this is done by using the wp_head action hook.

    Hope that makes sense but do tell us how you are inputting that code. ??

    Thread Starter sergiogspinola

    (@sergiogspinola)

    Hi Jose,

    I had added it months ago, and it was done manually, and now I cant find where it is, and I am basically trying to find it and remove it and place it in the correct location.

    Where would I find the wp-footer? I have looked under theme footer (footer.php) and couldn’t find it there either.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    What theme are you using?

    Thread Starter sergiogspinola

    (@sergiogspinola)

    ThBusiness,

    I am even more confused, went to the source code again, and now the analytics data is now showing.
    So have installed a plugin, and tested, and I will contact google tomorrow to see if it is right now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Finding source code not shown in Templates’ is closed to new replies.