| @@ -205,8 +205,14 @@ | ||
| 205 | 205 | |
| 206 | 206 | // Collect data based on current step |
| 207 | 207 | switch(this.currentStep) { |
| 208 | 208 | |
| 209 | + case 2: // Connection and analytics consent | |
| 210 | + stepData.analytics = { | |
| 211 | + enabled: $('#wizard-analytics-consent').is(':checked') | |
| 212 | + }; | |
| 213 | + break; | |
| 214 | + | |
| 209 | 215 | case 4: // SEO Settings |
| 210 | 216 | stepData.seo_settings = { |
| 211 | 217 | date_archives: $('input[name="seo_date_archives"]').is(':checked'), |
| 212 | 218 | author_archives: $('input[name="seo_author_archives"]').is(':checked'), |