Set up (3 steps)
First, install Conditional Render from the Webflow Marketplace and choose the sites it can use. Then:
- Connect your site. Open Conditional Render in the Designer (press E, choose the app) and click Connect. Approve access for your site on Webflow's screen.
- Add the script. Click Add the script. The app adds one small script to your site's
<head>through Webflow's official Custom Code API. No code to paste. - Publish your site. Click Publish site. Rules only run on your published site.
Create a rule
- Select an element on the canvas.
- Pick a template (for example Show during dates or Visitors from a campaign) or Start from scratch.
- Choose Show or Hide, then set the conditions. Click the AND ⇄ OR pill between two conditions to switch how they combine. Use + OR group / + AND group to mix both, e.g. Member is logged in AND (came from LinkedIn OR link has
?ref=). - Click Save, then Publish in the bottom bar.
Test before you publish
Rules don't run on the design canvas. Use Preview as at the top of the panel to pick a visitor, such as a new visitor from Google or a returning member, or set up a custom one (time, where they came from, link parameters, device, logged in or not), and see whether each element would be visible. Rules on this page, on the panel's home screen, lists every rule on the page with an eye showing whether that visitor sees it.
Check a rule on your live site
Add ?cv-debug to any page address (for example yoursite.com/?cv-debug) and open the browser console: for every element with a rule, it logs whether it's shown, hidden, or ignored because its rule is invalid. One invalid rule never stops the others.
Conditions
- Date & time
- Date between / before / after, time of day (ranges can cross midnight), day of the week. Uses the visitor's local time.
- Traffic source
- Google, Bing, AI assistants (ChatGPT, Perplexity, Claude, Gemini), LinkedIn, Facebook, Instagram, X, YouTube, Reddit, any other site, or typed the address. Some apps and browsers hide where a visitor came from; for links you share, add UTM tags and use the Campaign (UTM) condition.
- Campaign (UTM), link parameters, page address
- The first campaign a visitor arrived with is remembered across pages.
- Visitor
- New or returning (a new visit starts after 30 minutes of inactivity), number of visits, scroll depth, time on page.
- Device & language
- Mobile, tablet or desktop (Webflow's breakpoints), site language, browser language.
- Members
- Logged in / logged out and member plan, with Memberstack. See Member providers for other login tools.
- Collection lists, forms, cookies, saved browser values
- Hide a list when it's empty or by number of items, show form fields based on other answers, match cookie or localStorage values.
Supported member providers
- Memberstack (supported and tested): detected automatically. Member and Member plan conditions use
$memberstackDom.getCurrentMember(). Plans match by plan name or plan ID. - Other login tools (advanced, not officially supported): your own code can tell Conditional Render who is logged in by setting this, before or after the script loads. You are responsible for keeping the value correct.
<script>
window.ConditionalMember = { loggedIn: true, plan: "Pro" }; // plan: string or array
document.dispatchEvent(new Event("conditional:refresh")); // re-check rules after a change
</script>They run in the visitor's browser: hidden content is still in the page and can be revealed. Never use them to protect paid or private content. Use your membership tool's gated content for that.
What the script stores in the visitor's browser
The script makes no network requests and sends nothing anywhere. It only stores something when a rule on your site needs it, and only these keys:
| Key | Where | Contents | Used by | Kept for | Deleted |
|---|---|---|---|---|---|
cv:visits | localStorage | Number of visits (a new visit after 30 min away) | New/returning visitor, Number of visits | Until 365 days without a visit, then starts over | On consent withdrawal, or by clearing site data |
cv:last | localStorage | Time of the last page view (timestamp) | Same as above | Same as above | Same as above |
cv:utm | localStorage | The first campaign's utm_* parameters + when it was saved | Campaign (UTM) remembered across pages | 30 days, then the next campaign replaces it | On consent withdrawal, or by clearing site data |
cv:ref | sessionStorage | The external site the visitor arrived from (empty if none) | Traffic source on later pages | Until the tab is closed | When the tab closes, or on consent withdrawal |
Only when needed. When you save a rule that uses visits, campaigns or traffic source, the app marks the script so it remembers that on every page (data-store on the script tag). Without such rules nothing is stored.
Read-only data. Cookie, Saved browser value and Form field conditions read only the names you enter in your rules, never anything else. Names that look like credentials or payment data (containing e.g. token, session, auth, password, card) are never read, and the panel marks them as invalid. Form fields are never read from login, sign-up or payment forms, nor password, hidden, file or payment fields.
Cookie consent
Visit counts, the remembered campaign and the landing referrer are non-essential personalization data. If your site uses a consent banner:
- In the app, open ⋯ → Wait for cookie consent and publish. The script then stores and reads nothing until the visitor agrees.
- Tell the script about the visitor's choice from your banner's “accept” / “reject” callback. Setting it before the script loads works too.
window.ConditionalConsent = true; // visitor accepted (e.g. "preferences"/"personalization")
window.ConditionalConsent = false; // visitor declined or withdrew: everything stored is deletedExample (adapt the event and category names to your banner):
<script>
// Called by your consent banner whenever the visitor's choice changes.
function onConsentChange(consents) {
window.ConditionalConsent = !!consents.personalization; // or "preferences", "functional"…
}
</script>Every banner (Finsweet Cookie Consent, Cookiebot, OneTrust, Osano…) has its own callback for this; see its documentation. The only thing Conditional Render needs is window.ConditionalConsent = true / false.
Until consent is given, rules still work, but every visitor counts as a first-time visitor, campaigns are only read from the current page's link, and traffic source only from the current page's referrer. Date, time, device, language, member, list, form and link-parameter rules are unaffected.
Even without “Wait for cookie consent”, setting window.ConditionalConsent = false stops all storage and deletes what was stored.
Content Security Policy (CSP)
The script works under a strict CSP without 'unsafe-inline':
- It adds its CSS as a constructed stylesheet (not an inline
<style>tag), which CSP doesn't block. In older browsers without constructed stylesheets it falls back to settingdisplay: noneon hidden elements through the CSSOM, which CSP also allows. - It runs no inline scripts and makes no network requests.
What your policy needs:
script-src 'self' https://www.flowcooks.com;The script tag carries an SRI integrity hash, so the browser refuses it if the file was changed. No style-src exception and no connect-src entry are needed.
Webflow's own conditions
If an element also uses Webflow's built-in conditional visibility, it only appears when both Webflow's conditions and your rule allow it. The rule editor warns you when that's the case.
Limits
Rules show and hide content in the visitor's browser, so hidden content is still in the page source. Don't use Conditional Render to protect paid or private content.
Remove Conditional Render
- One site: in the panel, open the ⋯ menu → Remove script from site, then publish.
- All sites and access: ⋯ → Disconnect app. This removes the script from every site connected through the same authorization and revokes the app's access. Publish each site afterwards.
- Already uninstalled? Go to Site settings → Custom code, delete the Conditional script, and publish.
Changes to the script take effect after your next publish.
Email adrian@flowcooks.com or see Support.