Easy peasy lemon squeezy! If this specific page were to be a Form, there is a Template dropdown field on the form edit page. This is the same when editing a specific Page. Just scroll down and look for the Template field when editing the specific Form or Page.
Step 1: Create a custom template - > put your script code in the custom template -> then associate the form with that custom template (through the Template dropdown).
Step 2: For details on custom templates, please read our Documentation on https://tendenci.readthedocs.io/en/latest/templating/custom_templates.html#custom-templates