Tracking user interactions, such as email and phone clicks, is an important step in understanding your audience and optimising your website’s performance.
Google Analytics 4 (GA4) paired with Google Tag Manager (GTM) provides a robust framework to track these actions, giving you detailed insights into user behaviour.
This guide walks you through the entire process, step by step.
Why Track Email and Phone Clicks?
Tracking email and phone clicks on your website helps you:
- Measure engagement: Identify how often users are reaching out to you.
- Attribute conversions: Understand which marketing channels drive the most clicks.
- Optimise UX: Improve the visibility and placement of email and phone links.
By tracking these events in GA4, you gain actionable insights to refine your marketing and communication strategies.
Prerequisites
Before we dive in, ensure you have:
- Google Tag Manager (GTM): Installed and configured on your website.
- Google Analytics 4 (GA4): Linked to your website via GTM.
- Basic understanding of GTM tags, triggers, and variables.
Step 1: Set Up Click Tracking in Google Tag Manager
To track email and phone clicks, we’ll use GTM to create triggers that fire when users click on email or phone links.
Create a Trigger for Email Clicks
- Log in to GTM and navigate to the Triggers section.
- Click New and name the trigger, e.g., “Email Click Trigger”.
- Select Click – Just Links as the trigger type.
- Under Trigger Configuration, set conditions:
- Click Some Link Clicks.
- Add the condition:
Click URL contains mailto:
- Save the trigger.
Create a Trigger for Phone Clicks
- Repeat the steps above but name the trigger “Phone Click Trigger”.
- Use the condition:
Click URL contains tel: - Save the trigger.
Step 2: Configure Tags for GA4 Events
With the triggers in place, the next step is to create tags that send the click events to GA4.
Create a Tag for Email Clicks
- In GTM, go to the Tags section and click New.
- Name the tag, e.g., “GA4 – Email Click”.
- Select GA4 Event as the tag type.
- Choose your GA4 Configuration Tag.
- Under Event Name, enter
email_click. - (Optional) Add custom parameters for more detailed tracking. For example:
- Parameter Name:
link_url - Value:
{{Click URL}}
- Parameter Name:
- Assign the “Email Click Trigger” to the tag.
- Save the tag.
Create a Tag for Phone Clicks
- Repeat the above steps but name the tag “GA4 – Phone Click”.
- Use
phone_clickas the event name. - Assign the “Phone Click Trigger” to the tag.
- Save the tag.
Step 3: Test Your Setup
Testing is critical to ensure accurate tracking.
- Preview Your Workspace:
- In GTM, click Preview to enter Debug Mode.
- Interact with email and phone links on your website.
- Verify Tags Firing:
- Check the Debug Panel to confirm that the correct tags fire when you click email or phone links.
- Check GA4:
- Navigate to the DebugView in GA4 to see real-time event data.
- Look for
email_clickandphone_clickevents.
Step 4: Publish Changes
Once testing confirms that everything works as expected:
- Return to GTM and click Submit.
- Add a descriptive name to your version, such as “Email and Phone Click Tracking”.
- Publish the container.
Step 5: Analyse Data in GA4
After you have implemented these steps, you can analyse email and phone click data in GA4:
- Navigate to the Events Section:
- Go to Reports > Engagement > Events.
- Filter Events:
- Look for
email_clickandphone_clickto see how often these actions occur.
- Look for
- Build Custom Reports:
- Use Explorations to break down these events by dimensions like source, device, or campaign.
Advanced Tips
- Set Goals: Create custom conversions in GA4 to track email and phone clicks as key metrics.
- Use Variables: Capture additional data like link text or button location for deeper insights.
- Combine with UTM Tags: Track which campaigns or channels drive the most interactions.
Conclusion
Tracking email and phone clicks in GA4 using Google Tag Manager is an invaluable way to understand user behaviour and optimise your website’s performance. With this setup, you’ll have the insights needed to drive more meaningful interactions and conversions.
If you need assistance with setting up tracking, improving your SEO, or managing PPC campaigns, we’re here to help. Contact us today!