Event batches

It is possible to fire event using a queue that will be processed on a certain rate.The gap between each cycle and the amount of events fired on each cycle is totally customizable: default options are 2 events every 500ms.

  1. import Vue from 'vue'
  2. import VueAnalytics from 'vue-analytics'
  3. Vue.use(VueAnalytics, {
  4. id: 'UA-XXX-X',
  5. batch: {
  6. enabled: true, // enable/disable
  7. amount: 2, // amount of events fired
  8. delay: 500 // delay in milliseconds
  9. }
  10. })