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
function sendOptimizelyEvent(eventId, key) { | |
try { | |
function guid() { | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
} | |
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
s4() + '-' + s4() + s4() + s4(); |
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_id": "typed_js", | |
"plugin_type": "widget", | |
"name": "Typed Messages", | |
"edit_page_url": "https://www.optimizely.com/products/experimentation/", | |
"form_schema": [ | |
{ | |
"default_value": "#ffffff", | |
"field_type": "color", | |
"name": "bg_color", |
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": "1234", | |
"visitors": [ | |
{ | |
"session_id": "session1234", | |
"visitor_id": "somevisitor", | |
"attributes": [ | |
{ "type": "custom", | |
"key": "attr_key", | |
"value": "attr_value" |
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
//redirect URL mapping - replace this with the mapping from LiveRamp | |
var redirectUrls = { | |
"56252426" : "http://sfveterinaryhousecalls.vetsfirstchoice.com", | |
"12345444" : "http://bluecrosspet.vetsfirstchoice.com", | |
}; | |
//Optimizely Redirect Handler | |
function dataHandler( LiveRampData ) { | |
if(LiveRampData.length > -1){ | |
LiveRampData.forEach(function(id) { |
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
{ | |
"timerange": { | |
"begin": "2016-04-15T10:00:00-10:00", | |
"end": "2016-05-20T10:00:00-10:00" | |
}, | |
"experiments": [ | |
{ | |
"variations": [ | |
{ | |
"archived": true, |
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
{ | |
"timerange": { | |
"begin": "2016-04-15T10:00:00-10:00", | |
"end": "2016-05-20T10:00:00-10:00" | |
}, | |
"experiments": [ | |
{ | |
"variations": [ | |
{ | |
"archived": true, |
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
{ | |
"timerange": { | |
"begin": "2016-04-15T10:00:00-10:00", | |
"end": "2016-05-20T10:00:00-10:00" | |
}, | |
"experiments": [ | |
{ | |
"variations": [ | |
{ | |
"archived": true, |
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
{ | |
"timerange": { | |
"begin": "2016-04-15T10:00:00-10:00", | |
"end": "2016-05-20T10:00:00-10:00" | |
}, | |
"experiments": [ | |
{ | |
"variations": [ | |
{ | |
"archived": true, |
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
{ | |
"timerange": { | |
"begin": "2016-04-15T10:00:00-10:00", | |
"end": "2016-05-20T10:00:00-10:00" | |
}, | |
"experiments": [ | |
{ | |
"variations": [ | |
{ | |
"archived": true, |
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
{ | |
"timerange": { | |
"begin": "2016-04-15T10:00:00-10:00", | |
"end": "2016-05-20T10:00:00-10:00" | |
}, | |
"experiments": [ | |
{ | |
"variations": [ | |
{ | |
"archived": true, |
NewerOlder