- Linking an external script file – effective on site level
- Embedding within header and/or footer of a specific page – effective on page level
- Adding within the content of a page – effective on element level
Linking an External Script File
Some kind of functions need a script file to be linked at site level. This is when you’ll need to link an external script file.
You can upload the needed .js file under “Design > Edit HTML/CSS > Assets”. Click on the + icon then choose “Upload File(s)…” and upload the script file.
Once file is uploaded, the next step is to link the file at site level under “Settings > SEO > Footer Code” section using the below code:
Embedding within header and/or footer of a specific page
Adding within the content of a page
In order to embed a script at an element level, you have to use “Embed Code” element to paste the script along with the HTML / CSS code.