How to use sessionStorage for conditional content in Bricks?

Now I would like to dynamically change content in Bricks based on the value stored in sessionStorage — for example, showing a different message or section when the user comes from a Facebook ad.

My question:

Is there a way in Bricks to conditionally render or show/hide elements based on the value of sessionStorage?

If not directly through the UI, is there a recommended approach using custom code or conditions via Bricks’ native visibility settings?

Thanks in advance for any tips or workarounds!

1 Like

Have you managed to get an answer?

I am in a similar scenario, right now, and I would appreciate some directions!

Thanks!

Hello @knut_studio ,

This should help you.

1 Like

Thank you very much!!! :grinning_face: