To create a Segment based on page history:
- In the sidebar menu on the right, open the Segments tab.
- Click Add Segment in the upper right hand corner, or click Edit to modify an existing one.
- This will open a window with all of the different Segment options.
- Choose Behavior from the menu on the left. This will open all the behaviorally driven Segments.
- Enter the pages of your site that you wish to include or exclude.
There are 3 formats you may choose from when deciding what URLs to include or exclude:
CONTAINS - This is the most typical usage of the feature. Here you can type a word or words that distinguish the pages you want to target. If you type the word "cart," then any page on your site with the word "cart" inside the URL will be included or excluded.
MATCHES - This format allows you to be extremely precise. For example, if you only want a Nugget to appear on your homepage, then you can include your entire URL - http://www.40nuggets.com. Note that if your homepage can be accessed using different protocols (http, https) you must list them all in separate entries. Same applies for subdomains (http://40nuggets.com AND http://www.40nuggets.com). Every possible way to access your homepage should be included as a separate list item when using this format.
**MATCHES may be used to target specific newsletter subscribers (i.e., those who arrived at your site from a specific email campaign). To do this, enter the full URL with the correct UTM parameters.
REGEX - Regular expressions (regex or regexp for short) are special characters that match or capture portions of a field, as well as the rules that govern all characters. It's a language you can use which allows you maximum specificity and flexibility when defining your rules for which pages to include or exclude. If you have a set of pages defined using regex in Google Analytics, you can copy the same rules into your Nugget settings. For more info, see Google's article about regular expressions, or learn how to write them here: http://www.regular-
- Remember to name your segment something that will help you remember who you are targeting, then click Save.
**Note: This feature allows you to create a Segment of visitors based on their browsing history. To learn how to include or exclude Nuggets from different pages on your site, see this article.
**Nota Bene: Targeting visitors based on behavior is persistent for lifetime.