Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

Target delivering content twice. Content is getting duplicated on experience.

Avatar

Level 6

I was facing some issues with target for quite sometime. 

Created an XT in target with three experiences and changed the HTML using VEC.
I had changes in three locations, but when activated, one of the updated content was delivering twice, where the rest were all good.

The issue was not observed in the VEC preview mode, only in the live page.

Verified/Rechecked the modifications, found no issues.

Any inputs on why the target would deliver the content twice would be helpful? Any previous experiences where someone has faced this before.
 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @jezwn 

I want you check below things,

Are you using any loop or intervals to make changes?

Target calls getting triggered only once on page?

Use mboxtrace to debug further using developer tools. You'll definitely find some bug there.

 

If all these things are done and tested and issue still persists let me know.

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

Hi @jezwn 

I want you check below things,

Are you using any loop or intervals to make changes?

Target calls getting triggered only once on page?

Use mboxtrace to debug further using developer tools. You'll definitely find some bug there.

 

If all these things are done and tested and issue still persists let me know.

Avatar

Level 6

Hi @Gaureshk_Kodag The changes are direct HTML changes, not using any loops or intervals. The target call is only getting fired once.
The issue is not persistent always, it appears intermittently. With the mboxtrace no issues were observed.

 

Avatar

Level 2

This happens to me frequently when I use the insert HTML option in the VEC. I do not know why it happens.

But, when I notice it, I quickly switch to adding the content via script like this, wrapping my updated element/content in a parent element with its own ID...

var newcontent = `
<div id="temp_tt">
<div id=actualcontentelement>New content here</div>
</div>
`;
 
          if (document.querySelectorAll('temp_tt').length < 1) 
          {
document.querySelector('#actualcontentelement').innerHTML += newcontent;
          }