tealium-collect

1.0.3 • Public • Published

Tealium Collect for Node.js

Add the 'tealium-collect' module to send event data to the Tealium Collect endpoint (https://collect.tealiumiq.com/event) (Tealium's HTTP API.)

License

Documentation

For full documentation, please see the Tealium Learning Community:

https://community.tealiumiq.com/t5/Mobile-Libraries/Tealium-for-Node-js/ta-p/21994

Getting Started

The tealium-collect module can be installed using npm. NPM will automatically include tealium module (which is a dependency.)

$ npm install tealium-collect

A simple "hello world" example

var Tealium = require('tealium');
var tealiumCollect = require('tealium-collect');
 
var config = {
  "account": "##MY_ACCOUNT##",
  "profile": "##MY_PROFILE##",
  "datasource": "##MY_DATA_SOURCE_ID##"
};
 
var tealium = Tealium(config);
 
tealium.addModule(tealiumCollect);
 
// Call tealium.track for each event in your app.  Include a data layer of key/value pairs.
tealium.track("My Event", {"mydata": "hello world"});

License

Use of this software is subject to the terms and conditions of the license agreement contained in the file titled "LICENSE.txt". Please read the license before downloading or using any of the files contained in this repository. By downloading or using any of these files, you are agreeing to be bound by and comply with the license agreement.


Copyright (C) 2018, Tealium Inc.

Readme

Keywords

Package Sidebar

Install

npm i tealium-collect

Weekly Downloads

179

Version

1.0.3

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

16.4 kB

Total Files

4

Last publish

Collaborators

  • tealium