• Resolved putz3000

    (@putz3000)


    I just trashed my original index.html page and went with my blog page as my default web page (index.php). However, I still want to keep my google analytics. I took the inbeded script code that was in my original index.html page and created a <html>,<body> [insert code/google script] </body>, </html>. I put all that after all the php code. will that still work, or will I have to do something different? I am thinking it will not work and I will have to find the atual file with the code in it and dump the google script inside that files html and body sections. Am I right? You can view the source by going to mypontification.com (my code is at the end and appears outside of an already existing batch of code that I am unaware of where it came from).

Viewing 3 replies - 1 through 3 (of 3 total)
  • moshu

    (@moshu)

    Are you editing the “short and sweet” index? Never do that!
    Always edit your active theme’s index.php.

    Thread Starter putz3000

    (@putz3000)

    I thought it was the active but I could be wrong. What file has the html code in it? That is where I need to put my script at but I am not sure where it is coming from. If I view page source I see the html and if I knew which file would give me that, then I would think I could just go to the end of the html and paste in the script and be fine.

    The “end” of html is usually in the footer.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘google analytics and index.php’ is closed to new replies.