GithubHelp home page GithubHelp logo

optimizely-custom-code's Introduction

Examples of custom code within Optimizely

This repository contains examples of custom code which can be used within Optimizely. The examples are organized into different categories.

Page activation trigger

Within an page definition you can use a custom page activation trigger to delay the activation of a page (and thus the experiments attached to it). For example, instead of activating the page when the website loads, you could activate the experiment after an user interaction.

Page condition

Instead of matching a page based on a URL pattern or on a CSS selector, it's also possible to write a custom JavaScript condition.

Project-level JavaScript

In your Optimizely project settings, you can add custom JavaScript code that will be run every time the Optimizely snippet is loaded. This can be used to configure custom attributes. Note that the optimizely object won't be initialized yet, so make sure to initialize this variable.

Experiment-level (Shared) Code

In an experiment, you can add custom JavaScript code that will be run for every variation. Note that this includes the original variation. This can be used to set up custom event tracking consistently across all variations.

Variation-level Code

Lastly, in a variation, you can add custom JavaScript code to create functional changes instead of just visual changes.

optimizely-custom-code's People

Contributors

markbiesheuvel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

heshamelmasry77

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.