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

EN Form Block not firing gGoal dataLayer value


    • Icon: Bug Bug
    • Resolution: Released
    • Icon: Blocker Blocker
    • 2.34.2
    • None
    • 2
    • Block: EN Form
    • Sprint #139

      Noticed some EN Form Blocks are not firing the correct gGoal in the dataLayer push when the user signs up. 

      Solution / Requirements

      1. EN Form Block Fixes:

      • Make the "Goal" field mandatory in EN Form Blocks
      • Don't display any value. Instead use a place holder such as "--- Select Goal ---" 
      • Display warning message if editors try to publish it without a Goal value
      • When value is not present, fire a [not set] value (for safety, this would prevent us from loosing events in Google Analytics)

      2. Fixing issues of existing pages

      • To avoid asking all NROs to edit their pages and re-select "Petition Singup" it would be great to force the value "Petition Signup" on existing EN FORM BLOCKS where the value is not set.  
      • On other cases, where there's already a value selected (eg. "Action Alert") we should keep what's there. 
      • New blocks created should already contain the behaviour above, with the placeholder "--- Select Goal ---", mandatory field and warning message. 


      After investigation: 

      When you start a EN Form Block from stratch, you can see the value is by default “Petition Signup” (as appears on the screenshot above). But if you don’t actively click and select it, the value is not filled in. I edit the international page, selected another value from the dropdown and selected the Petition Signup again. And now it works!

      Pages with problems:

       Code missing gGoal:

      Pages working: 

      How the code should be fired: 


            pvincent Pieter Vincent (Inactive)
            jmarubay Julia Marubayashi
            0 Vote for this issue
            0 Start watching this issue