Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7598

Form Builder: Add a petition counter id field

XMLWordPrintable

    • 8
    • Forms
    • Sprint #244
    • iocaste

      Summary

      Many global campaigns use a global counter API to keep track of the total number of submissions across different NRO websites.

      To make that work, they add an iframe to to the confirmation page (see screenshot). To better facilitate that functionality we can add a custom field in the Form Settings page where editors can just add the petition counter id, and we can take care of the API Call on form submission.

      Requirements

      • Add a new field under the "Planet 4 Options" section in the Form Settings.
      • Field name: Global Counter ID
      • Field id: p4_gf_counter
      • Field help text: Add the Counter Name from counter.greenpeace.org
      • To ensure the counter only tracks unique submissions we should also send the user email in a hashed form.
      • On form submission we should do a GET request
        • example:
          https://counter.greenpeace.org//count_pixel?id=<p4_gf_counter>&email_hash=<user_email_hash>
          

      Resources

            pfiguero Pedro Figueroa
            nroussos Nikos Roussos
            Maud Leray Maud Leray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: