diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index b06076f..67a94d2 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -12,6 +12,7 @@ use NewfoldLabs\WP\Module\Patterns\SiteClassification as PatternsSiteClassification; use NewfoldLabs\WP\Module\Data\SiteClassification\PrimaryType; use NewfoldLabs\WP\Module\Data\SiteClassification\SecondaryType; +use NewfoldLabs\WP\Module\Onboarding\Data\Events; use function NewfoldLabs\WP\ModuleLoader\container; @@ -247,6 +248,16 @@ public static function complete( $active_homepage, $homepage_data ) { self::trash_sample_page(); container()->get( 'cachePurger' )->purgeAll(); + container()->get( 'survey' )->create_toast_survey( + Events::get_category()[0], + 'customer_satisfaction_survey', + array( + 'label_key' => 'value', + ), + __( 'Help us improve', 'wp-module-onboarding-data' ), + __( 'How satisfied were you with the ease of creating your website?', 'wp-module-onboarding-data' ), + ); + return true; }