Last active
November 29, 2018 00:28
-
-
Save Danny-Driscoll/91ea26ccfa985bf4422799df636614f1 to your computer and use it in GitHub Desktop.
4 fields Prod URL tageting headline testing
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
{ | |
"experiment": { | |
"project_id": 2723621000, | |
"variations": [ | |
{ | |
"archived": false, | |
"key": "original", | |
"name": "Original", | |
"weight": 3333 | |
}, | |
{ | |
"actions": [ | |
{ | |
"changes": [ | |
{ | |
"type": "custom_code", | |
"value": "var utils = optimizely.get(\"utils\");utils.waitForElement(\".optmzly_{{Article ID}} > h3\").then(function(el){el.innerHTML=\"{{New Headline}}\";});" | |
} | |
], | |
"page_id": 7959640022 | |
} | |
], | |
"archived": false, | |
"key": "headline_variation_1", | |
"name": "{{New Headline}}", | |
"weight": 3333 | |
}, | |
{ | |
"actions": [ | |
{ | |
"changes": [ | |
{ | |
"type": "custom_code", | |
"value": "var utils = optimizely.get(\"utils\");utils.waitForElement(\".optmzly_{{Article ID}} > h3\").then(function(el){el.innerHTML=\"{{New Headline 1}}\";});" | |
} | |
], | |
"page_id": 7959640022 | |
} | |
], | |
"archived": false, | |
"key": "headline_variation_2", | |
"name": "{{New Headline 1}}", | |
"weight": 3334 | |
} | |
], | |
"name": "[Editorial] - {{Article ID}} - {{Existing Headline}}", | |
"type": "a/b", | |
"metrics": "" | |
}, | |
"homepage_id": 7959640022, | |
"articlePage": { | |
"edit_url": "http://www.newyorker.com/", | |
"name": "Headline tests - Page w/ Article - {{Article ID}} - {{Existing Headline}}", | |
"project_id": 2723621000, | |
"activation_code": "function pollingFn() {return document.querySelectorAll(\".optmzly_{{Article ID}}\").length > 0; }", | |
"activation_type": "polling", | |
"archived": false, | |
"conditions": "[\"and\", [\"or\", {\"match_type\": \"substring\", \"type\": \"url\", \"value\": \"{{URL Targeting}}\"}]]", | |
"category": "article", | |
"status": "not_started", | |
"page_type": "url_set" | |
}, | |
"clickEvent": { | |
"event_type": "click", | |
"name": "Click on Article {{Article ID}}", | |
"archived": false, | |
"category": "convert", | |
"config": { | |
"selector": ".optmzly_{{Article ID}} .optmzly_headline" | |
}, | |
"description": "string" | |
}, | |
"placeholders": { | |
"experiment": { | |
"Article ID": ".+", | |
"Existing Headline": ".+", | |
"URL Targeting": ".+" | |
}, | |
"variation": { | |
"New Headline": ".*", | |
"New Headline 1": ".*", | |
"New Headline 2": ".*", | |
"New Headline 3": ".*" | |
} | |
}, | |
"password": "headline_testing" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment