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

Insert datalayer fields on the campaign content (CPP) backend

XMLWordPrintable

    • 6
    • Campaigns
    • Sprint #83

      Problem:

      We need to add the same campaign fields (dataLayer) to the Campaign pages (CPP). A few fields should be mandatory (campaign, basket, scope). 

      The dataLayer.push with campaign values should be injected on the <head> before Google Tag Manager code. 

      Note: The previous ticket PLANET-3324  has already applied those fields to the default planet 4 pages backend is related to the previous ticket 

      Description:

      1. Create campaign fields on the campaign page (content type) backend.

      *If possible, the source list for those dropdown values should editable from the same place on the code (for both types of pages). If we need to update this in future, we could do it from only one place. 

      3. Make the fields Campaign, Basket and Scope required

      4. The dataLayer.push code should capture the values defined in the fields above.

       Important: the dataLayer code needs to be injected on the <head> before the GTM code.

       

      dataLayer.push({

      'gCampaign' : '[value defined in Campaign field]',

      'gBasket' : '[value defined in Basket field]',

      'gScope': '[value defined in Scope field]',

      'gDepartment': '[value defined in Department field]',

      {color:#205081}});

      User stories

      • As a web editor, I want to be able to define the campaign standards when creating/editing a default page or a campaign page
      • As a data analyst, I want to be able to track the performance of any page that could have a form block through a set of standards (campaign, basket, scope)
      • As an admin, I want to make mandatory for web editors to define the campaign standards when creating a new campaign page (cpp)

        1. screenshot-1.png
          195 kB
          Sagar Deshmukh
        2. UAT_3396.jpg
          589 kB
          Julia Marubayashi

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

              Created:
              Updated:
              Resolved: