In this guide, we’ll show you how to create tags and triggers on Google Tag Manager to track Chaty click events on Google Analytics 4.
Please note these steps are not required if you are installing the GA4 code directly on your website and not the GTM code. You just need to enable Google Analytics from your Chaty widget settings. You can check our guide here: https://chaty.app/help/getting-started/how-to-track-chaty-clicks-with-google-analytics
Let’s start!
Step 1: On your Tags section, click New to create a new tag.
For this example, let’s create a tag for the Whatsapp channel click event.
Step 2: Enter WhatsApp-channel as a tag title. You can also enter any title you want.
Step 3: Click the pencil icon under Tag Configuration.
Step 4: Click Google Analytics.
Step 5: Click Google Analytics: GA4 Event.
Step 6: Enter your GA4 Measurement ID and Event Name as WhatsApp-channel. You can also set your own event name.
Step 7: Click the pencil icon under Triggering.
Step 8: Create a new trigger.
Step 9: Enter WhatsApp-channel as a trigger title or any title you like.
Step 10: Click the pencil icon under Trigger Configuration.
Step 11: Click Just Links as the Trigger Type.
Step 12: Click Some Link Clicks.
Step 13: Select the variable Click Classes and set the condition to contain WhatsApp-channel.
Step 14: Click Save.
Step 15: Click Submit to publish the changes.
Follow the same process for adding another click event. Just use the link class below for each channel.
WhatsApp: WhatsApp-channel
Phone: Phone-channel
Instagram: Instagram-channel
Facebook Messenger: Facebook_Messenger-channel
Skype: Skype-channel
Email: Email-channel
SMS: Sms-channel
Contact Form: Contact_Us-channel
Line: Line-channel
Telegram: Telegram-channel
Viber: Viber-channel
WeChat: Wechat-channel
Linkedin: Linkedin-channel