cta_click is an event created to record when a user clicks any Call-To-Action button on a website. CTA buttons are usually used for the following actions:
Sign up
Buy now
Try for free
Request a demo
Contact us
These buttons push the user towards the next step in their journey and are one of the key KPIs for measuring the effectiveness of ad campaigns.
Conversion tracking: You can see which CTA button gets the most clicks.
A/B test analysis: Compare the performance of different CTA texts.
UI/UX insight: Do the placement, colour and size of CTAs affect user behaviour?
Marketing channel effectiveness: Do users arriving from campaigns respond to the CTAs?
window.dataLayer = window.dataLayer || [];
dataLayer.push({
event: 'cta_click',
button_text: 'Qeydiyyatdan Keç',
button_id: 'register_btn_hero',
page: 'homepage',
position: 'hero_section',
campaign: 'yay2025',
variation: 'A'
});
| Parameter | Description |
|---|---|
event | Event name: cta_click |
button_text | Text on the button (e.g. “Sign Up”) |
button_id | Unique ID of the HTML button |
page | Page where the event occurred |
position | Position of the button on the page (e.g. footer, sidebar) |
campaign | Which ad campaign it is linked to |
variation | A/B test version (e.g. A, B) |
Log in to GTM
Triggers > New
Type: Click – All Elements
Filter:
Click ID equals register_btn_hero or
Click Text contains "Sign Up"
Tags > New
Type: Google Analytics: GA4 Event (or Custom HTML)
Event Name: cta_click
Event Parameters:
Enter the parameter names and values as shown above.
If you manage tracking in code, add the dataLayer.push() code above to your site at the moment of the click. This is essential for the tag to recognise the event in the dataLayer.
Assign CTA IDs and classes in a planned way so GTM triggers are easy to set up
Create a custom report for the “cta_click” event in your GA4 dashboard
On pages with several CTA buttons, use the position parameter to add labels such as hero, footer or popup
Which CTA gets the most clicks?
Which page’s button is most effective?
Which A/B test version delivers the higher conversion rate?
What impact does the campaign have on CTA clicks?
The answers to these questions will help you create more effective design, messaging and advertising strategies.
