Would you rather measure when you receive an email?
Websites often display contact email addresses directly on the page. Many users prefer clicking on these email addresses and writing an email rather than filling out a form. However, tracking conversions through these contact email addresses usually relies on a proxy metric like “clicks on the email address”, which is inaccurate and includes unintended clicks that never convert.
A click on your contact email address only implies that the user intended to get in touch with you, but it doesn’t confirm if they actually did. So, what’s the solution? Can you send an event to Google Analytics only when somebody really sends the email? Yes, it is possible! ????
We propose using GA4 Measurement Protocol for enhanced tracking to send events when you receive contact requests via direct emails rather than just tracking clicks on your email address. This doesn’t mean you shouldn’t track the latter; tracking email address clicks can still enhance your funnel visualization.
Moving towards Accurate Measurements
Emails received are just like contact form submissions—they represent genuine customer interest. Your conversion tracking becomes significantly more accurate when you can account for all methods by which a customer contacts you. For instance, tracking phone calls is another challenge that we might cover in a future post. If you’re not including users who send you an email in your audience or conversion calculations, you’re missing valuable opportunities.
Relying solely on email address clicks includes unintended clicks or clicks that never materialize into actual contact, leading to incorrect and misleading marketing funnel statistics. This inaccurate data can distort your understanding of customer behavior and hinder effective decision-making. By tracking ’emails received,’ you ensure that your metrics reflect real engagement, allowing you to make better-informed marketing decisions.
Requirements
To implement this solution, we recommend using Zapier or another automation platform. Here’s what you’ll need:
- Access to Website code: To add JavaScript code to your pages where your contact email addresses are mentioned.
- GA4 Admin Access: To generate an API secret for Google Analytics 4 Measurement Protocol in your Google Analytics account.
- Zapier Pro Plan: For using multi-step Zaps. A Free Plan can work for a simple implementation (2-step Zap), but it has its limits.
It’s important to note that Measurement Protocols work best with an accurate Google Analytics Client ID. While it is possible to create a random number and pass it as the Client ID, this would only pass a detached, isolated event with no connection to any events generated by this user earlier. To ensure accuracy, it’s best to pull the user client ID and pass it in your events. That way the entire behavior of this user is tied together.
Approach / Methodology
This implementation consists of three main parts:
- Identifying direct emails and isolating emails received from clicks on the email address mentioned on your webpage and others
- Capturing and Passing GA4 Client ID when an email is received (to identify the user session and attach this event to all previous events from this user)
- Sending the event to GA4 when you receive an email
Let’s look at each step one by one.
Identifying Emails
To identify the emails received from clicks on your webpage’s email address, you have two options:
- A Unique Email Address: Create a new mailbox specifically for this purpose, such as [email protected]. Any email sent to this address is assumed to be from users who found it on your website. This email address should not be used for other communications.
- A Forwarding Mailbox: If creating a unique email address is not feasible, add a forwarding rule to your existing mailbox. Channel the emails generated from webpage clicks by adding a unique subject line. Set up an email rule to identify specific words in the subject line or email body and forward these emails to a Zapier mailbox for further processing.
Extracting and Passing the Client ID
To pass the client ID in the event, it must be included in the email. Here’s how:
- Extract the Client ID from the GA cookie.
- Include it in the email body or subject line when a user clicks on the email address.
- Ensure that the user does not alter the Client ID by adding clear instructions like “Please do not delete this.”
Sending the Event
Once you have the Client ID included in an email and a mailbox set up in Zapier, follow these steps:
- Parse the Email: In Zapier, set up a trigger to parse the incoming email (Step 1).
- Send to GA4: Create an action to send the event to GA4 (Step 2). You will need an API secret and Measurement ID from your Google Analytics 4 account for this step.
Step-by-Step Implementation Guide
Step 1: Extract GA4 Client ID
We first write a function to extract the Google Analytics Client ID. This function checks for the cookie. The GA4 Client ID is stored in a first-party cookie called _ga
. Here is how the function looks:
0 Comments