How to track clicks in custom HTML blocks

Lisa Fockens Updated by Lisa Fockens

To measure the effectiveness of your call-to-actions within custom HTML code in Wisepops campaigns, it's crucial to enable click tracking. Follow these easy steps to track clicks on your custom HTML elements:

Step 1: Add the 'wisepops-track-click' class to the element you want to track

By default, Wisepops doesn't track clicks on call-to-actions within custom HTML blocks. To enable click tracking, simply add the class="wisepops-track-click" attribute to the specific element you wish to track.

For example, to track clicks on a link, add the tracking class like this:

<a href="" class="wisepops-track-click">
Go to

You can apply this tracking class to various elements, such as buttons, images, or other interactive components in your custom HTML block.

Step 2: Confirm click tracking in your Wisepops dashboard

After adding the tracking class to your custom HTML elements, remember to save and publish your campaign. Next, test the campaign to ensure that clicks are being tracked correctly.

To confirm click tracking, head to your Wisepops dashboard and review the performance metrics for the specific campaign. You should see the number of clicks for elements with the wisepops-track-click class.

Effectively tracking clicks on custom HTML elements is vital for understanding user interactions with your Wisepops campaigns. By incorporating the wisepops-track-click class to the desired elements, you can accurately measure your call-to-action performance and make data-driven decisions to optimize your campaigns.

Better understand your Notification analytics

Time zone used for reporting