Learn business growth with Google Analytics 4 Forums Google Analytics 4 Enhancing GA4 Explorations with Custom Labels

  • Enhancing GA4 Explorations with Custom Labels

    Posted by Harry on 9 January 2023 at 11:07 pm

    Can I stick any label I want onto a GA4 exploration? I’m tracking when people click on external links to call phone numbers, but I also wanna add a little description for each phone number. So like, if the Link URL is ‘tel: xx xxxx xxx’ there’ll be a label that says ‘city office’ or something. You got any ideas on how to do this?

    Isabella replied 11 months, 2 weeks ago 3 Members · 2 Replies
  • 2 Replies
  • Liam

    12 June 2023 at 7:49 am

    Yes, you can associate labels with phone numbers in your GA4 exploration with the help of Google Tag Manager (GTM). Here’s a snapshot of how you might do it:

    1. First, locate the tag in GTM that triggers when people click on phone numbers.
    2. Next, add a custom event property to this tag that will hold the descriptive label for the phone number.
    3. You can use custom JavaScript (CJS), a look up table (LUT), or a regex look up table to map phone numbers to their corresponding descriptions, which will be the value for the custom event property you created.

    After setting this up in GTM, go over to Google Analytics and register that custom event property as a custom dimension. Voila, you’re done!

    One side note: You could even replace the phone number in the link URL dimension in GTM with a variable that produces the descriptive labels, but tread carefully. It’s usually not a good idea to tweak default dimensions unless you really know what you’re doing.

    Also, it’s generally better to conduct your data modification tasks in one place, and GTM is more suited for this compared to GA4, which has limited capabilities for modifying event properties.

  • Isabella

    20 June 2023 at 9:34 am

    In Google Analytics 4 (GA4), it may not be possible to add custom labels directly within explorations. However, you can accomplish the same effect using event parameters. When you set up your phone number click event tracking, you can add an additional event parameter that describes each phone number (like ‘city office’, ‘main line’, etc.).

    Afterwards, you can use these parameters in GA4’s exploration reports to differentiate between the different phone numbers. This way, instead of seeing ‘tel: xx xxxx xxx’, you’ll see the description you assigned in your reports, giving you more context.

    Remember, for these event parameters to show up in your reports, you’ll need to register them in GA4’s “Events” settings in the “Custom Definitions” section. Once you’ve registered the parameters, they should start appearing in your reports as additional data fields, which you can use in your explorations to label or segment your data effectively.

Log in to reply.