Webhooks for Reporting

If you want to track the performance of campaigns pushed using APIs at your end as well by using the reporting webhooks mentioned below.

As a prerequisite, you will have to iZooto with a URL that can be used to capture the responses by emailing us at [email protected].

You will receive campaign statists corresponding to the notification ID and the event type.

The event types are as follows:

  1. Notification View
  2. Notification Click

When enabled, it will send out a JSON response on the given API.

A sample of the JSON payload is given below.

{
"action": "Click",
"cookie_id": "7e32b7a1-acfc-45db-83fb-766d2a8a2bce",
"cid": "1123123",
"notification_title": "My Campaign Name",
"reference_id": "123422",
"utm_campaign": "recover_carts",
"utm_content": "Article",
"utm_medium": "push_notifications",
"utm_source": "izooto",
"utm_term": "notification3",
"clicked_button": 2
}

where

actiontype of event (Click/View)
cookie_idunique ID of the subscriber
cidCampaign ID (iZooto's Internal)
notification_titleTitle of the notification
refernce_idRun ID
UTM Parameters
- campaign
-content
-medium
-source
-term
UTM Paramters details
(Leave it blank if not present)
clicked_buttonIf any button is clicked may be button 1 or button 2.

/* "use strict"; !function() { var t = window.driftt = window.drift = window.driftt || []; if (!t.init) { if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice.")); t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ], t.factory = function(e) { return function() { var n = Array.prototype.slice.call(arguments); return n.unshift(e), t.push(n), t; }; }, t.methods.forEach(function(e) { t[e] = t.factory(e); }), t.load = function(t) { var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script"); o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js"; var i = document.getElementsByTagName("script")[0]; i.parentNode.insertBefore(o, i); }; } }(); drift.SNIPPET_VERSION = '0.3.1'; drift.load('udrm9k99ykdg'); */