How to Display Blocks Based on URL Parameters?

📝 Note: This is part of the Otter PRO features library, which you can get from here.

Blocks visibility can be controlled using the Visibility Conditions that Otter brings in. These can be found under Block Tools and clicking on them to create a separate panel.

After enabling the panel, open it to insert conditions. This article will present an example of Query String visibility conditions:

The Query String condition will show the block based on the parameters in their URL. In this example, if the user's URL contains ?utm_source=facebook, the page will show the cats' images:

URL corresponds to the condition

URL not corresponding to the condition

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us