Giter Site home page Giter Site logo

joshwolf / adobe-analytics-di Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hearst-dd/adobe-analytics-di

0.0 1.0 0.0 13 KB

Adobe Analytics aka SiteCatalyst data insertion module for Node.js

License: MIT License

Makefile 0.31% JavaScript 99.69%

adobe-analytics-di's Introduction

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

adobe-analytics-di's People

Contributors

davidbenge avatar dbenge avatar joshwolf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.