Cookie components not working

Hi, While we are still configuring cookie consent, when we push to prod, I don’t want any cookie elements loading so I put display on none ever since then when I try to put the elements back on nothing seems to happen when you interact with any of the elements.

I have removed the components and styles and tried to start from scratch but same result.

What is the best practice to configure Cookie Consent but not launch any elements to prod.

What am I doing incorrectly?

Site URL

Required: Please provide a staging/production URL where we can see the issue

Steps to Reproduce

  1. [First step]
  2. [Second step]
  3. [Third step]

Expected Behavior

[What did you expect to happen?]

Actual Behavior

[What actually happened?]

Video/Screenshots

Required: Please provide a short screen recording showing the issue

  • Video link: [Loom/Screen recording URL]
  • Screenshots (if applicable): [Upload or link to screenshots]

Additional Context

  • Browser: [e.g., Chrome 120, Safari 17]
  • Device: [e.g., Desktop, iPhone 14]

NDA Notice: If you’re under an NDA, please feel free to send us a Direct Message/Email with the above information.

Hello @Susan_MacPhee!

There seems to be an issue with your script tag.

An opening <script> tag has been added, and it is preventing the loading of the script

Removing it should fix the issue as it is hopefully shown in this video

You can hide the elements in production by setting a hide class to the fs-consent_component wrapper. Or set the visibility to hidden to completely prevent the loading of elements on the published site.

If no one has told you yet today, let it be me, YOU ARE BRILLIANT!!

Thank you so much Luis!!

You are welcome! Happy to help! :raising_hands:

1 Like