Airim Documentation
1.0.0
1.0.0
  • Welcome to Airim Docs !
  • Getting Started
    • Customizing Contact Form
    • Adding FAQs one-by-one
    • Importing FAQs
    • Adding Team Members
    • Customising Airim's Appearance
    • Taking Airim Live
    • Adding Vernacular Content
    • Enable or Disable Airim
    • Launching Personalization
    • Integrating with Wordpress
    • Adding CTAs to FAQs
    • Embeddables
  • Integrations
    • Integrating with Zendesk
    • Integrating with Live Chat
    • Integrating Custom Live Chat
    • Integrating with Zapier
    • ConvertFox (Gist) KB integration
    • LiveAgent KB integration
    • ConvertFox / Gist Chat integration
    • Google Analytics
    • Custom Analytics
    • Google Tag Manger
  • Widget API
    • JavaScript ( Web )
    • Using Iframe mode
Powered by GitBook
On this page

Was this helpful?

  1. Integrations

Google Analytics

You can send all airim events to ga by adding this snippet below the airim js code

airim('subscribe', function(event){
  if (typeof(ga) === 'function') {
    ga('send', 'event', 'airim', event.event_name, event.event_value);
  }
})

If you are using gtag.js - Google Tag Manager instead of google analytics script, please use the code below

airim('subscribe', function(event){
  if (typeof(gtag) === 'function') {
    gtag('event', event.event_name, {
      'event_category': 'airim',
      'event_label': event.event_value,
    });
  }
});

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

{    
    event_cat_id: 108, // FAQ category id
    event_message: "Clicked on Question: What is life?",
    event_name: "faq_click", // name of the event
    event_obj: "FAQ",
    event_obj_id: 66,// FAQ id 
    event_type: "click" ,
    event_value: "What is life?"    
}

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

PreviousConvertFox / Gist Chat integrationNextCustom Analytics

Last updated 5 years ago

Was this helpful?