Using Javascript Tagging Library - Deprecated

Overview

Instructions to use Javascript Tagging Library.

Step-by-step guide

First of all, you need your URL_EMPATHYBROKER (i.e. ebdemo.empathybroker.com/sb-demo-guide) from our Account Manager, Appointed Lead Developer or alternatively contact our Support team.


The library must be included inside your code before using the API. This piece of code should be inserted at the bottom of the page:

STAGING environment resources import

Not minified

<script src="https://URL_EMPATHYBROKER/js/api/empathyutils.js" type="text/javascript"></script>
<script src="https://URL_EMPATHYBROKER/js/api/empathytag.js" type="text/javascript"></script>



Minified

<script src="https://URL_EMPATHYBROKER/js/empathy.resources.min.js" type="text/javascript"></script>


LIVE environment resources import

<script src="https://assets.empathybroker.com/apijs/1.1/empathy.resources.min.js" type="text/javascript"></script>	

Note: Do not use your URL_EMPATHYBROKER in your LIVE environment.

Usage

Once the library is added to the page, you need to initialize the service:

var empathyTAG = new EmpathyBrokerTAG(URL_EMPATHYBROKER).init();


At this point, you are ready to use the library:


Note: If you need to see requests received visit URL_EMPATHYBROKER/services/log/last