Articles on: Client Side

Set a trigger for a specific click

Give the trigger a clear name, such as: “button click button_name”.

Click on Trigger Configuration and select “All Elements” under “Click” as the trigger type.



Select "Some Clicks"



Use the dropdown menu to select "Built-In Variables"

In this list, you can see under the “Category” column which built-in variables are related to a visitor’s click. Choose the appropriate variable for your website and situation based on how you distinguish buttons on your website.

Choose “Click Classes” if you can distinguish your button using the class name HTML attribute.
Choose “Click ID” if you can distinguish your button using the button ID HTML attribute.
Choose “Click Target” if you can distinguish your button based on the form target HTML attribute.
Choose “Click URL” if you want to distinguish your button based on the destination URL.
Choose “Click Text” if you can distinguish your button based on the button name HTML attribute.

In the middle dropdown menu, choose how you want to distinguish your button. In the third field, the input field, enter the correct parameter. In the screenshot below, you can see how it looks when you want to track button clicks on all buttons with the HTML button ID: “request”.



Save

Updated on: 16/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!