Skip to main content
Custom Events
Updated over a week ago

Default events are visits, clicks, conversions.

We’ve all used Google Analytics for its detailed user tracking, but now Peerclick takes it to the next level for affiliate marketers! Our new Custom Events feature allows you to track and optimize your campaigns with the same flexibility as Google Analytics, but with tools designed specifically for the needs of the affiliate industry. 🚀

What Are Custom Events?

Peerclick already tracks visits, clicks, and conversions by default. But what if you need more granular data? Each default event can now have up to 10 custom events assigned, capturing numeric values for key actions that users take on your site. This means you can track even the smallest interactions that matter the most to your campaigns!

How Do Custom Events Work?

Custom events are passed using GET parameters (`event1` to `event10`), and they can be transmitted in a variety of ways, making Peerclick as powerful as Google Analytics in terms of event tracking. Here's how you can start using them:

Each default event in the tracker can be assigned up to 10 custom events in the form of numeric values.

Work logic

Custom events are transmitted using GET parameters event1 - event10 in different ways:

1. From the traffic source in the campaign link:

2. From the landing page via pixel:

<script> (function (w, d, s, u, r, a, m) {w['PEERCLICK'] = r; w[r] = w[r] || function () { (w[r].q = w[r].q || []).push(arguments) }, w[r].l = 1 * new Date(); a = d.createElement(s), m = d.getElementsByTagName(s)[0];a.async = 1;h = encodeURIComponent(w.location.href);a.src = u+'&t='+(new Date).getTime()+'&h='+h; m.parentNode.insertBefore(a, m)})(window, document, 'script', 'http://2605399568.gopeerclick.com/c9b5f909-4921-4fdb-8eb4-20d061d9e031/image.js?event1=0&event2=25&'+window.location.search.substring(1)||'p=1 ', 'pc'); </script> <noscript> <link href='http://2605399568.gopeerclick.com/c9b5f909-4921-4fdb-8eb4-20d061d9e031/image.js?event1=0&event2=25&noscript=true'/> </noscript>

3. From the landing page in the offer link:

4. From the offer source / affiliate network in the postback link:

Use examples

Tracking the time spent by the user on the landing page

To optimize landing pages and the funnel as a whole, it can be useful to understand how much time the user spends on the page.

Add the eventN parameter to the lander-to-offer URL on the landing page:

where eventN is the GET parameter event1 - event10, N is the value of time spent on the landing page (for example, this can be implemented via a JS script).

Tracking exit points

Some landing pages have several exit points to the offer and it can be useful to understand where users click more often and where less often, what content they are more interested in, etc.

Add the eventN parameter to the lander-to-offer URL on the landing page:

where eventN is the GET parameter event1 - event10, N is the exit point designation (any numeric value).

Displaying custom events in statistics

Custom events are available for display in the statistics column by creating custom columns with a specified formula.

To display a column that displays only a custom event, create a custom column and specify the formula, selecting only event1 - event10.

Did this answer your question?