Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.
SOLVED

At.js custom events

Avatar

Community Advisor

Hi Experts, I was trying to check the performance of webpage and tried using at.js custom events to evaluate the same.

1. As per the at.js working flow :
2. At.js is loaded
3. Body is hidden
4. response is received
5. body is unhide and css selector recieved in response is hidden
6.Offer is applied
7. css selector is unhide


Before the load of at.js I have executed new Date().getTime(); in order to check the time before at.js load.

Now I am fetching the time after each and every custom events firing mentioned below in order to get the time taken by target starting from target load till offer rendering.

The help doc tells that :

Content Rendering Succeeded
Constant: adobe.target.event.CONTENT_RENDERING_SUCCEEDED
String Value: at-content-rendering-succeeded
Description: Offer rendering was successful. DOM changes have been applied.

 

Content Rendering Start
Constant: adobe.target.event.CONTENT_RENDERING_START
String Value: at-content-rendering-start
Description: This event is fired before selector polling is started and content is rendered to the page. You can use this event to track the content rendering progress.

so wanted to ask when does "CONTENT_RENDERING_SUCCEEDED" and "CONTENT_RENDERING_START" is fired after which step mentioned above

1 Accepted Solution

Avatar

Correct answer by
Level 3
Firstly, I think that these two custom events only work if you are creating offers via the VEC and not using custom code offers. I assume that content render start firing is not tied directly to the hide code?

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3
Firstly, I think that these two custom events only work if you are creating offers via the VEC and not using custom code offers. I assume that content render start firing is not tied directly to the hide code?