detect smart rules in editor view

Hi I’m investigating if there is any possibility to show some kind of alert in page editor view if page has any smart rules.

Hey, @michalo :waving_hand: Welcome to the community! Thanks for your question. You are not missing a documented option. I agree with you, something like this would be useful. You’ll either need to add comments to your HTML where smart rules are added. Like this (a super basic example):

<!-- SMART RULE: This page uses a smart rule to display different content to different visitors -->

Or you can manually check for it.

I understand this isn’t the alert you are looking for. And I don’t want you searching for an option that doesn’t exist.

Best,

Jaycee

I wish there is hubl function or any sign in html source of the page that we can check for using JS for example.