Skip to main content
All CollectionsAnalytics & ReportingGoal tracking
Attributing revenue to campaign displays (instead of clicks)
Attributing revenue to campaign displays (instead of clicks)
Updated over 2 weeks ago

Understanding revenue attribution

By default, we attribute goals or revenue to a campaign only when:
โ€‹

1. A goal is mapped to that campaign (see our goal mapping guide)

2. A visitor clicks on the campaign and then completes a goal (e.g., makes a purchase)

We require a click to ensure that the total goals/revenue attributed to Wisepops campaigns accurately represent our impact on your business.

Attributing revenue based on displays

Sometimes, you might want to attribute goals/revenue when a campaign is displayed, rather than clicked. This can be useful for A/B testing the impact of informational banners, for example. Here's how to set this up:

Step-by-step guide

1. Open the popup builder

2. Navigate to the JS callbacks section

3. Click "Add new script"

4. In the Event dropdown, select "Before popup display"

5. Copy and paste this code into the editor:

setTimeout(() => {
event.detail.popup.trackClick();
var afterTrackedClickEvent = new CustomEvent('wisepops.after-tracked-click', {
composed: true,
bubbles: true,
cancelable: true,
detail: event.detail
});
event.target.dispatchEvent(afterTrackedClickEvent);
}, 500);


6. Save and publish your changes
โ€‹

How it works

This script creates a virtual click every time your campaign displays to a visitor. Any conversion from that visitor within the attribution window will then be attributed to that campaign.

Pro tip: Use this feature wisely. While it can provide valuable insights, it may also lead to over-attribution if used across all campaigns.

Need help? Don't hesitate to reach out to our support team!

Did this answer your question?