All Collections
Users
Segmentation
Creating segments for HTML elements or text on page
Creating segments for HTML elements or text on page

Learn how to trigger UserGuiding Materials based on your application's content.

Simay avatar
Written by Simay
Updated over a week ago

Overview

Your platform may display different interfaces under the same URLs depending on the user profile or segment. If you want to show different materials for each user group without sending user attributes, you may consider creating segments based on your page's text or an HTML element.

Let’s explore this functionality with two examples:

Show a Guide only if a certain HTML element is present on the page

  • Copy the HTML element’s CSS Selector (Class ID or name)

  • Go to the Users Page in your Panel

  • Select the filter “CSS Selector on Page”

  • Paste the CSS Selector into the filter

  • Rename your segment and save it

  • Go to the settings of your Guide

  • Select the custom segment you have just created under Audience Segmentation

Trigger a Guide with an HTML element on page

This way, the Guide will display only when that certain HTML element is present on the page.

Show a Guide only if a certain text is present on the page

  • Go to the Users Page in your Panel

  • Select the filter “Text on Page”

  • Type the text into the filter

  • Rename your segment and save it

  • Go to the settings of your Guide

  • Select the custom segment you have just created under Audience Segmentation

Trigger a Guide with a text on the page

This way, the Guide will display only when that certain text is present on the page.

Did this answer your question?