Skip to main content
Skip table of contents

Configure Campaign Monitoring

Deploy Campaign Monitoring

Campaign-related insights are collected by these components:

Deploy User Session Replay

Deploy Real User Monitoring and Session Replay for Insights on Marketing Campaigns after deployment of Germain UX - RUM JS or Germain UX - RUM Extension.

Configure Campaign Monitoring

Google Analytics UTM configuration

Define your Google Analytics UTM parameters.

  • From page query string.

  • From __utmz cookie.

More details here in Google Analytics.

Campaign Extractor configuration

Define your Custom Extractor function in Germain UX.

That can be provided via settings.application.campaignExtractor to extract Campaign information available on your web application.

The following code sample shows how to write a custom campaignExtractor to collect Urchin Tracking Module (UTM) parameters from page query string.

CODE
const settings = germainApm.getDefaultSettings();
...
settings.application.campaignExtractor = function() {
    var queryString = window.location.search;
    if (queryString) {
        var values = germainApm.utils.parseQueryStringToMap(queryString); // internal function to convert query string into a map
        if (values['utm_medium'] && values['utm_source']) { // required fields
            return {
                source: values['utm_source'] || null,
                medium: values['utm_medium'] || null,
                content: values['utm_content'] || null,
                name: values['utm_campaign'] || null,
                term: values['utm_term'] || null
            };
        }
    }
    return undefined;
};
...
germainApm.start(settings);

Create a Dashboard for Campaign Analysis

Once all the real-time monitoring of campaign is enabled, you then need to configure Aggregate/Analytics Dashboard.

Here is an example of Pivots and Measures that you want to set on a portlet of an analytic dashboard, to start getting some insights on your marketing campaign(s):

image-20240522-145848.png

Campaign Pivots and Measures setting on a Tabular Portlet- Germain UX

  • Campaign Content

    image-20240522-162204.png

    Campaign Content - Germain UX

  • Campaign Medium
    Campaign Medium is the “medium” that was used by your user to come to your site (organic traffic, paid traffic, referral etc).

    image-20240522-162530.png

    Campaign Medium - Germain UX

  • Campaign Name

    image-20240522-162649.png

    Campaign Name - Germain UX

  • Campaign Source
    Campaign Source is where your website’s traffic comes from (Facebook, Google, etc).

    image-20240522-163022.png

    Campaign Source - Germain UX

  • Campaign Term

image-20240522-163237.png

Campaign Term - Germain UX

  • Referrer URL

image-20240522-165206.png

Referrer URL - Germain UX

  • Referrer URL Type

image-20240522-150819.png

Referrer Type - Germain UX

  • Referrer URL Sub-Type

image-20240522-150915.png

Referrer URL Sub-Type - Germain UX

For more detailed information, please reaching out to us: https://docs.germainux.com/main/support . We will provide you with further guidance and assistance tailored to your needs.

 

Component: RUM JS

Feature Availability: 8.6.0 or later

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.