When using Web Vitals extension, I see the rating but why isn't the value data element being populated for the Cumulative Layout Shift (CLS)? | Community
Skip to main content
Level 2
July 6, 2023
Solved

When using Web Vitals extension, I see the rating but why isn't the value data element being populated for the Cumulative Layout Shift (CLS)?

  • July 6, 2023
  • 1 reply
  • 2204 views

Here's a screenshot of of analytics going through for 3 of the web vital attributes (FID, LCP, & CLS).. the value is coming through for FID and LCP but not CLS for whatever reason.

 

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 yuhuisg

I think I know why you're facing this problem. It is possible for CLS to return a value of 0, i.e. zero. However, I had incorrectly programmed the Metric Value (and Metric Delta) data elements to return "undefined" in such cases.

I've made a fix so that the data elements return 0 properly. I've submitted my v1.4.2 extension with this fix to Adobe for public release. Hopefully, Adobe can release my updated extension soon.

1 reply

yuhuisg
Community Advisor
Community Advisor
July 7, 2023

Hi, I'm the developer of that Web Vitals extension. What you're experiencing should not be happening.

Can you share a test page that has this problem, so that I can observe what is happening to troubleshoot further?

deecsilvaAuthor
Level 2
July 7, 2023

Hi yuhuisg, I'm unfortunately unable to share a test page, I know that isn't very helpful in troubleshooting.  But we followed the documentation for setting the variables for each of the elements.. it's just odd that everything would work except for a CLS value

deecsilvaAuthor
Level 2
July 10, 2023

I think I know why you're facing this problem. It is possible for CLS to return a value of 0, i.e. zero. However, I had incorrectly programmed the Metric Value (and Metric Delta) data elements to return "undefined" in such cases.

I've made a fix so that the data elements return 0 properly. I've submitted my v1.4.2 extension with this fix to Adobe for public release. Hopefully, Adobe can release my updated extension soon.


Thank you for the insight... How frequent does Adobe release extension updates?