This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugin_type": "widget", | |
"name": "Shopify Shopping Cart Summary", | |
"edit_page_url": "https://mrbeast.store/", | |
"form_schema": [ | |
{ | |
"default_value": "Your selections", | |
"name": "heading", | |
"field_type": "text", | |
"options": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"events": [ | |
{ | |
"entityId": "18165912951", | |
"key": "example_event", | |
"timestamp": 1690483714939, | |
"uuid": "hagan-test1", | |
"tags": { | |
"revenue": 123, | |
"value": 1, | |
"quantity": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Client-side JavaScript example | |
// Notification Listeners execute whenever a bucketing decision is made on a visitor for an A/B Test or Targeted Delivery. | |
// https://docs.developers.optimizely.com/feature-experimentation/docs/set-up-notification-listener-javascript | |
const onDecision = ({ type, userId, attributes, decisionInfo }) => { | |
// Check if a decision event was dispatched. This will only happen if the visitor is put into an A/B Test. | |
if (decisionInfo['decisionEventDispatched']) { | |
// Get experiment bucketing info | |
let experimentKey = decisionInfo['ruleKey'] | |
let variationKey = decisionInfo['variationKey'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Client-side JavaScript example | |
// Notification Listeners execute whenever a bucketing decision is made on a visitor for an A/B Test or Targeted Delivery. | |
// https://docs.developers.optimizely.com/feature-experimentation/docs/set-up-notification-listener-javascript | |
const onDecision = ({ type, userId, attributes, decisionInfo }) => { | |
// Check if a decision event was dispatched. This will only happen if the visitor is put into an A/B Test. | |
if (decisionInfo['decisionEventDispatched']) { | |
// Get experiment bucketing info | |
let experimentKey = "[Optimizely] " + decisionInfo['ruleKey'] | |
let variationKey = decisionInfo['variationKey'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugin_type": "widget", | |
"name": "Extension Template", | |
"edit_page_url": "https://www.optimizely.com/", | |
"form_schema": [ | |
{ | |
"default_value": "afterend", | |
"field_type": "dropdown", | |
"name": "position", | |
"label": "Position", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugin_type": "widget", | |
"name": "Marketo Form", | |
"edit_page_url": "optimizely.com", | |
"form_schema": [ | |
{ | |
"name": "selector", | |
"field_type": "selector", | |
"options": null, | |
"label": "Selector", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If put in an Optimizely Web Project JS, this will stop the snippet from executing | |
window['optimizely'] = window['optimizely'] || []; | |
window["optimizely"].push({ | |
"type": "disable" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"account_id": "123455678", | |
"visitors": [ | |
{ | |
"visitor_id": "oeu1612384594527r0.49927100392910617", | |
"attributes": [], | |
"snapshots": [ | |
{ | |
"decisions": [], | |
"events": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugin_type": "widget", | |
"name": "Text Change: Hydration Compatible", | |
"edit_page_url": "atticandbutton.us", | |
"form_schema": [ | |
{ | |
"default_value": ".hero__title", | |
"name": "selector", | |
"field_type": "selector", | |
"options": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Learn more about destination functions API at | |
// https://segment.com/docs/connections/destinations/destination-functions | |
/** | |
* Handle track event | |
* @param {SegmentTrackEvent} event | |
* @param {FunctionSettings} settings | |
*/ | |
// Learn more about destination functions API at | |
// https://segment.com/docs/connections/destinations/destination-functions |
NewerOlder