Introducing WebEngage Javascript API and new version of the integration code

Introducing WebEngage Javascript API and new version of the integration code

We are pleased to announce the introduction a new version of WebEngage integration code (Version 3.0). Not only is it better and faster but it is also a first step towards our commitment to open up the platform so that you can run WebEngage in a much more controlled manner using our API’s.

So, here’s how the new WebEngage integration code will look like –
This change allows you to do a whole bunch of things. E.g. now, you can have multiple links to the feedback tab and each time you can choose to open the feedback form with a different category. You can also choose to have your own trigger points for invoking a particular survey depending on some use-case scenarios. Check out these cool demos:
Clicking this button opens the feedback tab with the category “Sales/pricing related query” pre-selected. The feedback form also displays custom fields linked to this category, by default (notice the “what kind of help do you need” dropdown in the form).Clicking this button opens the feedback tab with “Jobs and hiring” as the category. And it also displays the corresponding custom field by default (“upload your resume”, in this case). Oh, did you notice that the category field is not being shown at all? Thanks to the API call below!Clicking this button triggers a particular survey pre-created in your WebEngage dashboard. You can override a lot of default behaviors of WebEngage via the API – e.g display a survey even if its taken, ignore the targeting rules etc, apply time delays (or ignore them) etc.
Underneath is the JS API code that makes all of the above demos happen:

What’s next?

  1. We’ll release the API documentation and JS SDK officially next week. Until then, please free to play around and poke us if you have some crazy ideas on how do you want to make use of the JS API on your site.
  2. We’ll optionally let you pass user data along with each request made to the WebEngage API. Our ultimate goal is to pass this data to our reporting and analytics modules so that you get access to some amazing insights on user behavior.
  3. We’ll publish the anatomy of this API and our thought processes behind its design on our engineering blog for our hacker friends.
Note for existing customers:
We’ll continue to back support the older versions of integration code (Version 2.x.x and below). However, we highly recommend upgrading to the latest one. This code can be obtained from within your dashboard. We’ll send an official communication to all our customers once the API documentation is released next week.
New to WebEngage? Give us a go –

Stay tuned. We love you!

  • Created: 28 Apr 2012
  • Last Updated: 05 Sep 2018



Avlesh Singh Co-founder and CEO, WebEngage

Avlesh is the co-founder and CEO at WebEngage. He occasionally writes here and on his personal blog.

Liked our article? Give us your feedback by rating it.
Total Rating : 3 , Average Rating : 4