Conditional HTML Page Headers

Hi Everyone,

I’m trying to integrate drift into a single page bubble application. Ideally, I’d be able to run the javascript header only when a certain group is visible.

Is there a way to do something like this? Should I just try run a javascript function when the group is visible? However, I’d also like to end the function when the condition is not true.