Skip to main content
All CollectionsIntegrationsThird-party trackingGoogle Analytics
Track clicks on your links using Google Analytics
Track clicks on your links using Google Analytics
Updated over a month ago

On your Wisepops dashboard, we display the total number of clicks on the links and calls-to-action with tracking activated.

In some situations, you might want to track the number of clicks on each link.

To do so, we're going to use our JS callback feature.

Step 1: Open your popup in the editor.

Step 2: In the left menu click on "JS":

Step 3: Click on "Add new script"

Step 4: Select "After tracked click" and copy/paste the following script, for GA4:

gtag('event', 'Wisepops CTA click', {
label: event.target.textContent
});

If GA4 is installed through GTM, you need to send an event to GTM instead.

And voilà!

Did this answer your question?