Forms

Use targeting rules in pop-up forms and chatflows

Last updated: April 23, 2020

With targeting rules, you can control the pop-up form or chatflow your visitors see when they visit your site,  based on the website URL, query parameters, and the visitor’s information and behavior. Combine the different targeting options to tailor the chatflow or pop-up form to the specific visitor.

Website URLs

You can specify the pages a chatflow or pop-up form should appear on based on the website URL or the query parameters included in the URL.

When targeting visitors based on website URL, you can select a combination of rules to control when the pop-up form or chatflow should appear. The available targeting rules are defined below:

  • is all pages: the pop-up form or chatflow will display on all pages.
  • is: the pop-up form or chatflow will display on pages where the URL is exactly as specified in the targeting rule. For example, if the Website URL | is www.hubspot.com, the pop-up form or chatflow will NOT display on "www.hubspot.com/pricing.
    • If query parameters are specified in the rule, the query parameters will not be stripped and the full URL must be an exact match.
    • If query parameters are not specified in the rule, query parameters are stripped off before matching.
  • contains: the pop-up form or chatflow will display on any page where the URL contains the value specified in the targeting rule, including any query parameters. For example, if the targeting rule is Website URL | contains | www.hubspot.com, the pop-up form or chatflow will display on www.hubspot.com, www.hubspot.com/fr, www.hubspot.com/pricing, etc.
  • begins with: the pop-up form or chatflow will display on pages where the URL begins with the value specified. For example, if the targeting rule is Website URL | begins with | www.hubspot.com, the pop-up form or chatflow will display on www.hubspot.com, www.hubspot.com/pricing, etc. but not on help.hubspot.com
  • matches wildcard: the pop-up form or chatflow will display on any page where the URL has the same structure as the value specified, where * is treated as a wildcard. For example, if the targeting rule is Website URL | matches wildcard | www.hubspot.com/*/pricing, the pop-up form or chatflow will display on www.hubspot.com/marketing/pricingwww.hubspot.com/sales/pricing, and www.hubspot.com/service/pricing.
  • Query parameter: target your pop-up form or chatflow based on the query parameters included in the URL, the pop-up form or chatflow will display on pages where the URL has a query parameter that exactly matches the name and the value specified.
    • is: the pop-up form or chatflow will display on pages where the query parameter is exactly as specified in the targeting rule.
    • begins with: the pop-up form or chatflow will display on pages where the query parameter begins with the value specified.
    • contains: the pop-up form or chatflow will display on any page where the query parameter contains the value specified in the targeting rule.

query-parameter

Visitor information and behavior

Add another level of specificity to your targeting rules based on known information about the contact or visitor. Professional and Enterprise subscriptions can create additional filtering rules based on browser language, device type, country, and other types of visitor information.

You can hide or show your pop-up form or chatflow to specific visitors based on the following information:

Contacts

  • Segmented lists: if the visitor is a tracked contact in your database with specific lists memberships.
  • Visitor: if the visitor is a tracked contact in your database or an unknown visitor.

All visitors (Professional and Enterprise only)

  • Device type: the type of device that the visitor is using when they visit your site.
  • Browser language: the language the visitor has selected in their browser settings.
  • Country: the country where the visitor is from, based on their current IP address.
  • CTA clicked is: if the visitor clicked a specific CTA.
  • Days since last visit: the number of days since the visitor last visited your website.
  • Form viewed is: if the visitor has viewed a specific form.
  • Session count: the number of analytics sessions the visitor has had on your website.
  • Page/s visited: if the visitor previously visited a specific page URL.
  • Referral URL: if the visitor was linked to your website from a specific page URL.
  • SEO topic: if the visitor is currently viewing a page or blog post that's linked to a specific topic in the SEO tool.
  • SEO topic history: if the visitor previously viewed a page linked to a specific topic in the SEO tool.

visitor-info-and-behavior-chatflow-targeting-group

/forms/use-targeting-rules-in-pop-up-forms-and-chatflows