@@ -13,47 +13,47 @@ discard block |
||
13 | 13 | "confidence_threshold" => 0, |
14 | 14 | "end_time" => "2016-10-14T05:08:42.966Z", |
15 | 15 | "metrics" => array( |
16 | - array( |
|
16 | + array( |
|
17 | 17 | "event" => "string", |
18 | 18 | "event_name" => "string", |
19 | 19 | "measure" => "conversions", |
20 | 20 | "metric_id" => "string", |
21 | 21 | "priority" => 0, |
22 | 22 | "results" => array( |
23 | - "campaign" => array( |
|
23 | + "campaign" => array( |
|
24 | 24 | "experiment_id" => 0, |
25 | 25 | "is_baseline" => true, |
26 | 26 | "lift" => array( |
27 | - "confidence_interval" => array( |
|
27 | + "confidence_interval" => array( |
|
28 | 28 | 0.010399560300730457, |
29 | 29 | 0.0850821459929161 |
30 | - ), |
|
31 | - "is_most_conclusive" => true, |
|
32 | - "is_significant" => true, |
|
33 | - "significance" => 0, |
|
34 | - "value" => 0, |
|
35 | - "visitors_remaining" => 0 |
|
30 | + ), |
|
31 | + "is_most_conclusive" => true, |
|
32 | + "is_significant" => true, |
|
33 | + "significance" => 0, |
|
34 | + "value" => 0, |
|
35 | + "visitors_remaining" => 0 |
|
36 | 36 | ), |
37 | 37 | "name" => "Blue Button", |
38 | 38 | "rate" => 0, |
39 | 39 | "scope" => "variation", |
40 | 40 | "total_increase" => array( |
41 | - "confidence_interval" => array( |
|
41 | + "confidence_interval" => array( |
|
42 | 42 | 0.010399560300730457, |
43 | 43 | 0.0850821459929161 |
44 | - ), |
|
45 | - "is_most_conclusive" => true, |
|
46 | - "is_significant" => true, |
|
47 | - "significance" => 0, |
|
48 | - "value" => 0, |
|
49 | - "visitors_remaining" => 0 |
|
44 | + ), |
|
45 | + "is_most_conclusive" => true, |
|
46 | + "is_significant" => true, |
|
47 | + "significance" => 0, |
|
48 | + "value" => 0, |
|
49 | + "visitors_remaining" => 0 |
|
50 | 50 | ), |
51 | 51 | "value" => 0, |
52 | 52 | "variation_id" => "string" |
53 | - ) |
|
53 | + ) |
|
54 | 54 | ), |
55 | 55 | "unit" => "session" |
56 | - ) |
|
56 | + ) |
|
57 | 57 | ), |
58 | 58 | "start_time" => "2016-10-14T05:08:42.967Z" |
59 | 59 | ); |
@@ -71,47 +71,47 @@ discard block |
||
71 | 71 | "confidence_threshold" => 0, |
72 | 72 | "end_time" => "2016-10-14T05:08:42.966Z", |
73 | 73 | "metrics" => array( |
74 | - array( |
|
74 | + array( |
|
75 | 75 | "event" => "string", |
76 | 76 | "event_name" => "string", |
77 | 77 | "measure" => "conversions", |
78 | 78 | "metric_id" => "string", |
79 | 79 | "priority" => 0, |
80 | 80 | "results" => array( |
81 | - "campaign" => array( |
|
81 | + "campaign" => array( |
|
82 | 82 | "experiment_id" => 0, |
83 | 83 | "is_baseline" => true, |
84 | 84 | "lift" => array( |
85 | - "confidence_interval" => array( |
|
85 | + "confidence_interval" => array( |
|
86 | 86 | 0.010399560300730457, |
87 | 87 | 0.0850821459929161 |
88 | - ), |
|
89 | - "is_most_conclusive" => true, |
|
90 | - "is_significant" => true, |
|
91 | - "significance" => 0, |
|
92 | - "value" => 0, |
|
93 | - "visitors_remaining" => 0 |
|
88 | + ), |
|
89 | + "is_most_conclusive" => true, |
|
90 | + "is_significant" => true, |
|
91 | + "significance" => 0, |
|
92 | + "value" => 0, |
|
93 | + "visitors_remaining" => 0 |
|
94 | 94 | ), |
95 | 95 | "name" => "Blue Button", |
96 | 96 | "rate" => 0, |
97 | 97 | "scope" => "variation", |
98 | 98 | "total_increase" => array( |
99 | - "confidence_interval" => array( |
|
99 | + "confidence_interval" => array( |
|
100 | 100 | 0.010399560300730457, |
101 | 101 | 0.0850821459929161 |
102 | - ), |
|
103 | - "is_most_conclusive" => true, |
|
104 | - "is_significant" => true, |
|
105 | - "significance" => 0, |
|
106 | - "value" => 0, |
|
107 | - "visitors_remaining" => 0 |
|
102 | + ), |
|
103 | + "is_most_conclusive" => true, |
|
104 | + "is_significant" => true, |
|
105 | + "significance" => 0, |
|
106 | + "value" => 0, |
|
107 | + "visitors_remaining" => 0 |
|
108 | 108 | ), |
109 | 109 | "value" => 0, |
110 | 110 | "variation_id" => "string" |
111 | - ) |
|
111 | + ) |
|
112 | 112 | ), |
113 | 113 | "unit" => "session" |
114 | - ) |
|
114 | + ) |
|
115 | 115 | ), |
116 | 116 | "start_time" => "2016-10-14T05:08:42.967Z" |
117 | 117 | ); |
@@ -59,38 +59,38 @@ discard block |
||
59 | 59 | $options = array( |
60 | 60 | "project_id" => 1000, |
61 | 61 | "changes" => array( |
62 | - array( |
|
62 | + array( |
|
63 | 63 | "type" => "custom_code", |
64 | 64 | "allow_additional_redirect" => true, |
65 | 65 | "async" => true, |
66 | 66 | "css_selector" => "a[href*=\"optimizely\"]", |
67 | 67 | "dependencies" => array( |
68 | - 24, |
|
69 | - 26 |
|
68 | + 24, |
|
69 | + 26 |
|
70 | 70 | ), |
71 | 71 | "destination" => "https://app.optimizely.com/", |
72 | 72 | "extension_id" => 1234, |
73 | 73 | "preserve_parameters" => true, |
74 | 74 | "src" => 524, |
75 | 75 | "value" => "window.someGlobalFunction();" |
76 | - ) |
|
76 | + ) |
|
77 | 77 | ), |
78 | 78 | "created" => "2016-10-14T05:08:42.822Z", |
79 | 79 | "earliest" => "2016-10-14T05:08:42.822Z", |
80 | 80 | "experiment_ids" => array( |
81 | - 0 |
|
81 | + 0 |
|
82 | 82 | ), |
83 | 83 | "holdback" => 0, |
84 | 84 | "last_modified" => "2016-10-14T05:08:42.822Z", |
85 | 85 | "latest" => "2016-10-14T05:08:42.822Z", |
86 | 86 | "metrics" => array( |
87 | - array( |
|
87 | + array( |
|
88 | 88 | "kind" => "string" |
89 | - ) |
|
89 | + ) |
|
90 | 90 | ), |
91 | 91 | "name" => "Landing Page Optimization", |
92 | 92 | "page_ids" => array( |
93 | - 0 |
|
93 | + 0 |
|
94 | 94 | ), |
95 | 95 | "status" => "active", |
96 | 96 | "type" => "a/b" |
@@ -112,38 +112,38 @@ discard block |
||
112 | 112 | $options = array( |
113 | 113 | "project_id" => 1000, |
114 | 114 | "changes" => array( |
115 | - array( |
|
115 | + array( |
|
116 | 116 | "type" => "custom_code", |
117 | 117 | "allow_additional_redirect" => true, |
118 | 118 | "async" => true, |
119 | 119 | "css_selector" => "a[href*=\"optimizely\"]", |
120 | 120 | "dependencies" => array( |
121 | - 24, |
|
122 | - 26 |
|
121 | + 24, |
|
122 | + 26 |
|
123 | 123 | ), |
124 | 124 | "destination" => "https://app.optimizely.com/", |
125 | 125 | "extension_id" => 1234, |
126 | 126 | "preserve_parameters" => true, |
127 | 127 | "src" => 524, |
128 | 128 | "value" => "window.someGlobalFunction();" |
129 | - ) |
|
129 | + ) |
|
130 | 130 | ), |
131 | 131 | "created" => "2016-10-14T05:08:42.822Z", |
132 | 132 | "earliest" => "2016-10-14T05:08:42.822Z", |
133 | 133 | "experiment_ids" => array( |
134 | - 0 |
|
134 | + 0 |
|
135 | 135 | ), |
136 | 136 | "holdback" => 0, |
137 | 137 | "last_modified" => "2016-10-14T05:08:42.822Z", |
138 | 138 | "latest" => "2016-10-14T05:08:42.822Z", |
139 | 139 | "metrics" => array( |
140 | - array( |
|
140 | + array( |
|
141 | 141 | "kind" => "string" |
142 | - ) |
|
142 | + ) |
|
143 | 143 | ), |
144 | 144 | "name" => "Landing Page Optimization", |
145 | 145 | "page_ids" => array( |
146 | - 0 |
|
146 | + 0 |
|
147 | 147 | ), |
148 | 148 | "status" => "active", |
149 | 149 | "type" => "a/b" |
@@ -14,12 +14,12 @@ discard block |
||
14 | 14 | $audience->setConditions(array( |
15 | 15 | "and", |
16 | 16 | array( |
17 | - "value" => "es", |
|
18 | - "type" => "language" |
|
17 | + "value" => "es", |
|
18 | + "type" => "language" |
|
19 | 19 | ), |
20 | 20 | array( |
21 | - "value" => "US-CA-SANFRANCISCO", |
|
22 | - "type" => "location" |
|
21 | + "value" => "US-CA-SANFRANCISCO", |
|
22 | + "type" => "location" |
|
23 | 23 | ) |
24 | 24 | )); |
25 | 25 | $audience->setDescription('People that speak spanish and are in San Francisco'); |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | "project_id" => 1000, |
47 | 47 | "archived" => false, |
48 | 48 | "conditions" => array( |
49 | - "and", |
|
50 | - array( |
|
49 | + "and", |
|
50 | + array( |
|
51 | 51 | "value" => "es", |
52 | 52 | "type" => "language" |
53 | - ), |
|
54 | - array( |
|
53 | + ), |
|
54 | + array( |
|
55 | 55 | "value" => "US-CA-SANFRANCISCO", |
56 | 56 | "type" => "location" |
57 | - ) |
|
57 | + ) |
|
58 | 58 | ), |
59 | 59 | "description" => "People that speak spanish and are in San Francisco", |
60 | 60 | "name" => "Spanish speaking San Franciscans", |
@@ -77,15 +77,15 @@ discard block |
||
77 | 77 | "project_id" => 1000, |
78 | 78 | "archived" => false, |
79 | 79 | "conditions" => array( |
80 | - "and", |
|
81 | - array( |
|
80 | + "and", |
|
81 | + array( |
|
82 | 82 | "value" => "es", |
83 | 83 | "type" => "language" |
84 | - ), |
|
85 | - array( |
|
84 | + ), |
|
85 | + array( |
|
86 | 86 | "value" => "US-CA-SANFRANCISCO", |
87 | 87 | "type" => "location" |
88 | - ) |
|
88 | + ) |
|
89 | 89 | ), |
90 | 90 | "description" => "People that speak spanish and are in San Francisco", |
91 | 91 | "name" => "Spanish speaking San Franciscans", |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | "end_time" => "2016-10-14T05:08:43.031Z", |
14 | 14 | "experiment_id" => 3000, |
15 | 15 | "metrics" => array( |
16 | - array( |
|
16 | + array( |
|
17 | 17 | "event" => "string", |
18 | 18 | "event_name" => "string", |
19 | 19 | "measure" => "conversions", |
@@ -21,54 +21,54 @@ discard block |
||
21 | 21 | "priority" => 1, |
22 | 22 | "unit" => "session", |
23 | 23 | "variation_results" => array( |
24 | - "9000" => array( |
|
24 | + "9000" => array( |
|
25 | 25 | "experiment_id" => 0, |
26 | 26 | "is_baseline" => true, |
27 | 27 | "lift" => array( |
28 | - "confidence_interval" => array( |
|
28 | + "confidence_interval" => array( |
|
29 | 29 | 0.010399560300730457, |
30 | 30 | 0.0850821459929161 |
31 | - ), |
|
32 | - "is_most_conclusive" => true, |
|
33 | - "is_significant" => true, |
|
34 | - "significance" => 0, |
|
35 | - "value" => 0, |
|
36 | - "visitors_remaining" => 0 |
|
31 | + ), |
|
32 | + "is_most_conclusive" => true, |
|
33 | + "is_significant" => true, |
|
34 | + "significance" => 0, |
|
35 | + "value" => 0, |
|
36 | + "visitors_remaining" => 0 |
|
37 | 37 | ), |
38 | 38 | "name" => "Blue Button", |
39 | 39 | "rate" => 0, |
40 | 40 | "scope" => "variation", |
41 | 41 | "total_increase" => array( |
42 | - "confidence_interval" => array( |
|
42 | + "confidence_interval" => array( |
|
43 | 43 | 0.010399560300730457, |
44 | 44 | 0.0850821459929161 |
45 | - ), |
|
46 | - "is_most_conclusive" => true, |
|
47 | - "is_significant" => true, |
|
48 | - "significance" => 0, |
|
49 | - "value" => 0, |
|
50 | - "visitors_remaining" => 0 |
|
45 | + ), |
|
46 | + "is_most_conclusive" => true, |
|
47 | + "is_significant" => true, |
|
48 | + "significance" => 0, |
|
49 | + "value" => 0, |
|
50 | + "visitors_remaining" => 0 |
|
51 | 51 | ), |
52 | 52 | "value" => 0, |
53 | 53 | "variation_id" => "string" |
54 | - ) |
|
54 | + ) |
|
55 | + ) |
|
55 | 56 | ) |
56 | - ) |
|
57 | 57 | ), |
58 | 58 | "reach" => array( |
59 | - "baseline_count" => 0, |
|
60 | - "baseline_reach" => 0, |
|
61 | - "total_count" => 0, |
|
62 | - "treatment_count" => 0, |
|
63 | - "treatment_reach" => 0, |
|
64 | - "variations" => array( |
|
59 | + "baseline_count" => 0, |
|
60 | + "baseline_reach" => 0, |
|
61 | + "total_count" => 0, |
|
62 | + "treatment_count" => 0, |
|
63 | + "treatment_reach" => 0, |
|
64 | + "variations" => array( |
|
65 | 65 | "9000" => array( |
66 | - "count" => 0, |
|
67 | - "name" => "Blue Button", |
|
68 | - "variation_id" => "string", |
|
69 | - "variation_reach" => 0 |
|
66 | + "count" => 0, |
|
67 | + "name" => "Blue Button", |
|
68 | + "variation_id" => "string", |
|
69 | + "variation_reach" => 0 |
|
70 | + ) |
|
70 | 71 | ) |
71 | - ) |
|
72 | 72 | ), |
73 | 73 | "start_time" => "2016-10-14T05:08:43.032Z" |
74 | 74 | ); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | "end_time" => "2016-10-14T05:08:43.031Z", |
87 | 87 | "experiment_id" => 3000, |
88 | 88 | "metrics" => array( |
89 | - array( |
|
89 | + array( |
|
90 | 90 | "event" => "string", |
91 | 91 | "event_name" => "string", |
92 | 92 | "measure" => "conversions", |
@@ -94,54 +94,54 @@ discard block |
||
94 | 94 | "priority" => 1, |
95 | 95 | "unit" => "session", |
96 | 96 | "variation_results" => array( |
97 | - "9000" => array( |
|
97 | + "9000" => array( |
|
98 | 98 | "experiment_id" => 0, |
99 | 99 | "is_baseline" => true, |
100 | 100 | "lift" => array( |
101 | - "confidence_interval" => array( |
|
101 | + "confidence_interval" => array( |
|
102 | 102 | 0.010399560300730457, |
103 | 103 | 0.0850821459929161 |
104 | - ), |
|
105 | - "is_most_conclusive" => true, |
|
106 | - "is_significant" => true, |
|
107 | - "significance" => 0, |
|
108 | - "value" => 0, |
|
109 | - "visitors_remaining" => 0 |
|
104 | + ), |
|
105 | + "is_most_conclusive" => true, |
|
106 | + "is_significant" => true, |
|
107 | + "significance" => 0, |
|
108 | + "value" => 0, |
|
109 | + "visitors_remaining" => 0 |
|
110 | 110 | ), |
111 | 111 | "name" => "Blue Button", |
112 | 112 | "rate" => 0, |
113 | 113 | "scope" => "variation", |
114 | 114 | "total_increase" => array( |
115 | - "confidence_interval" => array( |
|
115 | + "confidence_interval" => array( |
|
116 | 116 | 0.010399560300730457, |
117 | 117 | 0.0850821459929161 |
118 | - ), |
|
119 | - "is_most_conclusive" => true, |
|
120 | - "is_significant" => true, |
|
121 | - "significance" => 0, |
|
122 | - "value" => 0, |
|
123 | - "visitors_remaining" => 0 |
|
118 | + ), |
|
119 | + "is_most_conclusive" => true, |
|
120 | + "is_significant" => true, |
|
121 | + "significance" => 0, |
|
122 | + "value" => 0, |
|
123 | + "visitors_remaining" => 0 |
|
124 | 124 | ), |
125 | 125 | "value" => 0, |
126 | 126 | "variation_id" => "string" |
127 | - ) |
|
127 | + ) |
|
128 | + ) |
|
128 | 129 | ) |
129 | - ) |
|
130 | 130 | ), |
131 | 131 | "reach" => array( |
132 | - "baseline_count" => 0, |
|
133 | - "baseline_reach" => 0, |
|
134 | - "total_count" => 0, |
|
135 | - "treatment_count" => 0, |
|
136 | - "treatment_reach" => 0, |
|
137 | - "variations" => array( |
|
132 | + "baseline_count" => 0, |
|
133 | + "baseline_reach" => 0, |
|
134 | + "total_count" => 0, |
|
135 | + "treatment_count" => 0, |
|
136 | + "treatment_reach" => 0, |
|
137 | + "variations" => array( |
|
138 | 138 | "9000" => array( |
139 | - "count" => 0, |
|
140 | - "name" => "Blue Button", |
|
141 | - "variation_id" => "string", |
|
142 | - "variation_reach" => 0 |
|
139 | + "count" => 0, |
|
140 | + "name" => "Blue Button", |
|
141 | + "variation_id" => "string", |
|
142 | + "variation_reach" => 0 |
|
143 | + ) |
|
143 | 144 | ) |
144 | - ) |
|
145 | 145 | ), |
146 | 146 | "start_time" => "2016-10-14T05:08:43.032Z" |
147 | 147 | ); |
@@ -92,73 +92,73 @@ discard block |
||
92 | 92 | $options = array( |
93 | 93 | "project_id" => 1000, |
94 | 94 | "audience_ids" => array( |
95 | - 1234, |
|
96 | - 1212, |
|
97 | - 1432 |
|
95 | + 1234, |
|
96 | + 1212, |
|
97 | + 1432 |
|
98 | 98 | ), |
99 | 99 | "campaign_id" => 2000, |
100 | 100 | "changes" => array( |
101 | - array( |
|
101 | + array( |
|
102 | 102 | "type" => "custom_code", |
103 | 103 | "allow_additional_redirect" => true, |
104 | 104 | "async" => true, |
105 | 105 | "css_selector" => "a[href*=\"optimizely\"]", |
106 | 106 | "dependencies" => array( |
107 | - 24, |
|
108 | - 26 |
|
107 | + 24, |
|
108 | + 26 |
|
109 | 109 | ), |
110 | 110 | "destination" => "https://app.optimizely.com/", |
111 | 111 | "extension_id" => 1234, |
112 | 112 | "preserve_parameters" => true, |
113 | 113 | "src" => 524, |
114 | 114 | "value" => "window.someGlobalFunction();" |
115 | - ) |
|
115 | + ) |
|
116 | 116 | ), |
117 | 117 | "description" => "string", |
118 | 118 | "holdback" => 5000, |
119 | 119 | "key" => "home_page_experiment", |
120 | 120 | "metrics" => array( |
121 | - array( |
|
121 | + array( |
|
122 | 122 | "kind" => "string" |
123 | - ) |
|
123 | + ) |
|
124 | 124 | ), |
125 | 125 | "name" => "Blue Button Experiment", |
126 | 126 | "schedule" => array( |
127 | - "start_time" => "2016-10-14T05:08:42.850Z", |
|
128 | - "stop_time" => "2016-10-14T05:08:42.850Z", |
|
129 | - "time_zone" => "UTC" |
|
127 | + "start_time" => "2016-10-14T05:08:42.850Z", |
|
128 | + "stop_time" => "2016-10-14T05:08:42.850Z", |
|
129 | + "time_zone" => "UTC" |
|
130 | 130 | ), |
131 | 131 | "status" => "active", |
132 | 132 | "variations" => array( |
133 | - array( |
|
133 | + array( |
|
134 | 134 | "actions" => array( |
135 | - array( |
|
135 | + array( |
|
136 | 136 | "changes" => array( |
137 | - array( |
|
137 | + array( |
|
138 | 138 | "type" => "custom_code", |
139 | 139 | "allow_additional_redirect" => true, |
140 | 140 | "async" => true, |
141 | 141 | "css_selector" => "a[href*=\"optimizely\"]", |
142 | 142 | "dependencies" => array( |
143 | - 24, |
|
144 | - 26 |
|
143 | + 24, |
|
144 | + 26 |
|
145 | 145 | ), |
146 | 146 | "destination" => "https://app.optimizely.com/", |
147 | 147 | "extension_id" => 1234, |
148 | 148 | "preserve_parameters" => true, |
149 | 149 | "src" => 524, |
150 | 150 | "value" => "window.someGlobalFunction();" |
151 | - ) |
|
151 | + ) |
|
152 | 152 | ), |
153 | 153 | "page_id" => 0 |
154 | - ) |
|
154 | + ) |
|
155 | 155 | ), |
156 | 156 | "archived" => true, |
157 | 157 | "key" => "blue_button_variation", |
158 | 158 | "name" => "Blue Button", |
159 | 159 | "variation_id" => 0, |
160 | 160 | "weight" => 0 |
161 | - ) |
|
161 | + ) |
|
162 | 162 | ) |
163 | 163 | ); |
164 | 164 | |
@@ -173,73 +173,73 @@ discard block |
||
173 | 173 | $options = array( |
174 | 174 | "project_id" => 1000, |
175 | 175 | "audience_ids" => array( |
176 | - 1234, |
|
177 | - 1212, |
|
178 | - 1432 |
|
176 | + 1234, |
|
177 | + 1212, |
|
178 | + 1432 |
|
179 | 179 | ), |
180 | 180 | "campaign_id" => 2000, |
181 | 181 | "changes" => array( |
182 | - array( |
|
182 | + array( |
|
183 | 183 | "type" => "custom_code", |
184 | 184 | "allow_additional_redirect" => true, |
185 | 185 | "async" => true, |
186 | 186 | "css_selector" => "a[href*=\"optimizely\"]", |
187 | 187 | "dependencies" => array( |
188 | - 24, |
|
189 | - 26 |
|
188 | + 24, |
|
189 | + 26 |
|
190 | 190 | ), |
191 | 191 | "destination" => "https://app.optimizely.com/", |
192 | 192 | "extension_id" => 1234, |
193 | 193 | "preserve_parameters" => true, |
194 | 194 | "src" => 524, |
195 | 195 | "value" => "window.someGlobalFunction();" |
196 | - ) |
|
196 | + ) |
|
197 | 197 | ), |
198 | 198 | "description" => "string", |
199 | 199 | "holdback" => 5000, |
200 | 200 | "key" => "home_page_experiment", |
201 | 201 | "metrics" => array( |
202 | - array( |
|
202 | + array( |
|
203 | 203 | "kind" => "string" |
204 | - ) |
|
204 | + ) |
|
205 | 205 | ), |
206 | 206 | "name" => "Blue Button Experiment", |
207 | 207 | "schedule" => array( |
208 | - "start_time" => "2016-10-14T05:08:42.850Z", |
|
209 | - "stop_time" => "2016-10-14T05:08:42.850Z", |
|
210 | - "time_zone" => "UTC" |
|
208 | + "start_time" => "2016-10-14T05:08:42.850Z", |
|
209 | + "stop_time" => "2016-10-14T05:08:42.850Z", |
|
210 | + "time_zone" => "UTC" |
|
211 | 211 | ), |
212 | 212 | "status" => "active", |
213 | 213 | "variations" => array( |
214 | - array( |
|
214 | + array( |
|
215 | 215 | "actions" => array( |
216 | - array( |
|
216 | + array( |
|
217 | 217 | "changes" => array( |
218 | - array( |
|
218 | + array( |
|
219 | 219 | "type" => "custom_code", |
220 | 220 | "allow_additional_redirect" => true, |
221 | 221 | "async" => true, |
222 | 222 | "css_selector" => "a[href*=\"optimizely\"]", |
223 | 223 | "dependencies" => array( |
224 | - 24, |
|
225 | - 26 |
|
224 | + 24, |
|
225 | + 26 |
|
226 | 226 | ), |
227 | 227 | "destination" => "https://app.optimizely.com/", |
228 | 228 | "extension_id" => 1234, |
229 | 229 | "preserve_parameters" => true, |
230 | 230 | "src" => 524, |
231 | 231 | "value" => "window.someGlobalFunction();" |
232 | - ) |
|
232 | + ) |
|
233 | 233 | ), |
234 | 234 | "page_id" => 0 |
235 | - ) |
|
235 | + ) |
|
236 | 236 | ), |
237 | 237 | "archived" => true, |
238 | 238 | "key" => "blue_button_variation", |
239 | 239 | "name" => "Blue Button", |
240 | 240 | "variation_id" => 0, |
241 | 241 | "weight" => 0 |
242 | - ) |
|
242 | + ) |
|
243 | 243 | ) |
244 | 244 | ); |
245 | 245 |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | "category" => "add_to_cart", |
44 | 44 | "description" => "Item added to cart", |
45 | 45 | "event_filter" => array( |
46 | - "filter_type" => "target_selector", |
|
47 | - "selector" => ".menu-options" |
|
46 | + "filter_type" => "target_selector", |
|
47 | + "selector" => ".menu-options" |
|
48 | 48 | ), |
49 | 49 | "event_type" => "custom", |
50 | 50 | "key" => "add_to_cart", |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | "category" => "add_to_cart", |
74 | 74 | "description" => "Item added to cart", |
75 | 75 | "event_filter" => array( |
76 | - "filter_type" => "target_selector", |
|
77 | - "selector" => ".menu-options" |
|
76 | + "filter_type" => "target_selector", |
|
77 | + "selector" => ".menu-options" |
|
78 | 78 | ), |
79 | 79 | "event_type" => "custom", |
80 | 80 | "key" => "add_to_cart", |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | case 'variation_id': $this->setVariationId($value); break; |
50 | 50 | case 'variation_reach': $this->setVariationReach($value); break; |
51 | 51 | default: |
52 | - throw new Exception('Unknown option: ' . $name); |
|
52 | + throw new Exception('Unknown option: '.$name); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | // Remove options with empty values |
70 | 70 | $cleanedOptions = array(); |
71 | 71 | foreach ($options as $name=>$value) { |
72 | - if ($value!==null) |
|
72 | + if ($value !== null) |
|
73 | 73 | $cleanedOptions[$name] = $value; |
74 | 74 | } |
75 | 75 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | case 'variation_id': $this->setVariationId($value); break; |
50 | 50 | case 'variation_reach': $this->setVariationReach($value); break; |
51 | 51 | default: |
52 | - throw new Exception('Unknown option: ' . $name); |
|
52 | + throw new Exception('Unknown option: '.$name); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | // Remove options with empty values |
70 | 70 | $cleanedOptions = array(); |
71 | 71 | foreach ($options as $name=>$value) { |
72 | - if ($value!==null) |
|
72 | + if ($value !== null) |
|
73 | 73 | $cleanedOptions[$name] = $value; |
74 | 74 | } |
75 | 75 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | case 'variation_id': $this->setVariationId($value); break; |
50 | 50 | case 'variation_reach': $this->setVariationReach($value); break; |
51 | 51 | default: |
52 | - throw new Exception('Unknown option: ' . $name); |
|
52 | + throw new Exception('Unknown option: '.$name); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | // Remove options with empty values |
70 | 70 | $cleanedOptions = array(); |
71 | 71 | foreach ($options as $name=>$value) { |
72 | - if ($value!==null) |
|
72 | + if ($value !== null) |
|
73 | 73 | $cleanedOptions[$name] = $value; |
74 | 74 | } |
75 | 75 |