If you're using AngularJS, checkout our Bower component on Github:



Install angular-respondr as follows:

$ bower install angular-respondr --save

Add angular-respondr as a module depenency.

angular.module('myModule', ['angular-respondr']);

Include angular-respondr in your index page: 

<script type="text/javascript">
var _raq = _raq || [];
_raq.push(["trackSession", "---paste your siteId here---"]);
(function() {
  var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analytics.respondr.io/static/";
  var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
  g.defer=true; g.async=true; g.src=u+"respondr.js"; s.parentNode.insertBefore(g,s);
<script src="bower_components/angular-respondr/respondr.js"></script>

Saving Contacts

You can save contacts to Respondrs as follows:

  firstName: "John",
  lastName: "Doe",
  email: "john@example.com",
  phone: "4080099281",
  company: "XYZ Corp"

Saved contacts along with their analytics history can be tracked by logging in and going to Analytics > Contacts.

Tracking Actions

Tracking actions is easy with angular-respondr. There are currently 11 supported actions. Go to Github for detailed instructions.