Add the 'tealium-collect' module to send event data to the Tealium Collect endpoint (https://collect.tealiumiq.com/event) (Tealium's HTTP API.)
For full documentation, please see the Tealium Learning Community:
https://community.tealiumiq.com/t5/Mobile-Libraries/Tealium-for-Node-js/ta-p/21994
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"});
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.