Capture Behavioural Rules

What use is a popup form if you end up just showing it to everyone? This can be frustrating for users and also hurt your conversion rates.

That's where our behavioural rules come in. Rules allow you to specify very tailored rules that only show your Capture once they are satisfied.

The result is a more targeted experience and increased flexibility in what you can achieve with your campaigns.

Gleam capture shown on website

What's Possible?

The possibilities are endless, but here's a breakdown of the most popular uses for our Behavioural Rules:

  • Triggering based on page activity (Time on page, amount of page scrolled or interaction with a specific element)
  • Showing a coupon or special offer to someone who's showing intent to leave your site
  • Showing specific messages based on where a user navigates from (for example from an Ad or a partner site)
  • Embedding the Capture on your landing page or blog posts
  • Letting users know about special offers based on their purchases (i.e. Free shipping or discounts)
  • Show specific messaging based on the users language or country
  • Detect users leaving your shopping cart and try to win them back
  • Show different messaging based on the users device
  • Change & test your messaging or templates for advertising campaigns (to help increase conversions)

How Rules Work + Grouping

Before we dive into the rules it's important first to understand how they work.

Everything inside a specific rule group is chained together with AND, which means everything must be satisfied for the Capture to show.

Gleam interface showing capture rules

For example, the Capture above will show on the following conditions:

  • Users who have not previously completed this Capture
  • Users who have not closed this Capture
  • The Current URL contains /blog/

Rule Grouping

By default on all plans except Premium your Rules are grouped into a single rule group. On the Premium Plan you can create multiple rule groups.

This can be useful if you want to adapt a rule to function differently without having to create a separate Capture.

For example:

  • Rule Group 1: Show to logged in users who have visited the /cart/ page
  • Rule Group 2: Show to logged in users who have visited at least 20 pages
  • Rule Group 3: Show to logged in users who are about to exit the site

Remember that groups are chained together via OR, so it's possible for one group to override another simply because the first group gets ignored but the user satisfies the second group of rules.

Default Rules

When you create a new Capture or add a new Rule Group we add a few default actions:

Gleam interface showing capture rules with default actions

These actions just ensure that your Capture stops showing when someone either completes it or closes it. If you remove these you might annoy users so be careful.

Rule Group Example

Gleam interface showing capture rules with 2 different rule group triggers

The example above has two Rule Groups, the first one will trigger for:

  • Users who have not previously completed this Capture
  • Users who have not closed this Capture
  • The Current URL contains /blog/

Or the second one will trigger for:

  • Users who have not previously completed this Capture
  • Users who have not closed this Capture
  • The user has visited the site from facebook.com

Rule Match Chaining

Certain rules allow you to include multiple matches which can help you set up more targeted and specific conditions for triggering your Capture.

When you add multiple matches to a rule you can choose to chain them together using either AND or OR.

Chaining a rule's matches using AND means that every condition in your rule must be met in order to satisfy the rule.

For example, this Selector rule is chaining matches using AND, so the rule will not be satisfied unless every condition is met. This means that h1 must contain "Store" and the .product-title selector must be present for the rule to be satisfied.

Gleam interface showing capture rules with rule match chaining

Chaining a rule's matches using OR means that if any condition in your rule is met the rule will be satisfied.

For example, this Selector rule is chaining matches using OR, so the rule will be satisfied if any of the conditions are met. This means that if h1 contains "Store" or h1 contains "Collection" the rule to be satisfied.

Gleam interface showing capture rules with rule match chaining

Rules

Each individual rule sits under a number of different categories:

excludes, triggers, visitors, geo-location, schedule, acquisition, browser

Excludes

By default we add two exclude rules to newly created Captures. You can remove these, but they are there to ensure you don't potentially annoy visitors with Captures that keep showing all the time.

Existing Subscribers

Gleam interface showing capture rules with exclude exisiting subcribers action

The Existing Subscriber rule ensures that if someone has completed this Capture or any other Capture on your site that it won't trigger for them again. Please note, this only works for subscribers that we are aware of, not previous subscribers before you started using Capture.

Closed Capture

Gleam interface showing capture rules with exclude users who have closed capture action

The Closed Capture rule sets a cookie that prevents the capture opening for users again if they have purposely closed it.

Exclude if Visited URL

Gleam interface showing capture rules with exclude users who have visited URL action

This rule prevents a Capture from showing if a user has previously visited a specific URL on your website.

Capture must have been installed, this will not work for users that have visited specific URL's before you started using Capture.

Triggers

On Exit

Gleam interface showing capture rules with show capture on exit

The On Exit rule allows you to show Captures when a user is indicating that they are about to leave your site.

Gleam capture on website showing user leaving and capture popping up

You can set which devices you want this to show on and also how sensitive it is when detecting the exit.

Scrolled % Of Page

Gleam interface showing capture rule scrolled % of page

The Scrolled % Of Page rule allows you to only show a specific capture once a user has scrolled down a certain % of the page. Perfect for articles, blog posts or long-form content.

Manual

Gleam interface showing capture rule manual trigger

You can hide Captures and just trigger them manually with this rule, the most common use of this is to create content upgrades or ways to reward users for clicking on a specific button or element on your landing page.

You can see it in action if you click the Get our latest posts via email here in this finding customers for your business blog post.

Times Shown

Gleam interface showing capture rule times shown rule

The Times Shown rules allows you to determine how often a Capture gets shown to a user, you can set it per visit or ever.

Javascript

Gleam interface showing javascript function capture rule

Campaign

Gleam interface showing capture campaign rule

Gallery

Gleam interface showing capture gallery rule

The Gallery rule allows you to show Captures when a Gallery appears or when a user votes for an item in a Gallery.

Can Display After Closed Captures

Gleam interface showing capture closed capture rule

This rule allows you to trigger more than 1 Capture of the same type on the same page. Say for example you want to pop up on when someone hits the page, then another when someone is about to exit.

Selector

Gleam interface showing capture selector rule

This rule allows you to trigger a Capture when an element defined by selector is present. All you need to do is enter a CSS Selector and choose if you want to trigger the Capture when the selector is present or when it is not present.

The Selector rule can also trigger a Capture when a specified CSS Selector either contains or does not contain a certain value.

Gleam interface showing capture selector rule with 1 selector

You can incorporate multiple selectors into your rule. You can have Captures trigger when any of the selector elements are present using the OR function.

Gleam interface showing capture selector rule with multiple selectors

Or you can require all of the selector elements to be present for a Capture to trigger with the AND function.

Gleam interface showing capture selector rule with multiple selectors

You can learn more about how you can use the Selector rule by clicking here.

Visitors

New Visitor

Gleam interface showing capture new visitor rule

The New Visitor rule will only popup Captures to users that haven't visited your site before. Do not combine this rule with Returning or it will not work.

Returning Vistor

Gleam interface showing capture returning visitor rule

The Returning visitor rule will only popup Captures to users that have visited your site before. Do not combine this rule with New or it will not work.

Time On Site

Gleam interface showing capture time on site rule

Use this rule to show a Capture after a user has spent a certain amount of time on your site.

Time On Page

Gleam interface showing capture time on page rule

Use this rule to show a Capture after a user has spent a certain amount of time on your page.

Pageviews

Gleam interface showing capture page views rule

Use this rule to show a Capture after a user has viewed a certain number of pages on your site.

Visited x Times

Gleam interface showing capture visited x times rule

Use this rule to show to users who have previously viewed x pages on your site.

Idle Time

Gleam interface showing capture idle time rule

Use this rule to show to users who have idled for x seconds on your site.

Geo-location

Country

Gleam interface showing capture country rule

You can limit Captures to specific countries, this allows you to really tailor messaging based on where in the world your visitors come from.

For example, we use this to let users from certain countries know that we support their language in our Competitions widget.

Language

Gleam interface showing capture language rule

You can limit Captures to specific browser languages too.

Geofence

Gleam interface showing capture geofence rule

For more granularity, you can limit Captures to show within a specific area on the map. Just surround your desired area with the geofence.

Schedule

Time

Gleam interface showing capture time rule

Date

Gleam interface showing capture date rule

Acquisition

Direct Traffic

Gleam interface showing capture direct traffic rule

This rule allows you to popup Captures if the traffic source is direct, this means that the user comes to your site without any referrer.

Referring Domain

Gleam interface showing capture referring domain rule

The Referring Domain rule allows you to show Captures based on the referring domain. For example, show a specific Capture for facebook.com referrals, or even referrals from your blog.

Past Referring Domain

Gleam interface showing capture past referring domain rule

The Past Referring Domain rule allows you to show a Capture based on a domain that they have come to your site from in the past.

Current URL

Gleam interface showing capture current URL rule

The Current URL rule allows you to display a Capture based on the current URL that the user is on. This is perfect to show a Capture on a specific page or section of your site.

Visited URL

Gleam interface showing capture visited URL rule

The Visited URL rule allows you to display a Capture based on the previously visited page on your site.

You can also set a time-frame for how recent the visit must be for the Capture to appear.

Query String

Gleam interface showing capture query string rule

The Query rule allows you to display a Capture based on a query string in the URL. For example if you use UTM tags in Google Analytics, or even other query strings.

Past Query String

Gleam interface showing capture past query string rule

The Query rule allows you to display a Capture based on previous query strings in the URL.

Cookie Match

Gleam interface showing capture cookie match rule

Browser

Device

Gleam interface showing capture device rule

Operating System

Gleam interface showing capture operating system rule

Browser

Gleam interface showing capture browser rule

Ad Blocker

Gleam interface showing capture ad blocker rule

The Ad Blocker rule allows you to detect if a user is blocking or not blocking ads, then show (or don't show) a Capture accordingly.

For example you might want to show a non-intrusive bar asking users to whitelist your website in their Adblocker (if like enjoy your content).

Screen Width

Gleam interface showing capture screen width rule

The Screen Width rule allows you to display a Capture if the users screen dimensions are within the certain width that you provide.

This is useful if you want to target specific devices or screen sizes with a certain Capture.