Hello, good afternoon.
How do I find out how many times a button has been clicked using Adobe Analytics? How would this be implemented?
Topics help categorize Community content and increase your ability to discover relevant content.
Hey @BrayanHo
You can view these in two ways based on your current Implemenation: Choose the Dimension and metric from this left pane and drag and dropp in to free from table of Analysis workspace.
1. Activity Map link (tracked automtically by adobe analytics- if it is enabled)
2. Custom Variables (evar/prop and event) If you have custom click tracking implemented already
You can track button clicks in Adobe Analytics in multiple ways:
Without Custom Tagging (Using Activity Map)
If Activity Map is enabled and Adobe Analytics is properly implemented, and if the button is unique, you can track clicks directly in Analysis Workspace:
This method works well if Activity Map is already set up and the button has a unique identifier.
If no custom tagging Implemeted please do Implement to see this.
To Implement Custom Tagging Using a Data Layer
For more precise tracking, you can implement custom tagging using the Adobe Data Layer:
A front-end developer needs to write a script to track button clicks.
The script should anchor to the button’s CSS selector and fire a data layer event when clicked.
Adobe Launch can then listen for this data layer event and trigger a rule.
This rule will send a server call with the correct event mapping to Adobe Analytics.
Once implemented,
you can pull the data in Analysis Workspace using the left pane, where the event will be captured under the respective eVar, prop, and link click event.
To Implement Custom Tagging Without a Data Layer
If you prefer not to use a data layer, you can still track button clicks with Adobe Launch:
A developer can track the button using CSS class-based event tracking in Adobe Launch.
Set up a predefined click event in Adobe Launch.
Create a rule to track and send the data to Adobe Analytics.
Reference for Rule Creation
For more details on setting up tracking rules in Adobe Launch, refer to this guide:
https://experienceleague.adobe.com/en/docs/experience-manager-learn/sites/integrations/analytics/tra...
Views
Replies
Total Likes
You can track button clicks in Adobe Analytics using event tracking with Adobe Launch or custom JavaScript. Here's how:
1. Set Up a Click Event in Adobe Launch
Create a rule in Adobe Launch to detect button clicks (using a CSS selector or an event listener).
Assign a Custom Event (e.g., event1) to track the button clicks.
2. Capture Click Data with JavaScript
If using Custom Code, you can add:
s.events = "event1";
s.eVar1 = "Button Click"; // Optional: Track which button
s.tl(this, "o", "Button Click");
3. Check Button Click Count in Adobe Analytics
Go to Reports & Analytics → Custom Events → Check event1's occurrences.
Use Workspace Segments & Breakdowns to analyze button clicks per page or user.