Best used for

  • Scheduling Net Promoter Score surveys based on user activity on your website
  • Installing Customer.guru on any website
  • Non-critical user events that might be blocked by ad-blockers

What you'll need

  • Access to your website code
  • Ability to write JavaScript code to integrate our library into your website
  • If you’re not comfortable with this, the person who built your website will be the right person to ask for help

Basic JavaScript integration
estimated time required: 3 minutes

Advanced JavaScript integration
estimated time required: 15 minutes

If you don't want to rely on the autoschedule feature, you can always schedule your surveys explicitly.

When you want to schedule a survey (e.g. in form submit event handler), just call the schedule method.

customerguru.schedule(
  email,
  properties,
  callback,
  scheduled_for,
  language
)

Note that only email is required, all other parameters are optional.

Example:

customerguru.schedule(
  "juraj@customer.guru",
  { product: 't-shirt', order_count: '5', total_amount_paid: '125.12', first_order_created_at: '2015-12-13' },
  function(status) { console.log('Customer.guru API responded with:', status) },
  (d = new Date(), d.setDate(d.getDate() + 7), d.toISOString()), // send survey in 7 days
  'fr' // survey this customer in French
)

API reference

Do you need help with integrating Customer.guru?

Let us know at hello@customer.guru, we're here to help! :-)