Track clicks on your links using Google Analytics

Lisa Fockens Updated by Lisa Fockens

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:

ga(function () {
var trackingIds = [];
ga.getAll().forEach(function (tracker) {
if (trackingIds.indexOf(tracker.get('trackingId')) === -1) {
tracker.get('name') + '.' + 'send',
'Click CTA',

On the script is live, it will trigger Google Analytics with the following properties:

• Event category: Wisepops

• Event action: Click CTA

• Event label: the text of your CTA or link

Use Google Analytics to analyze Wisepops impact on your sales