Forums

How to include a Java Script in the main page (5 posts)

  1. roncansan
    Member
    Posted 6 years ago #

    I want to include the Google analytics JS it goes on top of the </head> tag of the main page. What field of I modified in order to accomplish this.

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    If you do a search, you'll find plugins announced here that will do all that.

  3. roncansan
    Member
    Posted 6 years ago #

    excuse me the question is what file do I need to modified

  4. KaushalSheth
    Member
    Posted 6 years ago #

    open header.php and insert the code, after <head> and before </head> tag.

    I think this will solve your problem. I too have added google analytic to my site. Takes a while though for validation.

  5. Ajay
    Member
    Posted 6 years ago #

    Depending on the theme you may need to edit either header.php or index.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags