You can add your own scripts to a form, for example a Google Analytics or other third-party tracking script. Where the script runs depends on how you publish the form.
How to add a custom script
- Open a created form and click the Settings tab.
- Click Custom scripts, or scroll down to it.
- Paste your script into the editor, replacing the placeholder text. Include the <script> tags.
- Click Save & close.
The form preview does not run your scripts. To test a script, open the published form.
For landing pages, see Can I use custom scripts on my landing pages?
Hosted by Upsales
Your script is added to the page where Upsales shows the form, and runs whenever a visitor opens that page.
Embed
The embed code shows the form in an iframe: the form is a separate page hosted by Upsales, displayed inside your website. Your script runs inside that form page. A tracking script there tracks the form page, not your website.
To track your website, add the tracking script to your website itself. See How to set up the website tracking script.
Raw code
Custom scripts are not included in the raw code. When a form has a custom script, the Raw code tab shows a notice with a Copy button for it. Copy the script and add it to the page where you paste the form code.