Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (15 loc) · 494 Bytes

batch.md

File metadata and controls

18 lines (15 loc) · 494 Bytes

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.

import Vue from 'vue'
import VueAnalytics from 'vue-analytics'

Vue.use(VueAnalytics, {
  id: 'UA-XXX-X',
  batch: {
    enabled: true, // enable/disable
    amount: 2, // amount of events fired
    delay: 500 // delay in milliseconds
  }
})