Skip to main content

How to track Apostle's personalized UTM (utm_apostle) in GA4

Advanced guide: setting up Google Tag Manager, GA4, and custom reports

Mick van Teeffelen avatar
Written by Mick van Teeffelen
Updated yesterday

This is an advanced guide for setting up custom parameters and creating custom reports in Google Analytics 4 (GA4). You’ll learn how to track the utm_apostle parameter from Apostle in GA4 using Google Tag Manager (GTM).

⚠️ Important: If you need assistance, contact our support team for help.

1. Google Tag Manager (GTM)

Step 1: Set up GTM to capture the UTM parameter

  1. Log into Google Tag Manager and select the correct container.

  2. Create a variable to capture the utm_apostle parameter:

    • Go to Variables in the left-hand menu.

    • Click New under User-Defined Variables.

    • Name the variable: utm_apostle.

    • Click Variable ConfigurationURL.

    • In Component Type, choose Query.

    • In Query Key, type utm_apostle.

    • Click Save.

Step 2: Send the captured UTM parameter to GA4

  1. Modify your GA4 event tag:

    • Create a new tag: NewTag ConfigurationGoogle Analytics: GA4 Event.

    • Under Event Parameters, click Add Row.

    • Parameter Name: utm_apostle.

    • Value: select the variable you created (utm_apostle).

    • Click Save.

  2. Set up a trigger:

    • Make sure your GA4 event tag triggers on the correct pages or events (e.g., All Pages or a specific event).

  3. Publish your container:

    • Click Submit in the top-right to publish changes in GTM.

Step 3: Verify the parameter in GA4

  1. Use GTM’s Preview Mode to test.

  2. Visit your site with a URL containing the parameter, e.g.:

    www.yoursite.com?utm_apostle=test
  3. In GTM debug mode, check that the parameter is sent correctly.


2. Google Analytics 4 (GA4)

Step 1: Create a custom dimension for utm_apostle

  1. Log into GA4 and select your property.

  2. Go to AdminCustom DefinitionsCreate Custom Dimension.

  3. Fill in:

    • Name: UTM Apostle (internal use).

    • Scope: Event.

    • Event Parameter: utm_apostle.

  4. Click Save.

Step 2: Verify parameter collection

  1. Visit your site with a URL containing the parameter:

    www.yoursite.com?utm_apostle=test
  2. In GA4, go to Realtime.

  3. Check under Events for the custom event you created.

  4. Click on utm_apostle to see the parameter value.

Note: Wait 24–48 hours for the parameter to appear in GA4 standard reports.


3. Build a custom report in GA4

  1. In GA4, go to Explore.

  2. Click Blank to start a new exploration.

  3. Under Settings, set:

    • Technique: Free-form

    • Visualization: Table

  4. Add the UTM Apostle dimension:

    • Go to VariablesDimensions+Custom Dimensions.

    • Select UTM Apostle.

    • Set Nested rows to Yes.

  5. (Optional) Add Page path and screen class as a second dimension.

  6. Drag UTM Apostle into Rows or Columns.

  7. Add relevant metrics (Active users, Sessions, Conversions) into Values.

  8. (Optional) Increase Show rows to see more than 10 rows.

💡 Tip: For better visibility, enable Nested rows and set Show rows to a higher value. This allows you to see more UTM data without extra clicks.

Did this answer your question?