Capture script
How to generate and install the contact capture form on the site: selecting the lists, the code with the listId, and the authorized domain warning.
Updated on
The capture script is the newsletter signup form displayed on the site. It is generated in the dashboard for one or more lists and writes contacts directly into them. The Ver script de captura (view capture script) button, in the Gestão de listas & ingestão (list and ingestion management) tab, opens the Instalar script de captura (install capture script) dialog, with two numbered steps.
Select the lists
Under the question "Para quais listas este formulário deve enviar?" (which lists should this form send to?), select the lists that should receive the contacts. At Diário do Litoral, 3 checkboxes appear: Geral, Esportes, and Economia.
The code is generated for the selected lists, with the identifier of each one.
Install the code on the site
Copy the code block and paste it into the site footer, as the screen instructs. The code declares
PageSignal.capturewith thelistIdand asettingsobject, and loads thecapture.jsfile from the cdn.pagesignal.io address.The form is displayed on the site and starts writing contacts into the selected lists.
<!-- Code structure. Copy the real code from the dialog, with your listId. -->
<script>
PageSignal.capture({ listId: 'LIST_ID', settings: { modal: true, exitIntent: true } });
</script>
<script async src="https://cdn.pagesignal.io/capture.js"></script>The settings object options visible in the code are modal, which displays the form in an overlay window, and exitIntent, which displays it when the reader is about to leave the page.
The listId identifies the list in your account and must not be included in support tickets, screenshots, or messages. In the examples in this documentation, it appears as LIST_ID.