Skip to content

Commit 527dfe7

Browse files
fix: send integration reason in the subscribe event
1 parent cb89cd2 commit 527dfe7

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

includes/admin/feedzy-rss-feeds-admin.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,15 @@ private function setup_wizard_subscribe_process() {
17671767
}
17681768
if ( $with_subscribe && is_email( $email ) ) {
17691769
update_option( 'feedzy_rss_feeds_logger_flag', 'yes' );
1770+
1771+
$extra_data = array(
1772+
'segment' => $segment,
1773+
);
1774+
1775+
if ( ! empty( $integrate_with ) ) {
1776+
$extra_data['integration_scope_onboarding'] = $integrate_with;
1777+
}
1778+
17701779
$request_res = wp_remote_post(
17711780
FEEDZY_SUBSCRIBE_API,
17721781
array(
@@ -1781,9 +1790,7 @@ private function setup_wizard_subscribe_process() {
17811790
'slug' => 'feedzy-rss-feeds',
17821791
'site' => home_url(),
17831792
'email' => $email,
1784-
'data' => array(
1785-
'segment' => $segment,
1786-
),
1793+
'data' => $extra_data
17871794
)
17881795
),
17891796
)

0 commit comments

Comments
 (0)