Skip to content

Hearst-DD/adobe-analytics-di

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adobe-analytics-di

TrackingImage Adobe Analytics aka SiteCatalyst data insertion module for Node.js
This module allows you to push data into your Adobe Analytics reporting suite from the server side. It uses the Data Insertion API to push your data in.

This fork allows the reporting host to be set separately from the reporting suite id.

Installation

npm install adobe-analytics-di --save


Example
Setup the analytics di api
```javascript var adobeAnalyticsHelper = require('adobe-analytics-di'); adobeAnalyticsHelper.setReportingSuiteId("MY-REPORTING-SUITE-ID"); adobeAnalyticsHelper.setReportingHost("MY-REPORTING-HOST"); ```
Send data to Adobe Analytics. Note that the property names are case sensitive because they get used in the XML sent to the DI API
```javascript var callData = { visitorID: 'myvisitorId', pageName: 'My Home Page', channel: 'My Channel name', eVar10: 'test evar10 value', prop10: 'test prop10 value', events: "event10,event11" };

var myDi = adobeAnalyticsHelper.getDataInsertion(callData);

if (myDi != null) { adobeAnalyticsHelper.sendCallToAdobeAnalytics(myDi); }


## Tests

  npm test


## Release History

* 1.0.0 Initial release
* 1.0.1 Added missing dependency
* 1.0.2 Updated the README
* 1.0.3 Updated the README to remove the html formatting from the code section
* 1.0.4 Updated the keywords

About

Adobe Analytics aka SiteCatalyst data insertion module for Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.7%
  • Makefile 0.3%