Guest User

Untitled

a guest
Mar 27th, 2025
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. STEP 1: Open Google Tag Manager
  2.  
  3. Go to Google Tag Manager
  4.  
  5. Select your container GTM-KSNMD9TB
  6.  
  7. Click "Triggers" in the left menu.
  8.  
  9. STEP 2: Create a Click Trigger for the Button
  10.  
  11. Click New (to create a trigger).
  12.  
  13. Name it: "ACT NOW Button Click"
  14.  
  15. Under Trigger Configuration, select:
  16.  
  17. "Click - All Elements"
  18.  
  19. Choose "Some Clicks" (to track only specific clicks).
  20.  
  21. Set the conditions:
  22.  
  23. Click "Choose Variable" and select "Click Text".
  24.  
  25. Select "equals".
  26.  
  27. Enter: ACT NOW! (this is the text inside the button).
  28.  
  29. Click Save.
  30.  
  31. STEP 3: Create a GA4 Event Tag
  32.  
  33. Click Tags in the left menu.
  34.  
  35. Click New (to create a new tag).
  36.  
  37. Name it: "GA4 - ACT NOW Button Click"
  38.  
  39. Click Tag Configuration and select:
  40.  
  41. "Google Analytics: GA4 Event"
  42.  
  43. Under Configuration Tag, select your GA4 property.
  44.  
  45. If not set, click New → Enter your GA4 Measurement ID.
  46.  
  47. Under Event Name, enter:
  48.  
  49. click_act_now
  50.  
  51. Under Event Parameters, add:
  52.  
  53. Parameter Name: event_category → Value: "act_now_button"
  54.  
  55. Parameter Name: event_label → Value: "traffick_en"
  56.  
  57. Scroll down to Triggering.
  58.  
  59. Click Choose a Trigger, and select "ACT NOW Button Click".
  60.  
  61. Click Save.
  62.  
  63. STEP 4: Test Your Setup (VERY IMPORTANT)
  64.  
  65. Click "Preview" in Google Tag Manager.
  66.  
  67. Enter your website URL and click Start.
  68.  
  69. Your website will open in Debug Mode.
  70.  
  71. Click the "ACT NOW" button.
  72.  
  73. Go back to GTM Preview Mode.
  74.  
  75. Check if the GA4 Event fires when you click the button.
  76.  
  77. STEP 5: Publish the Changes in GTM
  78.  
  79. Click Submit in GTM.
  80.  
  81. Add a name like "GA4 Button Click Tracking".
  82.  
  83. Click Publish.
  84.  
  85. STEP 6: Verify in Google Analytics
  86.  
  87. Open Google Analytics (analytics.google.com).
  88.  
  89. Go to Reports > Engagement > Events.
  90.  
  91. Look for click_act_now.
  92.  
  93. If not visible yet, go to Admin > DebugView and test again.
Advertisement
Add Comment
Please, Sign In to add comment