GithubHelp home page GithubHelp logo

isabella232 / analytics-roku-integration-adobe-analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from segment-integrations/analytics-roku-integration-adobe-analytics

0.0 0.0 0.0 117 KB

Segment's Adobe Analytics Integration for Analytics-Roku

License: MIT License

Makefile 5.84% Brightscript 94.16%

analytics-roku-integration-adobe-analytics's Introduction

Segment-Adobe-Analytics

Example

Running the sample app

  • Include ADBMobileConfig.json in the samples's root directory. See Adobe's Docs for more details
  • Set up ROKU_DEV_TARGET and ROKU_DEV_PASSWORD to the IP address and the development password of your Roku device
  • Set the SEGMENT_WRITE_KEY environment variable to your Segment source write key
  • Run make install-app from within the samples/ folder, which will build the app, side load it onto your Roku device and start it

Installation

Download the Segment and Adobe SDKs:

Create SegmentAdobeAnalytics.zip with the required files:

make library

Import the SDK Libraries and the contents of SegmentAdobeAnalytics.zip:

|-- ADBMobileConfig.json
|-- components
|   |-- library
|   |   |-- Adobe Analytics SDK
|   |   |   |-- adbmobileTask.brs
|   |   |   |-- adbmobileTask.xml
|   |   |-- Segment SDK
|   |   |   |-- SegmentAnalyticsTask.brs
|   |   |   |-- SegmentAnalyticsTask.xml
|-- source
|   |-- library
|   |   |-- Adobe Analytics SDK
|   |   |   |-- adbmobile.brs
|   |   |-- Segment SDK
|   |   |   |-- SegmentAdobeIntegration.brs
|   |   |   |-- SegmentAnalytics.brs
|   |   |   |-- SegmentAnalyticsConnector.brs

Update file paths and make sure to include SegmentAdobeIntegrationFactory in the use() function:

<!-- samples/components/library/Adobe Analytics SDK/adbmobileTask.xml -->

<!-- Replace with correct location if needed -->
<script type="text/brightscript" uri="pkg:/components/library/Adobe Analytics SDK/adbmobileTask.brs"/>
<!-- Replace with correct location if needed -->
<script type="text/brightscript" uri="pkg:/source/library/Adobe Analytics SDK/adbmobile.brs"/>
<!-- samples/components/library/Segment SDK/SegmentAnalyticsTask.xml -->

<script type = "text/brightscript" >
  <![CDATA[

    function use() as Object
      return {
        "Adobe Analytics": SegmentAdobeIntegrationFactory
      }
    end function
  ]]>
</script>

<!-- include any device mode integrations scripts  -->
<script type="text/brightscript" uri="pkg:/source/library/Segment SDK/SegmentAdobeIntegration.brs" />
<script type="text/brightscript" uri="pkg:/source/library/Adobe Analytics SDK/adbmobile.brs"/>

Note: The Adobe integration will use tmp:/ADBMobileConfig.json if it exists. Otherwise, it will read pkg:/ADBMobileConfig.json and write it to tmp:/ADBMobileConfig.json.

License

Segment-Adobe-Analytics is available under the MIT license. See the LICENSE file for more info.

analytics-roku-integration-adobe-analytics's People

Contributors

kdaswani 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.