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

Fix campaign dataLayer script on P4 Posts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.14
    • None
    • 2
    • Analytics
    • Sprint #116

      Problem:

      The Campaign Standards (datalayer) dropdown started appearing on posts since PLANET-4088  was released. The problem is that values selected on the backend are not being fired via dataLayer.

      See examples here:
      1) Post: https://release.k8s.p4.greenpeace.org/brasil/blog/julinha-testando-datalayer/

      2) Page:  https://release.k8s.p4.greenpeace.org/brasil/julinha-testando-datalayer/
      3) CPP: https://release.k8s.p4.greenpeace.org/brasil/campaign/julinha-testando-datalayer-campaigns/

      I selected the campaign dataLayer values on the dropdown on all pages above, but the script is only fired on the pages and CPP:

       

       

      Solution:

      Fix the dataLayer.push script on posts (as they work on default planet 4 pages and campaign pages).

      Related tickets:

       

      • PLANET-4088 Add missing fields to Posts and Campaign edit pages
      • PLANET-3396 Insert datalayer fields on the campaign content (CPP) backend

            sdeshmuk Sagar Deshmukh
            jmarubay Julia Marubayashi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: