Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Enhancing GA4 Explorations with Custom Labels › Reply To: Enhancing GA4 Explorations with Custom Labels
-
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.