Overview
This article will show the different ways to add JavaScript to your mobile site. If your JavaScript isn't running when you navigate to the page try tuning off animated navigation, which can conflict with your JavaScript.
Please note that our support team cannot assist in troubleshooting custom code.
Head Section
Adding JavaScript to the head section of your site will add your script between the <head> and </head> tags on your mobile site. There are two ways to add JavaScript to the Head Section of your mobile site. You can add it into the Head Section of every page or add it to only the Head Section of a particular Page.
Every Page
In order to add JavaScript into the Head Section of every page on your mobile site, click on the gear at the top right -> Site Settings.
Next, click on the Advanced tab. There you'll see text box labeled Head Section. You can Place your JavaScript there, between <script> and </script>.
Particular Page
If you want to add a script for a particular page only, you'll click on the Pages tab at the left -> the page you want to add the script to -> SEO & Page Settings.
From there, click on Head Section and enter your script in the text box, between <script> and </script> tags.
Body
It is also possible to add JavaScript to the body of your mobile page. You can do this by using the HTML feature and dragging and dropping it onto the screen.
You can get more information about the HTML feature here. Again, be sure to enclose your script in <script> and </script>