Page Targeting
Target messages based on where users are in your application. Show contextually relevant messages on specific pages.
Available Fields
Page URL
Full URL including domain
https://app.example.com/dashboard?tab=overview
Page Path
Path only (no domain or query)
/dashboard
When to Use Each
Page URL
Use for:
Exact URL matching
URLs with specific query parameters
External or specific domain pages
Page Path
Use for:
Path-based matching (recommended)
Works across domains (dev, staging, prod)
Cleaner rules without domain clutter
Common Patterns
Specific Page
Show on exact page:
Section of Your App
Show on all pages in a section:
This matches:
/settings/settings/profile/settings/team/settings/billing
Excluding Pages
Show everywhere except specific pages:
Or exclude a section:
Multiple Pages (OR)
Show on several specific pages:
URL Contains
Match pages containing a pattern:
This matches:
/settings/user/settings/account/settings/profile
With Query Parameters
Match specific URLs with parameters:
Or:
Operators
Equals
Exact match
Path equals /dashboard
Not Equals
Doesn't match
Path not equals /login
Contains
Appears anywhere
Path contains settings
Not Contains
Doesn't appear
Path not contains admin
Starts With
Begins with
Path starts with /app
Ends With
Ends with
Path ends with /edit
Examples by Use Case
Dashboard Announcement
Show feature tip on dashboard:
Checkout Offer
Show discount on billing pages:
Settings Help
Show help on any settings page:
Feature Page Banner
Announce related feature on specific page:
"Upgrade to Pro for advanced reports"
Onboarding by Page
Show contextual onboarding tips:
On projects page:
"Create your first project to get started"
On team page:
"Invite your team to collaborate"
Exclude Login/Signup
Show to authenticated pages only:
Combining with Other Rules
Page + Contact
Show upgrade prompt on billing page to free users:
Page + Event
Show feature tip to users who haven't used it:
Page + Time
Show to new users on specific page:
SPA Navigation
Cueflow automatically detects page changes in single-page applications (SPAs) by listening to the History API.
When users navigate:
Page context is re-evaluated
New matching messages appear
Non-matching messages are hidden
You can also manually trigger a check:
Best Practices
Use Page Path
Prefer page path over full URL:
Works across environments
Simpler rules
No domain issues
Be Specific
Match exact paths when possible
Use starts with for sections
Avoid overly broad contains rules
Test Navigation
Verify messages appear/disappear on navigation
Check SPA transitions work correctly
Test browser back/forward
Consider Context
Match message content to page
Don't show unrelated messages
Use page context to enhance relevance
Troubleshooting
Message shows on wrong pages
Check rule operator (equals vs contains)
Verify path format (leading slash)
Test with exact path from browser
Message doesn't appear on any page
Check the path value matches exactly
Verify no conflicting rules
Test with simpler rules first
SPA navigation issues
Ensure Cueflow.init() was called
Check console for errors
Try Cueflow.check() manually
Last updated