Placing Code in pages source code????

4 replies
  • WEB DESIGN
  • |
I'm trying to use Google Optimizer (not analytics , not webmaster tools) and I need to


'Place the control and tracking script immediately after the opening <head> tag in your original page's source code. Do not put this script in a shared header, or in any file other than the original page. '

Where might I find the 'original page's source code' ? I've had lots of advice (most of it confusing the page's source code with the header) but no one seems to be able to point me to the above. Any ideas how to do this or where to find out where I can do this?
Many thanks.
#code #pages #placing #source
  • Profile picture of the author Brandon Tanner
    Originally Posted by JasonMantle View Post

    I'm trying to use Google Optimizer (not analytics , not webmaster tools) and I need to


    'Place the control and tracking script immediately after the opening <head> tag in your original page's source code. Do not put this script in a shared header, or in any file other than the original page. '

    Where might I find the 'original page's source code' ? I've had lots of advice (most of it confusing the page's source code with the header) but no one seems to be able to point me to the above. Any ideas how to do this or where to find out where I can do this?
    Many thanks.
    The 'source code' refers to the code in your HTML file (for example, index.html). If you open up your HTML file in any text editor (Notepad will do), you will see the code that it refers to.
    Signature

    {{ DiscussionBoard.errors[6038520].message }}
    • Profile picture of the author JasonMantle
      Thanks Brandon, but how do I find it? I need the individual pages and in ftp I can't find those pages.
      I web otpimizer says the above and once I'm on those pages I'll put the code as explained. It's finding the pages thats the problem.

      Once I've found them I'll be ok - I hope
      {{ DiscussionBoard.errors[6040994].message }}
      • Profile picture of the author Brandon Tanner
        Originally Posted by JasonMantle View Post

        Thanks Brandon, but how do I find it? I need the individual pages and in ftp I can't find those pages.
        I web otpimizer says the above and once I'm on those pages I'll put the code as explained. It's finding the pages thats the problem.

        Once I've found them I'll be ok - I hope
        Is this a regular HTML website, or WordPress?

        If the former... then when you log into FTP, your webpages should be in a folder named 'public_html' or 'htdocs'. And the home page is usually named index.html or index.php

        If you're referring to a WordPress site, however, then it can be a little trickier... it all depends on how you installed and configured WordPress. But for the default install, for example, the file you're looking for would be located at... wp-content > themes > (theme name) > header.php
        Signature

        {{ DiscussionBoard.errors[6043115].message }}
  • Profile picture of the author msu
    When you're logged in via FTP trying looking for a folder called 'public_html' or 'html' or something like that.
    Signature
    New to WordPress? Save time with my beginner's guide:
    WordPress Step-by-Step
    (for Kindle & Kindle Apps)

    I'm a top-notch WordPress developer: hire me
    {{ DiscussionBoard.errors[6042907].message }}

Trending Topics