Why Are Some Target Actions Duplicated in JSON Response & How are They Mapped to the Mark-up?

michael_johns_6 12-01-2018

Hi,

Could someone please explain to me why the actions that are returned by Target are sometimes duplicated in the JSON response? If by design, why and how does the AT.js code process these duplicates? Some examples are high-lighted below but there are many in the example below. Additionally how/where are they mapped to the actual mark-up changes/modifications that take place on the client's webpage?

{

  "sessionId": "a7d72ca5635a4e99a00c22c5a796a133",

  "tntId": "a7d72ca5635a4e99a00c22c5a796a133.28_41",

  "offers": [

    {

      "plugins": [

        "<script type=\"text/javascript\"> /*TT>SC | v3 ==> Response Plug-ins*/ window.s_tnt=window.s_tnt||'',tntVal='468970:0:0,'; if(window.s_tnt.indexOf(tntVal)==-1){window.s_tnt+=tntVal} </script>"

      ]

    },

    {

      "actions": [

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionContainerGreen:eq(1) > DIV.container:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionContainerGreen:eq(1) > DIV.container:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.section:eq(0) > DIV.flexHeaderContainer:eq(0) > DIV.flexRight:eq(0) > A.smallGreenButton:eq(0)",

"clickTrackId": "3.468970"

        },

        {

          "action": "trackClick",

"selector": "#luck > A.btn:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.section:eq(0) > DIV.flexHeaderContainer:eq(0) > DIV.flexRight:eq(0) > A.smallGreenButton:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "#marquee > A.btn:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionMargin:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionMargin:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "3.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionContainer:eq(0) > DIV.container:eq(0) > P.featureTextMargin:eq(4) > A.cta:eq(0) > STRONG:nth-of-type(1)",

"clickTrackId": "5.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionContainer:eq(0) > DIV.container:eq(0) > P.featureTextMargin:eq(4) > A.cta:eq(0) > STRONG:nth-of-type(1)",

"clickTrackId": "5.468970"

        },

        {

"action": "trackClick",

"selector": "#oneAccount > UL.hList:eq(0) > LI:nth-of-type(6) > STRONG.arrowLink:eq(0) > A:nth-of-type(1)",

"clickTrackId": "5.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.section:eq(0) > DIV.flexHeaderContainer:eq(0) > DIV.flexRight:eq(0) > A.smallGreenButton:eq(0)",

"clickTrackId": "7.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.section:eq(0) > DIV.flexHeaderContainer:eq(0) > DIV.flexRight:eq(0) > A.smallGreenButton:eq(0)",

"clickTrackId": "7.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionMargin:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "8.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionContainerGreen:eq(1) > DIV.container:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "8.468970"

        },

        {

"action": "trackClick",

"selector": "#luck > A.btn:eq(0)",

"clickTrackId": "8.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionMargin:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "8.468970"

        },

        {

"action": "trackClick",

"selector": "#marquee > A.btn:eq(0)",

"clickTrackId": "8.468970"

        },

        {

"action": "trackClick",

"selector": "HTML > BODY > SECTION.sectionContainerGreen:eq(1) > DIV.container:eq(0) > DIV.vertical-centered-text:eq(0) > A.greenButton:eq(0) > SPAN.greenButton--cta:eq(0)",

"clickTrackId": "8.468970"

        }

      ]

    }

  ]

}

Thanks,

Michael

Accepted Solutions (0)

Answers (0)