npm i vgs-delivery
import deliver from 'vgs-delivery'
const props = {
keeperUrl: '...url...',
analyticsData: { key: 'value' },
imgUrls: ['...img_url...', '...another_img_url...'],
}
const deliverAnalytics = () => deliver(props)
optional props:
- keeperUrl - keeper endpoint
- analyticsData - keeper data to send
- imgUrls - array of images with queryParams as data to track (e.g. https://www.images.com/img?id=1&trackerId=2 )
- requestTimeout - the number of milliseconds before the request times out
- repeatInterval - the number of milliseconds before other set of requests started
- repeat - the number to repeat requests