GithubHelp home page GithubHelp logo

isabella232 / mparticle-javascript-integration-optimizely Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mparticle-integrations/mparticle-javascript-integration-optimizely

0.0 0.0 0.0 649 KB

JavaScript 98.61% HTML 1.39%

mparticle-javascript-integration-optimizely's Introduction

integration-optimizely

Overview

This integration contains code that maps to both Optimizely Web and Optimizely Full Stack. Depending on your use case, the kit is flexible enough so that you can either use 1 of these products in isolation or both at the same time. To use both concurrently, simply add 2 Optimizely connections in the mParticle UI, and check Use Full Stack in one of them.

Documentation

Please view the Optimizely Integration docs for full set up instructions.

Development Notes

Normally, mParticle kit code maps mParticle events to a single product/SDK. However, as mentioned above, this mParticle Optimizely kit enables mapping an mParticle event to 2 Optimizely products/SDKs. As such, all mapping code must follow 2 different code paths. In each module under src/, you'll find that code is split between products with code that looks something like the following:

if (window.optimizely && !common.useFullStack`) {
    // Perform mapping for Optimizely Web
    // window.optimizely checks for existence of Optimizely Web's API
    // common.useFullStack is an explicit check for if the connection is for Full Stack
}

// OR

if (window.optimizelyClientInstance && this.common.useFullStack) {
    // Perform mapping for Optimizely Full Stack
    // window.optimizelyClientInstance checks for existence of Optimizely Full Stack's API
    // common.useFullStack is an explicit check for if the connection is for Full Stack
}

When updating this kit, be sure to follow the correct code paths where appropriate.

License

Copyright 2020 mParticle, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

mparticle-javascript-integration-optimizely's People

Contributors

alexs-mparticle avatar dependabot[bot] avatar mparticle-automation avatar mtempranowalla avatar rmi22186 avatar triciabecker 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.