--- title: "Step 5: Creating a Custom Formula" slug: "step-5-creating-a-custom-formula" updated: 2025-07-31T10:01:23Z published: 2025-07-31T10:01:23Z canonical: "docs.mapp.com/step-5-creating-a-custom-formula" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Step 5: Creating a Custom Formula Custom formulas help you evaluate content engagement in a standardized and scalable way. You can use them to track key metrics across different pages or content types. To create a custom formula, go to: *Mapp Intelligence > Custom Figures > Custom Formulas* and click **Create Formula**. The configuration of the formula depends on the **request configuration** defined in your plugin setup (see *Step 2 – Plugin Configuration*). Two typical methods are described below. --- ## A) Configuration: After reaching % of content With this configuration, one tracking request is sent each time a defined visibility threshold is reached (e.g. 25%, 50%, 75%). To evaluate how often **at least 50 %** of an element was visible, define a formula as follows: **Calculation:** ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/f1282512-9643-4051-a1a0-d0f5762ac3b1.png) - The first element of the formula is filtered as follows: ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/3a2fa9d9-ddf3-4841-a383-5aff91bde043.png) - The second element of the formula is filtered as follows: ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/2f84df1c-3840-47c5-b48e-cb527294bc15.png) ## B) Configuration: On Leaving the Page If you’re using the “on leaving the page” method, only one request is sent per page (or per visit, depending on the setup). In this case, you may want to evaluate the **final visibility level** per element. **Calculation:** ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/da649a60-b1a3-41cc-af4d-442096a8e8db.png) - The first element of the formula is filtered as follows: ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/46c4b1c1-1ebb-458f-be73-d6b27eaac0d5.png) ## ## Related - [Custom Formulas > Create](/custom-figures-custom-formulas-create.md)