Skip to content

Instantly share code, notes, and snippets.

View robisatthefunction's full-sized avatar

Robert Saunders robisatthefunction

  • Optimizely
View GitHub Profile
{
"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",
{
"plugin_type": "widget",
"name": "Marketo Form",
"edit_page_url": "optimizely.com",
"form_schema": [
{
"name": "selector",
"field_type": "selector",
"options": null,
"label": "Selector",
// If put in an Optimizely Web Project JS, this will stop the snippet from executing
window['optimizely'] = window['optimizely'] || [];
window["optimizely"].push({
"type": "disable"
});
{
"account_id": "123455678",
"visitors": [
{
"visitor_id": "oeu1612384594527r0.49927100392910617",
"attributes": [],
"snapshots": [
{
"decisions": [],
"events": [
{
"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,
// 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
{
"audience_conditions": "[\"and\", {\"audience_id\": 27573540519}]", // This can be changed to everyone
"campaign_id": 27432670787, // need campaign ID to be placed here
"changes": [],
"description": "If we deliver more relavant header to target audiences, we'll increase sign-up conversions",
"holdback": 0,
"metrics": [],
"name": "US-Based Customers",
"project_id": "$PROJECT_ID",
"traffic_allocation": 10000,
{
"audience_conditions": "[\"and\", {\"audience_id\": 27573540519}]", // Can probably change this to everyone
"campaign_id": 27432670787, // need campaign id to be placed here
"changes": [],
"description": "If we deliver more relavant header to target audiences, we'll increase sign-up conversions",
"holdback": 0,
"metrics": [],
"name": "PPC Facebook Ad Campaign",
"project_id": "$PROJECT_ID",
"traffic_allocation": 10000,
{
"audience_conditions": "[\"and\", {\"audience_id\": 27573540519}]", // This is where Audience needs to get passed in (You could just set this to Everyone though
"campaign_id": 27432670787, // This is where the campaign ID needs to get passed in
"changes": [],
"description": "If we deliver more relavant header to target audiences, we'll increase sign-up conversions",
"holdback": 0,
"metrics": [],
"name": "FamilyTraveler, Non-Member",
"project_id": "$PROJECT_ID",
"traffic_allocation": 10000,
{
"type": "personalization",
"changes": [
{
"async": true,
"name": "Setting button text",
"type": "custom_code",
"value": ""
}
],