For Workers & Pages, what is the name of the domain?
a-hr.xyz
What is the error number?
n/a
What is the error message?
Form elements do not have associated labels
What is the issue or error you’re encountering
Google pagespeed insight fires an error Form elements do not have associated labels for elements within cf_consent-container
What steps have you taken to resolve the issue?
I suppose this should be fixed at Zaraz side
What are the steps to reproduce the issue?
Run Google pagespeed insight, I see this error at least on 2 different sites
Screenshot of the error
@nerdontour, please have a look
The code I shared earlier didn’t fix the error.
It was rather masked by another setting I’ve changed (Bot Score Threshold. Block loading of Zaraz for automated traffic to your website → “block automated only”)
It would be really great to hear some suggestions from the community and/or Zaraz support team
it’s a bit disappointing to see no response in 5 weeks
it’s a bit disappointing to see no response in 7 weeks
It would be great to hear some suggestions from the community and/or Zaraz support team
This thread has been open for 3 months now.
Moreover, recently, I temporarily upgraded to PRO and logged case #01444612, which the Cloudflare support team also ignored for a month.
This is very disappointing as we are not ready to use this brilliant solution from Zaraz because of the minor bugs that Cloudflare is reluctant to acknowledge and fix.
@yoav_zaraz FYI, as it looks like you are/were the only one who cared
Surprisingly, I received an AI-generated response from Cloudflare!
Could someone please point me in the right direction regarding the following suggestion (unless it was an AI hallucination):
you can add the aria-label attribute to the cf_consent-element elements, which will provide a label for screen readers and improve accessibility.
You can add the aria-label attribute using the Zaraz Web API by including the following code: zaraz.set(“cf_consent_element_aria_label”, “Your consent label”).
Alternatively, you can use the Custom CSS tool in Zaraz to add a label to the form elements.