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

EN Form Block not firing gGoal dataLayer value

    XporterXMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: 2.34.2
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Sprint #139
    • Section:
      Block: EN Form
    • Track:
      Development
    • Repositories:
      planet4-plugin-gutenberg-engagingnetworks

      Description

      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. 

      Issue 

      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: 

       

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pvincent Pieter Vincent
                Reporter:
                jmarubay Julia Marubayashi
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: