--- title: "Step 2: Configuring and Activating the Plugin" slug: "scroll-position-outdated-step-2-configuring-and-activating-the-plugin" updated: 2025-09-02T15:30:20Z published: 2025-09-02T15:30:20Z canonical: "docs.mapp.com/scroll-position-outdated-step-2-configuring-and-activating-the-plugin" --- > ## 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 2: Configuring and Activating the Plugin The plugin is available in Tag Integration. Alternatively, you can integrate it in the standard pixel as a separate JavaScript file. Integrate the Scroll Position plugin into the container in which the webpage to be measured is located. To add plugins the desired container, proceed as follows: 1. In the container overview, select the required container by clicking the corresponding entry. 2. Click **Add Plugin**. You will be forwarded to the overview of all available plugins. ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/ab3ca11f-010e-4b48-90d1-acd207659709.png) 3. Select **Scroll position plugin** by clicking the appropriate button. The plugin configuration dialog opens. ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/9a3777a4-9bbc-4322-b7d1-9318df527e74.png) 4. Now enter the following information: | Parameter | Description | | --- | --- | | Scroll position (Figure) | By default, the scroll position is sent with a predefined event parameter. This parameter is configured as 'text' and cannot be changed (see chapter [Creating Event Parameters](/v1/docs/scroll-position-outdated-step-1-creating-event-parameters).) To use further analyses, you can additionally send the scroll position in a parameter configured as 'figure' (custom event parameter). | | Page height | Enter the parameter ID of the custom event parameter with which you want to send the absolute height of the webpage. | | Round up scroll position | Activate this option to round up the percentage scroll position to full fives. | 5. In the **Assign rules** area, you define the page areas on which the measurement is to be carried out. 6. Click **Add plugin**. 7. Finally, click **Publish** to publish your container including the newly added Scroll Position plugin. ![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/cf78304d-38ef-48ba-b064-b1c1ed8c66e8.png) Since version 3.2.x of the Mapp Intelligence tracking script, the use of plugins is supported. A plugin is all JavaScript functions that are transferred to the Mapp Intelligence pixel. For the integration of the Scroll Position plugin, you need the JavaScript file **webtrekk_scrollposition.min.js**. 1. Download the JavaScript file **webtrekk_scrollposition.min.js** from the download area. 2. In the JavaScript file **webtrekk_scrollposition.min.js**, make the following adjustments: **Example** ```javascript window.wt_scrollposition = function(conf) { if (conf.mode === "page" && conf.type === "after" && conf.requestCounter === 1) { var scrollPositionConfig = { parameterConfiguration: {     sendAsFigure: "6",     pageHeight: "7"   },   roundResult: true   };   // ... } }; ``` | Parameters | Description | | --- | --- | | sendAsFigure | By default, the scroll position is sent with a predefined event parameter. This parameter is configured as 'text' and cannot be changed (see chapter [Creating Event Parameters](/v1/docs/scroll-position-outdated-step-1-creating-event-parameters).) To use further analyses, you can additionally send the scroll position in a parameter configured as 'figure' (custom event parameter). | | pageHeight | Enter the parameter ID of the custom event parameter with which you want to send the absolute height of the webpage. | | roundResult | true = The percentage scroll position is rounded up to full fives. false = To get more accurate results, deselect this option. | 3. Store the function **wt_scrollposition** or the script file globally so that it can be found under the object "window". 4. The parameter **executePluginFunction** is used for the activation itself. This can be set either in the configuration variable (webtrekkConfig) in the global pixel file ("webtrekk_v3.js") or as a parameter of a page-specific pixel object. **Example Global Configuration** ```javascript var wt = new webtrekkV3(); wt.contentId = "de.startseite"; wt.executePluginFunction = "wt_scrollposition"; wt.sendinfo(); ``` **Example page-specific Confguration** ```javascript var webtrekkConfig = { trackId: "111111111111111", trackDomain: "track.webtrekk.net", domain: "www.website.com", executePluginFunction: "wt_scrollposition" }; ``` If you want to measure the data on all your pages, we recommend the global integration. The page-specific configuration is used for the measurement of individual pages.