Promolayer lets you use JavaScript global variable values as conditions, enabling fine-grained display control that goes beyond standard trigger settings.
⚠️ This feature is available on the Pro plan and above.
When to use this
This is useful when you want to show a display only when multiple conditions are all met (AND logic).
Show only after the user has scrolled 100% AND been inactive for 30 seconds
Show only to users who have performed a specific action
How to set it up
Open the Rules tab and go to "Which pages to show on."
Select "Multiple URLs & advanced targeting."
Add the "Has a JavaScript global variable" condition.
Enter the variable name and value.
Promolayer's built-in variables
Variable | Description | Example value |
| Current scroll percentage (%) |
|
Example: scroll 100% + 30 seconds of inactivity
Set only the "Inactivity trigger (30 seconds)" trigger.
Add the "Has a JavaScript global variable" condition.
Variable:
promolayerObj.currentScrollPercent, Value:100
The popup will appear only when the user has scrolled to 100% of the page AND been inactive for 30 seconds.
