Where to add javascript

Hi,

I have been asked to add the following code just before the <head/>
tag to the global header on my site.


<script type="text/javascript">var rl_siteid =
"44f81a2e-fbd3-40a6-9bed-0e3fa749ca2e";</script><script
type="text/javascript" src="//cdn.rlets.com/capture_static/mms/mms.js"
async="async"></script>

Is this added under the Muffin options / custom CSS&JS section? Or is there somewhere else I need to add this?

Comments

  • Hi,

    this requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact with your web developer. If you will tell us if you meant opening or closing head tag, we would be able to tell you which file is responsible for it. The tag you pasted above is WRONG!

    Thanks for understanding!
  • Hi,

    Thanks for your reply.

    All I need is opening and closing the head tag please.

    I would have thought that as is the case with some other themes that by using the custom CSS /JS area it would accomplish this insertion?

    Also, please explain how is script 'wrong'?  This was given to me by a company that inserts these type of scripts regularly for use in activating their online marketing products / tracking etc..

    Thanks again :)


  • Like we wrote above, files customization are not included so we won't be able to help you with including this code. We can just tell you where opening and closing tags of header part are. Both are located in header.php file.

    In reference to question about wrong code, take a look once again <head/> and tell us if this tag looks fine for you. If it looks fine, we suggest to read some articles about html tags in Google.
Sign In or Register to comment.