Where can I place a script that will be global #1038
-
I need to insert some JavaScript that will be global to all pages irregardless of template. This will be updated occasionally by the developers and is not needed to be updated by editors. We have some advertising and analytics tags we need to add to every page in the site. I would rather do it at source (ie. like default.aspx) level than have to modify several templates, global blocks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Another thing I want to do is place a "back-to-top" icon on the pages and provide a floating button to navigate to the top of the page. |
Beta Was this translation helpful? Give feedback.
-
Modifying default.aspx is never recommended. You can easily add your own Global Scripts in Header tag from Menu > Settings > SEO & Site Search > Site > Advanced > HTML Page Header Tags |
Beta Was this translation helpful? Give feedback.
-
Soo there is no way to properly add script to the bottom of every page in one place? BTW I am still debugging to find the exact scenario but it seems that Live Forms breaks the custom code added to the same page... I will get back to that later. |
Beta Was this translation helpful? Give feedback.
Modifying default.aspx is never recommended.
You can easily add your own Global Scripts in Header tag from Menu > Settings > SEO & Site Search > Site > Advanced > HTML Page Header Tags