Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STEP 1: Open Google Tag Manager
- Go to Google Tag Manager
- Select your container GTM-KSNMD9TB
- Click "Triggers" in the left menu.
- STEP 2: Create a Click Trigger for the Button
- Click New (to create a trigger).
- Name it: "ACT NOW Button Click"
- Under Trigger Configuration, select:
- "Click - All Elements"
- Choose "Some Clicks" (to track only specific clicks).
- Set the conditions:
- Click "Choose Variable" and select "Click Text".
- Select "equals".
- Enter: ACT NOW! (this is the text inside the button).
- Click Save.
- STEP 3: Create a GA4 Event Tag
- Click Tags in the left menu.
- Click New (to create a new tag).
- Name it: "GA4 - ACT NOW Button Click"
- Click Tag Configuration and select:
- "Google Analytics: GA4 Event"
- Under Configuration Tag, select your GA4 property.
- If not set, click New → Enter your GA4 Measurement ID.
- Under Event Name, enter:
- click_act_now
- Under Event Parameters, add:
- Parameter Name: event_category → Value: "act_now_button"
- Parameter Name: event_label → Value: "traffick_en"
- Scroll down to Triggering.
- Click Choose a Trigger, and select "ACT NOW Button Click".
- Click Save.
- STEP 4: Test Your Setup (VERY IMPORTANT)
- Click "Preview" in Google Tag Manager.
- Enter your website URL and click Start.
- Your website will open in Debug Mode.
- Click the "ACT NOW" button.
- Go back to GTM Preview Mode.
- Check if the GA4 Event fires when you click the button.
- STEP 5: Publish the Changes in GTM
- Click Submit in GTM.
- Add a name like "GA4 Button Click Tracking".
- Click Publish.
- STEP 6: Verify in Google Analytics
- Open Google Analytics (analytics.google.com).
- Go to Reports > Engagement > Events.
- Look for click_act_now.
- If not visible yet, go to Admin > DebugView and test again.
Advertisement
Add Comment
Please, Sign In to add comment