--- title: "Instrument Your Product using In-App Mapper" slug: "instrument-your-product-using-in-app-mapper" updated: 2026-11-23T12:30:28Z published: 2026-11-23T12:30:28Z canonical: "support.gainsight.com/instrument-your-product-using-in-app-mapper" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Instrument Your Product using In-App Mapper This article explains how to use In-App Product Mapper as a modeling and instrumentation tool. ## Overview Product Mapper allows you to model your product using a simple and powerful hierarchical tree structure that is designed to help you quickly and effectively map your product’s features and associate the tracked user events into the corresponding features and modules with zero coding. ## Prerequisite To use Product Mapper, ensure that the Gainsight PX tracking code is configured in your application. Anatomy of Product Mapper. For more information, refer to the [*Install Gainsight PX on Your Web App*](/v1/docs/install-gainsight-px-on-your-web-app) article. ## Instrument Your Product Product Mapper is an easy to use way of describing your product features with a simple point-click-describe method. Modules and features can be organized to match your application. For example, you can organize by modules and features or you can nest sub-modules under modules and add features at any level. To map your application: 1. Navigate to **Product Mapper** from the main menu. 2. In the **Map Product In-App** section, click **Get Started**. ![Landing Screen.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Landing_Screen(1).png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=r2JtPKQJNarVRMtU%2B0g5f%2FZXZ%2B8Uv7uZHPRDt8IMFq4%3D) 3. In the Launch In-App Product Mapper window, enter the URL of your product. 4. Click **Launch**. Gainsight PX displays the In-App Mapper in your application. ![in-app mapper_annotatde.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/mapper_annotated.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=Y0%2FcJ2MFJCnceEJYcwaVd8lKC6uAfy3esiVzSZbAOmk%3D) In-App Product Mapper helps you organize your product's features into a hierarchical tree structure directly on your application’s interface, for a seamless user experience. To instrument your product: 1. Add modules 2. Add features For demonstration purposes, the following demo application is used to demonstrate the process of identifying modules and features. Gainsight PX recommends applying the same process to your application. ![Demo website.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Demo_website.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=A1zJh6BoZH5C2z1p64TsGOQZ15fOWeVFX%2Fhq9Ms3Nac%3D) ### Add Modules A Module in Product Mapper represents a module in your product which can be a section, tab, or window of your application. While modeling your product, use modules and sub-modules driven by the way you describe your product and the way the UI is built. To create Modules: 1. In the floating mapper, click the *Add* button and select *Module*. ![Add nodule.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_Modules_1.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=VgoIqcrdac%2B3BAgV8A9d2prxGpzlHpCCRba6qm3l4ig%3D) 2. Enter the module name and press Enter. A new module is created. 3. (*Optional*) To create nested modules, click the *Edit* icon of parent module and select Add Module. 4. Continue to add modules or sub-modules corresponding to sections of your application. ![Add Module_added.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_Modules_2.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=1hpqR9HCfO4UCgzK4dNfvs%2BUBOonS2otEFpzJoAQlLs%3D) You can see that the application is modeled into a product tree. This product tree has many modules; Dashboards, Charts, Tables, and so on. Collectively the modules form the product tree of the application. ### Add Features A feature in Product Mapper represents a feature in your product. Once you have added modules, you need to add features for each module to track various metrics on your web page. The In-App Mapper provides you with an easy click-and-tag experience to map UI elements and create features in Product Mapper. While using the In-App Mapper, you can tag and create features using either of the following ways: - [Add feature to a module](/v1/docs/instrument-your-product-using-in-app-mapper#add-feature-to-a-module) - [Add rule as a feature](/v1/docs/instrument-your-product-using-in-app-mapper#add-rule-as-feature) #### Add Feature to a Module Adding a feature nested within a module helps you add multiple features of your product that may reside on the same page or section. To add a feature: 1. In the product tree, click the *Edit* icon of the parent module. 2. Click **Add Feature**. ![Add Feature.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_Feature.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=IcppEZRtGBRpI4Kkw4Qy11FJ6ci7htxrcyWXf%2BxNzDw%3D) 3. Enter the feature name and press Enter. A new feature is created. 4. Continue to add features for modules or sub-modules corresponding to your application. ![Add Feature_Added.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_Feature_added.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=%2Fl9Fb3j62xowBIBuCqIH0myzkAUiJVEYcFJgSCOu5m8%3D) #### Add Rule as Feature Adding a rule directly as a feature allows you to create features that are not part of any module or sub-module, and have to be tagged independently. Such rules will be created at the parent level (level zero) of the feature tree. **Business Scenario Example**: Consider you have a universal search present in the header of your application, and you wish to track each time the search box is clicked. Since the search box appears across your application, you may want to track it independently, without tagging to a specific module. For such a scenario, you can create a UI Element rule as a feature. To add rule as a feature: 1. In the floating mapper, click the *Add* button and select the rule you wish to create. Ensure that there is no item selected in the product tree. ![Add rule as feature.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_rule_as_feature.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=3KNmutcARlq%2FcBjkNPNEGhYWAwOC0I9tcoZsIDrFC9k%3D) 2. Create and save the rule to add it as a feature in the tree. For more information on how to create rules, refer to the [Add Rules](/v1/docs/instrument-your-product-using-in-app-mapper#add-rules) section. ### Add Rules Features consist of rules that are mapped to events from your application. The following are the types of rules you can use in a feature: - URL Rule - UI Element Rule #### URL Rule A URL rule is used to track the pageview event. In a single-page application, Gainsight PX generates a pageview event on URL change even if the page is not reloaded. To create a URL rule: 1. In the product tree, select the feature in which you want to create the rule. 2. In the floating mapper, click the *Add* button and select **URL Rule**. ![Add URL Rule_1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_URL_Rule_1.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=SqPSfocdsJBwyR7XNwrDD%2FR9Ynvyf5x6JphgDUEZNAE%3D) 3. Enter a name for the rule. 4. In the **URL Details** section, enter the URL of the page to be tracked. In this example, the URL of the Charts page is entered. This tracks the number of pageviews for the Charts page. ![Add URL Rule_2.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_URL_Rule_2.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=wHeipE8%2FX8VqqVFsbv0ernEB7PNqqSHs5K%2BNFvJ1qA4%3D) In the above example, whenever a user opens the above URL (accesses the Charts page), the rule is matched and the count of the number of Charts views is incremented by one. **Quick Tip: Use Wildcards for multiple instances of a URL. Click to expand.** You can use a Wildcard (*) to match multiple instances of a URL. Additionally, you can also use wildcards to match a rule. Consider a scenario in which you have multiple URLs for the Home page (for instance, Home/v1, Home/v2, Home/v3 and so on), but all three URLs redirect to the same Home page. In such cases, you can use the asterisk (*) wildcard to match all instances of the Home URL, as shown below: ![wildcard.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/wildcard.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=hiG%2BQRNjM1MjDQlw%2BxLZFVY5nRruNgoYqLzKH30cuOY%3D) In this case, the Home page view is incremented, irrespective of the URL used to access the page. You can also use the wildcard at the beginning of the URL in case you have multiple instances of the URL. 5. *(Optional)* Click **+** to add multiple URLs. 6. In case of multiple rules, define the logic from the Operator field. 7. Click **Apply**. The rule is created in the selected feature. Click Rules to view all rules created for the selected tree item. ![Add URL Rule_3.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_Url_Rule_3.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=zX2Bu%2Bac%2BTXdnfQO63Zx8IkFC7SxrLFRnnq1NbaO8IU%3D) #### UI Element Rule The UI Element rule tracks the number of times a clickable UI element (such as button) is clicked by matching against the DOM element using a unique CSS Selector. In-App Mapper allows you to click-and-tag UI elements to create accurate rules. This brings a unified rule creation capability for CSS selectors and texts. #### Create UI Element Rule To create a UI Element rule: 1. In the product tree, select the feature in which you want to create the rule. 2. In the floating mapper, click the *Add* button and select **UI Element Rule**. Alternatively, you can press **Control + M** on the keyboard to start mapping. 3. Click the UI element you want to use for the rule. 4. In the UI Element Rule window, enter a name for the rule. 5. In the **UI Element Details** section, verify the CSS selector chosen based on the UI element clicked. 6. (*Optional*) Click **Show Advanced Selector Configurations** if you wish to select a different CSS selector or enter a custom one. 7. (*Optional*) Click **Change Mapping** if you wish to change the UI element tagged to the rule. 8. Click Apply. [Create UI Element Rule](https://player.vimeo.com/video/841295649?h=36ef06b204&badge=0&autopause=0&player_id=0&app_id=58479) #### Create UI Element Rules with Text Matches You can use the Text Match option to create features with CSS plus text match. This helps in preventing applications with dynamic UI elements from experiencing CSS selector match issues, and provides flexibility to map the unique elements faster. To create a UI Element rule with text match: 1. In the floating mapper, click the *Add* button and select **UI Element Rule**. Alternatively, you can press Control + M on the keyboard to start mapping. 2. Click the UI element you want to use for the rule. 3. In the UI Element Rule window, enter a name for the rule. 4. In the **UI Element Details** section, verify the CSS selector chosen based on the UI element clicked. 5. (*Optional*) Click **Show Advanced Selector Configurations** if you wish to select a different CSS selector or enter a custom one. 6. Enable the **Text Match Details** toggle switch. 7. Select the logic identifier and enter the text to be matched. 8. (*Optional*) Click **Change Mapping** if you wish to change the UI element tagged to the rule. 9. Click Apply. [Create UI Element rule with text match](https://player.vimeo.com/video/841297392?h=3bd32857aa&badge=0&autopause=0&player_id=0&app_id=58479) **Note**: Rules created using the Text Match option cannot be backfilled. #### Create Rules with Only Text Matches You can use the Text Match option to create features solely with text match. This helps in preventing applications with dynamic UI elements from experiencing CSS selector match issues, and provides flexibility to map the unique elements faster. To create a UI Element rule with only text match: 1. In the floating mapper, click the *Add* button and select **UI Element Rule**. Alternatively, you can press Control + M on the keyboard to start mapping. 2. Click the UI element you want to use for the rule. 3. In the UI Element Rule window, enter a name for the rule. 4. In the **UI Element Details** section, turn off the **UI Element Details** toggle. 5. Enable the **Text Match Details** toggle switch. 6. Select the logic identifier and enter the text to be matched. 7. (*Optional*) Click **Change Mapping** if you wish to change the UI element tagged to the rule. 8. Click Apply. [Rules with only text matches](https://player.vimeo.com/video/841298889?h=e51d40b333&badge=0&autopause=0&player_id=0&app_id=58479) **Note**: Rules created using the Text Match option cannot be backfilled. #### Add Tracking Properties Tracking Properties allow you to capture additional context from user interactions in your product. They extend the information collected by rules so you can analyze behavior with greater precision in PX Analytics. Once defined, Tracking Properties can be used in Query Builder to filter, group, and analyze events. Tracking Properties can only be created in the In-App Product Mapper, and they are always associated with a feature. Once a property is created, it can be viewed in Product Mapper. You can also associate existing properties with a feature. The following types of Tracking Properties are available: - **URL**: Captures details from the page URL, such as path segments, or query parameters, helping you analyze navigation behavior. For instance, if the page URL has a query parameter (such as ?step=3) that tracks a user's onboarding location, you can leverage this property to capture the exact step using the value supplied by the parameter. - **UI Element**: Captures attributes or values from on-page elements, such as placeholder text, inner text, or selected options. This enables you to track the actual input or choice a user makes during an interaction. For instance, you can capture the value a user selects from a drop-down menu. - **Advanced JS**: Uses a simple JavaScript path to reference values from browser objects such as window or document. This is useful for cases where you want to fetch additional metadata that is not easily accessible from the URL or UI attributes. Supported data types include string, number, and boolean. - **Out-of-the-box Properties**: PX automatically provides system-level properties, including UTM tags, screen height, screen width, browser type, platform type, platform version, device, page title, referrer URL, and URL scheme. This can be directly added to a feature to track for specific features. **Note** - Tracking Properties can only be created in the in-app mapper. - Tracking Properties can only be created at the feature level. - At least one rule (URL, UI element, or text element) must be defined for a feature before you can add properties. - Each feature can have up to five properties, and each product in a subscription supports up to 1,000 properties. - For pages that contain iframes, PX resolves Tracking Properties as follows: - **URL properties and JS functions**: Always resolved from the *top window*. - **Click properties**: - If the click occurs inside an iframe, PX first resolves properties from that iframe’s context. - If some properties cannot be resolved within the iframe, PX then looks for them in the *top window* and other iframes on the page. - If the click occurs in the top window, PX resolves properties from the *top window* first. - If any properties remain unresolved, PX searches for them in the iframes, if present. To create a property: 1. In In-App Product Mapper, select the feature where you want to add a property. Ensure you have at least one rule (from URL or UI) for the feature. 2. Click the **Add** button. 3. Select the property type from the following options: - [URL Property](/v1/docs/instrument-your-product-using-in-app-mapper#create-url-property) - [UI Element Property](/v1/docs/instrument-your-product-using-in-app-mapper#create-ui-element-property) - [Advanced JS Property](/v1/docs/instrument-your-product-using-in-app-mapper#create-advanced-js-property) ![Dropdown menu highlighting property types including URL Property, UI Element Property, and Advanced JS Property under tracking options in Product Mapper.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RN-Tracking_Properties(1).jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=aCyEASccHOhZGkk2hDDPF0OcyRXmPP3MzFzOgmC4r4I%3D) #### Create URL Property URL Properties help you capture path segments and query parameters of a URL. To create a URL property: 1. Select the required feature with at least one rule. 2. Click the Add button and select **URL Property**. The Create URL Property window appears. 3. Enter a name and an optional description. 4. In the **Property Details** section, choose which part of the URL should be tracked: - **URL Path** - Enter text in the **Ignore Before** field to remove everything before a specified value. - Enter text in the **Ignore After** field to remove everything after a specified value. - Use the **Preview** field to validate how the captured path appears. ![Create URL Property modal using URL path method with tracking limited to paths that start after '/dashboard'](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/URL-Path.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=IQqVtqY33M985tE9%2Bg0Q%2FnUK0VEp0bvYR5WQkd1zNVc%3D) - **Query Parameter** - Enter the name of the parameter you want to capture (for example, step or source). The value of that query parameter will be recorded whenever the rule matches. - Review the **Preview** field to ensure the property captures the intended value. ![Create URL Property modal using query parameter method with parameter name 'dashboard' to track usage based on URL query strings.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/URL-Query_Paramters.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=HxVQq58y%2BXkWntmYDLOJwaB9lk%2FVquGzAOD2F%2FnDdd8%3D) 5. Click **Create** to add the property. The URL property is now available in the Tracking Properties tab and can be used in PX Analytics to filter, group, and analyze feature usage. #### Create UI Element Property UI Element Properties help you capture attributes such as placeholder text, inner text, or selected values. **IMPORTANT**: This property is dependent on how the element has been developed and results can vary on how the element has been modelled to capture the choices or selected states. To create a URL property: 1. Select the required feature with at least one rule. 2. Click the Add button and select **UI Element Property**. 3. Click the required UI element to start mapping. The Create UI Element Property window appears. 4. Enter a name and an optional description. 5. In the **CSS Details** section, perform the following: 1. In the **Selector** field, verify the CSS selector chosen based on the UI element clicked. 2. Review the Selector Strength and the number of matched elements to confirm accuracy. 3. (*Optional*) Click **Show Selector Options** if you wish to refine the selector or enter a custom one. 6. From the **Select Attribute** dropdown, choose which attribute of the element you want to capture. 7. Use the **Preview** field to validate that the property captures the correct value. 8. Click **Create** to save the property. ![UI Element Property setup form with CSS selector targeting [href='/components'] and attribute set to 'textContent' for tracking dashboard names](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/create_UI_element_property.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=hAGA2Sxu7VIa%2FTRRXIeiKXmJSvjPzJ2cC683MYLWAkY%3D) The UI Element Property is now associated with the feature and available in the Tracking Properties tab in Events. Further, you can use this property in PX Analytics to group, filter, and analyze events based on the captured attribute values. #### Create Advanced JS Property The Advanced JS Property helps you specify a JavaScript path to pull a value from browser objects like window or document. To create an Advanced JS Property: 1. Select the required feature with at least one rule. 2. Click the Add button and select **Advanced JS Property**. The Create Advanced JS Property window appears. 3. Enter a name and an optional description. 4. In the **Property Details** section, enter the JavaScript object for the value you want to capture. The path must start with window or document. For instance, *window.innerHeight* to capture the browser window height or *document.title* to capture the page title. 5. Review the **Preview** field to confirm the property returns the expected value. 6. Click **Create** to save the property. ![Create Advanced JS Property modal with JavaScript object input set to 'window.isTrackingEnabled' and property name 'Tracking Elements'.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/create_advanced_JS_Proeperty.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=FrLJHrx%2FcIX1tPkkw3Xw8tuYhnbKYhQiX6fECKD2cso%3D) **Note** - Advanced JS Properties are limited to returning string, number, or boolean values. - They cannot execute functions; the referenced value must already exist in the browser context. - Use this option when the data you need is not available through URL or UI Element properties. ## Filters in Product Feature Tree Filters on Product Feature Tree allow you to quickly find what you need by narrowing down your product tree using multiple criteria such as Tree Items (empty or non-empty modules and features, Modified by, Labels, and Rule Type. ![Filters in in-app mapper.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/filters_in_in-app_mapper.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A20%3A06Z&se=2026-11-24T19%3A20%3A06Z&sr=b&sp=r&sig=7WYlYmI1RQwAN3OIA8iPgnayx1opSSsAvU2lAyxuKik%3D) ## View Mapped Features Product Mapper has a Show Mapped Features option that helps you view the features mapped already in your application. This helps in identifying the features that are yet to be mapped, thus avoiding duplicate mapping. [View Mapped Features](https://player.vimeo.com/video/841300917?h=ea41107f68&badge=0&autopause=0&player_id=0&app_id=58479) ## Additional Resources - [*Install Gainsight PX on Your Web App*](/v1/docs/install-gainsight-px-on-your-web-app)