Why is adobe.target.event.CONTENT_RENDERING_FAILED event fired on pages outside page delivery scope? | Community
Skip to main content
Level 2
November 25, 2024
Solved

Why is adobe.target.event.CONTENT_RENDERING_FAILED event fired on pages outside page delivery scope?

  • November 25, 2024
  • 3 replies
  • 811 views

I'm trying to identify via javascript if I'm on an experiment page: like a page within the page delivery scope. Therefore I tried to check on the following adobe target events:

 

At the moment I found that I can confirm I'm within a delivery page if the following event is fired:

adobe.target.event.REQUEST_SUCCEEDED

 

But then, this event is not fired on other pages within page delivery scope like the control variant or variant pages where clicktracking html is not available. I tried using the event:

adobe.target.event.CONTENT_RENDERING_FAILED


This last event fires on control and pages without the injected html, but also on any other page outside the page delivery scope.

Any suggestions on how to identify only pages within the page delivery scopes of the activity?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by RiteshY18

@ferransa consider using a script for how to identify only pages within the page delivery scopes of the activity.

- setup page type using window.targetPageParams funtion //

 pageType: document.body.getAttribute('data-page-type')

- on  html page update dom for //  data-page-type attribute 

- on custom audience rule have condition  to check  data-page-type attribute passed from via targetPageParams

3 replies

Gokul_Agiwal
Community Advisor
Community Advisor
November 25, 2024

Hi @ferransa  

If I  understood the question correctly, you want to determine whether a webpage is a part of delivery scope an Adobe Target activity, using at.js custom events, is that right?  And the page delivery scope refers to mean - where the activity is designed to run. 

Is this correct understanding? 

pradnya_balvir
Community Advisor
Community Advisor
November 25, 2024

Hi @ferransa ,

 

Content rendering failed due to wrapping mbox element missing, selector can not be found on the page.

RiteshY18
Community Advisor
RiteshY18Community AdvisorAccepted solution
Community Advisor
December 9, 2024

@ferransa consider using a script for how to identify only pages within the page delivery scopes of the activity.

- setup page type using window.targetPageParams funtion //

 pageType: document.body.getAttribute('data-page-type')

- on  html page update dom for //  data-page-type attribute 

- on custom audience rule have condition  to check  data-page-type attribute passed from via targetPageParams