Binom Documentation

Go to navigation

Events

Event is a numerical value that can be assigned to a click. This allows you to create and view custom metrics via scripts. You can assign up to 10 events to each click.

How it works


Events are passed via GET parameters event1-event10 from several sources.

  • 1. From traffic sources (via campaign links):
                                    
                                    http://tracker.com/click.php?key=IOson9pb03i2p&token1={token1}&token2={token2}&event1=0&event2=10
                                    
                                
  • 2. From landing pages (via pixel):
                                    
                                    <script>
    var o = document.createElement("img");
    o.src='http://tracker.net/click.php?event1=1';
    </script>
  • 3. From landing pages (via offer links, exit points, or token updates):
                                    
                                        http://tracker.com/click.php?lp=1&event1=1&event2=10
    http://tracker.com/click.php?event1=1&event2=10
  • 4. From affiliate networks (via postback links):
                                    
                                        http://tracker.com/click.php?cnv_id={sub1}&payout={cost}&cnv_status={status}&event1=1&event2=10                             
                                    
                                

You can also update values or add another values to them:

&event1=50 — change the event 1 value for 50.
&add_event1=50 — add 50 to the event 1 value.

You are free to specify negative, integer, and fractional numbers.

Keep in mind that if you use e-commerce or subscriptions schemes, do not use events 1-4 and 5-8 in those campaigns respectively.

Possible scenarios




THE PERCENTAGE OF MOBILE BOTS

This work only for mobile traffic.
To track mobile bots on your landing page, paste the following script inside the <body> tags:

                                    
                                        <script>
if (typeof(window.orientation)=="undefined")
{
var o = document.createElement("img");
o.src='http://tracker.net/click.php?event9=0';
}
else
{
var o = document.createElement("img");
o.src='http://tracker.net/click.php?event9=1';
}
</script>

Instead of tracker.net specify your domain and subfolder if necessary. You can use any event number that is free.

Go to Settings > Stats > Columns > Add custom column and create a custom column with the following settings:

Now you can use this metric in any report. The following example shows bots distribution throughout the Popads sites:

The percentage of users scrolling your page

This might come in handy if you have long landing pages and users have to scroll to become leads. This will give you an idea of whether your landing page is interesting or not.

Use the following script for your landing page:

                                
                                    <script type="text/javascript">
var scroll = 0;
window.onscroll = function(){
if( scroll != 1 ){
scroll = 1;
var o = document.createElement("img");
o.src = "http://tracker.net/click.php?event1=1";
} } </script>

Instead of tracker.net specify your domain and subfolder if necessary. You can use any event number that is free.

Go to Settings > Stats > Columns > Add custom column and create a custom column with the following settings:

Now you can use this metric in any report:

REPORTING TO THE TRACKER AFTER N SECONDS SPENT

The following script will show you the percentage of users that spent a specified number of seconds on your landing page:

                                    
                                        <script>
function pushToTrackerViaImage(){
var pushURL = 'http://tracker.net/click.php?event7=1';
var img = document.createElement('img');
img.src=pushURL;
img.style.display='none';
document.body.appendChild( img );
}
function pushAfterTimeout(timeout){
setTimeout(pushToTrackerViaImage, timeout*1000);
}
var TIMEOUT_IN_SECONDS = N;
pushAfterTimeout(TIMEOUT_IN_SECONDS);
</script>


Instead of tracker.net specify your domain and subfolder if necessary. Instead of N specify the number of seconds one must spend. You can use any event number that is free.

Go to Settings > Stats > Columns > Add custom column and create a custom column with the following settings: