In the dynamic landscape of online analytics, understanding user interactions on your website is crucial for making informed decisions. One valuable piece of data to track is clicks on phone numbers. By setting up a click on phone number event in Google Analytics 4 (G4), you can gain insights into user behavior and engagement. In this step-by-step guide, we’ll walk you through the process of adding this event tracking to your website.
Step 1: Open Tag Manager
The first step is to open Google Tag Manager. Ensure you’re in the correct container where you want to set up the new G4 event tag.
Step 2: Create a New Tag
Inside the selected container, create a new tag with the configuration set to “Google Analytics G4 Event.” Input the Measurement ID that corresponds to the analytics account tied to the container. Choose a name for your event, such as “phone_call” or “phone_click,” and leave the other fields as they are.
Step 3: Set Up the Trigger
Create a new trigger that will fire on a click on all elements. Select the built-in variable “Click URL” and change the conditions to “contains” and “tel:”. Name the trigger and save it.
Step 4: Name and Save
Name your event tag and save it. This ensures that all the configurations are stored for future reference.
Step 5: Test Your New Tag
Test the new tag by publishing it to the live container and selecting “Preview.” Input the website URL tied to the container, and in the opened tab, click on the phone number somewhere on the website. Open the Tag Assistant tab to check if the tag fired as expected. Test all instances of the phone number on your website in the same way.
Once confirmed, exit the testing tool and end debugging.
Step 6: See the Event Tracking in Analytics
Open the Google Analytics account tied to the container. Click “Reports” and then navigate to “Realtime.” Scroll down to view “event count by event name” and ensure that the event you just added is showing up.
Step 7: Optional – Mark the Event as a “Conversion”
After 24 hours, log back into the analytics account. Click the admin cogwheel in the bottom right, then under “Data Display,” click “Events.” Find the event you set up on the list and click to “mark as conversion.”
Congratulations! You’ve successfully set up click on a phone number as an event and conversion inside Google Analytics 4. This valuable data will provide insights into user engagement and help you make data-driven decisions to enhance the user experience on your website.