Custom Analytics
You can send all airim events to your custom analytics tool by adding this snippet below the airim JavsScript code. Please modify the script accordingly.
1
airim('subscribe', function(event){
2
myCustomAnalytics('airim', event.event_name, event.event_value);
3
})
4
5
function myCustomAnalytics(source,event_name,event_value){
6
customAnalytics.send(source,event_name,event_value);
7
}
Copied!
Event name is what type of action has been performed on the widget. Event value if any is the identification number on which the action is performed. Example: event_name = faq_click, and event_value = 39. Id of the FAQ which is clicked.

Sample Event

1
{
2
event_cat_id: 108, // FAQ category id
3
event_message: "Clicked on Question: What is life?",
4
event_name: "faq_click", // name of the event
5
event_obj: "FAQ",
6
event_obj_id: 66,// FAQ id
7
event_type: "click" ,
8
event_value: "What is life?"
9
}
Copied!

List of event names

  • faq_click
  • upvoted_faq
  • cta_click
  • downvoted_faq
  • search
  • tag_search
  • contact_form_open
  • notification_cta_click
  • widget_open
  • widget_close
  • airim_live_chat_open
  • live_chat_agent_blocked
  • live_chat_agent_snoozed
  • live_chat_agent_resolved
  • live_chat_agent_status
  • live_chat_agent_assigned
  • live_chat_tat
Copy link
Contents