Articles on: Integrations

How to pull conversion data with "poptinSubmitted"?

We are now storing the form submissions in visitor's browser for you to access the information and do absolutely anything with it. All the form submissions are submitted in javascript variable poptinSubmitted in the page where the form was submitted. After the form was submitted you can use poptinSubmitted for accessing the poptin input values either from your website or can write your script in the Conversion code textarea in Step2.

Try this to read all the values

<script> console.log( poptinSubmitted ); </script>


This is how you will see the information

poptinSubmitted    | - poptin_id          | - poptin_id          | - client_id          | - page_title          | - page_url          | - consent          | - referrer          | - fields                | - field_1                      | - type                      | - name                      | - placeholder                      | - value                | - field_2                      | - type                      | - name                      | - placeholder                      | - value


If you want to create a webhook that pulls the data, you can use this code by Eyal Gershon:

https://github.com/eyalway2cu/eyal_scripts/blob/master/poptinSubmitWebhook.html

Just make sure you enable CORS first.

Updated on: 15/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!