Installing Blips

There are multiple ways to install Blips on your website.

Select the type of site you have:

WordPress Sites

We’ve made it incredibly easy to set up Blips on WordPress sites. Simply download our Blips plugin, install and activate it and then navigate over to the Blips settings are and fill out the required fields.

This is an example set up of the WordPress plugin:

Be sure to create a Blip in the Blips section of your Bleeper log in screen in order to get the required Blip ID.

PHP

On every page where you want to track a conversion or registration, add the following code and modify it to suit the type of Blip you want to record.

<?php
/**
 * found in https://bleeper.io/app/?action=api_info
 */
$api_key = "YOUR_API_KEY";

/**
 * found in https://bleeper.io/app/?action=blip-control
 */
$blip_key = "YOUR_BLIP_KEY";


/**
 * Types available:
 * reg = registration
 * conv = conversion
 */
$blip_type = "reg";


/**
 * Types available:
 *  - https://bleeper.io/app/assets/images/blip_red.png
 *  - https://bleeper.io/app/assets/images/blip_blue.png
 *  - https://bleeper.io/app/assets/images/views_red.png
 *  - https://bleeper.io/app/assets/images/views_blue.png
 *
 */

$blip_icon = "https://bleeper.io/app/assets/images/blip_red.png";

/**
 * Example: "Nick just signed up to Bleeper.io!";
 */
$m = "Someone has signed up to the website.";

$data_array = array(
    "m" => $m,
    "i" => $blip_icon,
    "t" => $blip_type,
    "d" => "yourdomain.com",
    "uip" => "USERIP",
    "blip_key" => $blip_key,
    "api" => $api_key
);

$data = json_encode($data_array);

$data = urlencode($data);

$bleeper_uri = "https://nifty.us-2.evennode.com/api/v1/send-blip/?api_key=".$api_key."&blip_key=".$blip_key."&blip=".$data;

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_URL, $bleeper_uri);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

if(curl_exec($ch) === false){
    // remove comment for debugging
    // echo 'Curl error: ' . curl_error($ch);
}

curl_close($ch);
?>

JavaScript

On every page where you want to track a conversion or registration, add the following code and modify it to suit the type of Blip you want to record.

<script>
  var blipkey = "YOUR_BLIP_KEY";
  var data = {};
  data.m = "Someone just signed up on the website.";
  data.i = "https://bleeper.io/app/assets/images/blip_red.png";
  data.t = "reg";
  data.d = "yourdomain.com";
  data.uip = "192.168.0.1";
  blip_send(bleeper_api_key,blipkey,data);
</script>

Ensure that the standard Bleeper code is found on the page where you want to use the above code.

After Installation

Once your blips have been installed and as soon as a blip is received it, will be added to the blip queue. When a user visits your site, the blips will be displayed every few seconds. If you suspect that there is something wrong and that your blips are not being displayed, please contact us.