Skip to content

Instantly share code, notes, and snippets.

View tracking-server.js
const createBulkWriteStream = require('bulk-insert')
const moment = require('moment')
const AWS = require('aws-sdk')
const { v4 } = require('uuid')
const http = require('http')
const url = require('url')
const GIF = new Buffer(`R0lGODlhAQABAAAAACH5BAEAAAAALAAAAAABAAEAAAI=`, `base64`)
const stream = new AWS.Firehose()
const DeliveryStreamName = 'some-delivery-stream-name'