OptinMonster makes it easy to show your campaigns only to visitors with a specific anchor tag. Use the guide below to set up the anchor tag display rule for your campaigns.
In this article, you’ll learn how to target a campaign to an anchor tag.
When you see Anchor tag mentioned in this article, the anchor tag is a specific portion of a web page’s URL, but not the full URL. The anchor tag is the text after a hash mark at the very end of the URL.
Anchor tags can be used to link a visitor to a specific part of your webpage, like a heading in the middle of the page. For example, in the URL ‘https://www.domain.com/page#heading’ the anchor tag is ‘heading’.
You can include or exclude a campaign from showing based on whether a specific anchor tag is present, or if it matches a pattern using RegEx.
Add Anchor Tag Rule
When you’re using anchor tags on your site, you can easily direct visitors to a specific place on a page, or trigger an OptinMonster campaign.
To target your campaign to a specific anchor tag, follow these steps:
Navigate to the Display Rules view in the campaign builder.
When adding a new rule, select Anchor Tag Targeting from the Targeting menu.
Next, choose how you would like to target your anchor tag. The following options are available for Anchor Tag targeting: