How to Setup in Google Analytics 4
WordPress WhatsApp Support Event Tracking in Google Analytics
Requirements:
- Google Analytics 4 on your website
Step 1: Insert gtag.js into your WordPress site if not inserted.
Step 2: Goto the WordPress admin panel > WhatsApp Support > FB & GA Analytics.
Step 3: Enable the “Google Event Tracking” option.
Step 4: Enter the following details as per your need.
- GA Event: Enter the name of custom the event to track on Google Analytics 4.
- GA Event Category: Enter the name of the event category.
- GA Event Label: Enter the label of the event.
Step 5: Hit on the Save Changes button to save the changes.
It will take 24-48 hours to show the entries on your Google Analytics 4 events dashboard.
How to Setup in Google Tag Manager
WordPress WhatsApp Support Event Tracking using Google Tag Manager
Requirements:
- Google Tag Manager on your website
- WordPress WhatsApp Support version 2.4.0 or higher.
Step 1: Insert gtm.js into your WordPress site if not inserted.
Step 2: Goto the WordPress admin panel > WhatsApp Support > FB & GA Analytics.
Step 3: Enable the “Google Event Tracking” option.
Step 3: Enable the “Google Event Tracking” option.
Step 4: Enter the following details as per your need.
- GA Event: Enter the name of custom the event to track on Google Tag Manager.
- GA Event Category: Enter the name of the event category.
- GA Event Label: Enter the label of the event.
Step 5: Hit on the Save Changes button to save the changes.
Step 6: Open https://tagmanager.google.com/ and select your Tag Manager Account, or create a new account if you haven’t. Under the Tag Manager Account, add your website as a new Container, which includes these details:
Container Name: ‘yourdomain.com’
Container Type: ‘Web’
Container ID: This GTM ID will be given. e.g. ‘GTM-ABCD123
After that, you can enter the Container > Workspace and land on a new dashboard with a left panel including Overview, Tags, Triggers, Variables, etc.
Step 7: Now Click on the Tags and the New button to create one.
After clicking on the New button from the above step, a new slide popup will open. Enter any name like we entered the WhatsApp GTM then click on the pencil icon from the Tag Configuration.
A new Choose tag type window will open to select the tag. From the tag list, select Google Analytics: GA4 Event.
Now, Select the None – Manually Set ID From the Configuration Tag option. Enter Google Analytics 4 Measurement ID. Enter the Event Name which should be WeCreativez WhatsApp and then click on the pencil icon from Triggering.
Now, click on the + icon from the Choose a trigger popup.
Enter any name for the trigger like we entered WhatsApp Trigger and then click on the pencil button from the Trigger Configuration.
Now, select the Custom Event from the Choose trigger type popup.
Now, Set the Event Name as WeCreativez WhatsApp, Trigger fire type as Some Custom Events.
Select Event from the first dropdown, contains from the second dropdown, and enter WeCreativez WhatsApp into the third input box.
Then click on the Save button to save the trigger.
Click on the Save button again to save the Tag.
Now, the Google Tag Manager event fires when the user/customer clicks on the send message button from the widget or when the user/customer clicks on the support person.
It will take 24-48 hours to show the entries on your Google Analytics 4 events dashboard.