| @@ -136,12 +136,17 @@ | ||
| 136 | 136 | return $result; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | - * Opt the site into WP Insights usage tracking and send the data to the | |
| 141 | - * insights API immediately. Triggered when the user proceeds past the | |
| 142 | - * Welcome step — the in-card notice states that proceeding consents to | |
| 140 | + * Record the user's opt-in to WP Insights usage tracking and send the data | |
| 141 | + * to the insights API immediately. Triggered when the user proceeds past | |
| 142 | + * the Welcome step — the in-card notice states that proceeding consents to | |
| 143 | 143 | * collecting the admin email to personalise the setup. |
| 144 | + * | |
| 145 | + * The wizard no longer decides *whether* data is collected: collection is | |
| 146 | + * enabled from the backend on activation regardless of this flow (see | |
| 147 | + * {@see \NotificationX\Admin\PluginInsights::is_tracking_allowed()}). | |
| 148 | + * This only stores the explicit consent state and sends immediately. | |
| 144 | 149 | * |
| 145 | 150 | * @return bool |
| 146 | 151 | */ |
| 147 | 152 | public function optin_tracking() { |