Authentication Keys for Plugins

brandID = 52X
Api Key = B42755CB83B3E3C2B5EEB3BCA3FF1CF8
Secret Key = 85430CD4791E9660F94D2726ACCF920E

Javascript Code

This is one time integration code for all the notifications. If you have already included this in your footer, no need to put it again.

Select All


<div id='notifyvisitorstag'></div>
<script>
(function(n,o,t,i,f,y) {
    n[i] = function() { (n[i].q = n[i].q || []).push(arguments) }; n[i].l = new Date;
    n[t] = {}; n[t].auth = { bid_e : '85430CD4791E9660F94D2726ACCF920E', bid : '52X', t : '420'};
    n[t].async = false;
    (y = o.createElement('script')).type = 'text/javascript';
    y.src = "//cdn.notifyvisitors.com/js/notify-visitors-1.0.js";  
    (f = o.getElementsByTagName('script')[0]).parentNode.insertBefore(y, f);
})(window, document, 'notify_visitors', 'nv');
</script>


For Asynchrous Javascript SDK, set n[t].async to true
n[t].async = true;

User Identifier

Select All

   
 nv('user', USER_ID, USER_EXTRA_PARAMS);

    USER_ID - Any unique identifier. It can be userid or email or mobile.

    USER_EXTRA_PARAMS - json array of user credentials
                        eg. {name:'Dick', email:'dick@gmail.com'}


Track Events

Select All

   
  nv('event', EVENT_NAME, EVENT_ATTRIBUTES, LIFETIME_VALUE, SCOPE);

    EVENT_NAME - Name of the event. Eg. sale

    EVENT_ATTRIBUTES - json array of attributes
                        eg. {product:'Mobile', category:'Electronics'}

    LIFETIME_VALUE - user value for the event. Eg. 10

    SCOPE - 1 (consider every time the function is called)
            2 (consider once for the session)
            3 (consider once per lifetime)


Dimensions

Select All

   
  nv('dimensions', key, value);
  
  key (string) - dimension name
  value (string) - dimension value

  Eg. 
  nv('dimensions', 'subscription', 'paid');