I have an activity where I have inserted HTML using Insert After or Insert Before on an element. Whenever I use the preview links to load the activity, it is like it fires twice and anything I have inserted after or before another element shows twice. Is there any way to get the preview link to only fire changes once?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@MelissaMa7 I've reviewed the URL you provided and observed only a single call, with the experience rendering correctly on my end. However, I was able to replicate the double-loading issue you described when repeatedly changing cookie consent (accept → reject → accept). This happens because the page isn't reloading after the consent modifications. To resolve this, I suggest implementing a page reload after the second consent change.
@MelissaMa7This issue may occur if the Adobe Target page load request is firing twice on the page or if the modifications were duplicated during the activity setup. If possible, please share the preview URL or the Target call response object so we can better understand the issue and provide a more accurate solution.
Views
Replies
Total Likes
Yes, it seems like the page load request is firing twice. Here is the preview link: Cat® Filters & Fluids. We have Adobe Target set to fire after you accept cookies. I will say I am facing another issue too where I have to accept cookies, reject them, and then accept them again for the experience to show. After doing that it shows but inserts all my changes twice.
Views
Replies
Total Likes
@MelissaMa7 I've reviewed the URL you provided and observed only a single call, with the experience rendering correctly on my end. However, I was able to replicate the double-loading issue you described when repeatedly changing cookie consent (accept → reject → accept). This happens because the page isn't reloading after the consent modifications. To resolve this, I suggest implementing a page reload after the second consent change.
This may be root cause of the Target script getting injected twice on the page on cookies acceptance. Once cookies are accepted, if you separately open new tab, it should show only single call for Adobe target.