Download PDF          Download Plugin


The plugin is available in Tag Integration. Alternatively, you can integrate it in the standard pixel as a separate JavaScript file.


Implementation Methods


Integrate the Page Load Time plugin into the container in which the webpage to be measured is located.

To add plugins to 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.



  3. Select  "Page Load Time plugin" by clicking the appropriate button. The plugin configuration dialog opens.


  4. Now enter the following information:

    ParameterDescription
    Sampling rate

    By integrating the plugin, every 50th-page call on your site is measured by default. Average values are calculated from these measured values.

    If you want a different sampling rate, you can adjust it here.


    Specify how often the page request is to be supplemented by the loading time.

    Examples
    • Value = 0: The loading time is measured at each page request.
    • Value = 10: Only every 10th-page request contains the loading time.


  5. Then click [Next].

  6. In the "Assign rules" area, you define the page areas on which the measurement is to be carried out.

  7. Click [Add plugin].

  8. Finally, click [Publish] to publish your container including the newly added Page Load Time plugin.


Since version 3.2.x of the Webtrekk tracking script, the use of plugins is supported. A plugin is all JavaScript functions that are transferred to the Webtrekk pixel.

For the integration of the Page Load Time plugin, you need the JavaScript file "pixel-PageLoadTime.min.js."

  1. Download the JavaScript file "pixel-PageLoadTime.min.js" from the download area  .

  2. In the JavaScript file "pixel-PageLoadTime.min.js," make the following adjustments:

    Example

    window.wt_pageLoadTime = function (conf) {
    	if (conf.mode === "page" && conf.type === "before" && conf.requestCounter === 1) {
    		var pageLoadTimeConf = {
    			samplingRate: "50"
    		};
    		// ...
    	}
    };
    ParameterDescription
    Sampling rate

    By integrating the plugin, every 50th-page call on your site is measured by default. Average values are calculated from these measured values.

    If you want a different sampling rate, you can adjust it here.


    Specify how often the page request is to be supplemented by the loading time.

    Examples
    • Value = 0: The loading time is measured at each page request.
    • Value = 10: Only every 10th-page request contains the loading time.


  3. Include the script file in your website in advance so that it provides the method "wt_pageloadtime" 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 (for example, "webtrekk_v3.js") or as a parameter of a page-specific pixel object.

    The data acquisition is started as soon as the plugin is activated.

    Example global configuration

    var webtrekkConfig = {
    	trackId: "111111111111111",
    	trackDomain: "track.webtrekk.net",
    	domain: "www.website.com",
    	executePluginFunction: "wt_pageLoadTime"
    };


    Example page-specific configuration

    var wt = new webtrekkV3();
    wt.contentId = "de.startseite";
    wt.executePluginFunction = "wt_pageLoadTime";
    wt.sendinfo();

    If you want to measure the data on all your pages, we recommend global integration. The page-specific configuration is used for the measurement of individual pages.