Heap server-side events
Heap Analytics server-side events helper
Getting Started
Install the module with: npm install heap-server
More info on the Heap documentation site
Methods
The Heap server side API currently has two internal methods:
track
identify
When you send along an event
property with the heap.push()
method you will be using the internal track
method. If you are not sending an event along you're using the internal identify
method.
Example: tracking a custom event
var heap = '--your-heap-app-id--'; heap; // or no callback heap;
Example: identifying a new or existing user
You can also use this to update properties for an existing user.
var heap = '--your-heap-app-id--'; heap; // or no callback heap;