How To Add Js Snippet Code Within <Body></body> Default Template?

Hello,

I want to Place the following code on every page:


What I was thinking is:

Design->Layout->Default->adding HTML block to CONTENT (which I think it's the ) then to add this code with literal on each side, I did it but it doesn't work, what I need to do?

Best regards,

JD.

You can enable the My changes module and create the following file:

design/themes/YOUR_THEME/templates/addons/my_changes/hooks/index/scripts.post.tpl

and put js code there. Then clear cache and check the result

It did the trick, thank you!

It did the trick, thank you!

You are welcome!