Skip to content

Commit 1ea6dec

Browse files
refactor: add opt-in tracking in the last step
1 parent a93f6eb commit 1ea6dec

File tree

3 files changed

+363
-223
lines changed

3 files changed

+363
-223
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,7 @@ private function setup_wizard_subscribe_process() {
17661766
);
17671767
}
17681768
if ( $with_subscribe && is_email( $email ) ) {
1769+
update_option( 'feedzy_rss_feeds_logger_flag', 'yes' );
17691770
$request_res = wp_remote_post(
17701771
FEEDZY_SUBSCRIBE_API,
17711772
array(

includes/layouts/setup-wizard.php

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,35 @@ class="pro-label free-label"><?php esc_html_e( 'Free', 'feedzy-rss-feeds' ); ?><
306306
<div class="fz-newsletter-wrap">
307307
<div class="fz-newsletter">
308308
<p class="p pb-30"><?php esc_html_e( 'Let us know your email so that we can send you product updates, helpful tutorials, exclusive offers and more useful stuff.', 'feedzy-rss-feeds' ); ?></p>
309+
310+
<ul class="fz-benefits-list">
311+
<li>
312+
<svg width="16" height="16" viewBox="0 0 24 24" fill="#00a32a" aria-hidden="true">
313+
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>
314+
</svg>
315+
<?php esc_html_e( 'Receive product updates, tutorials, and exclusive offers', 'feedzy-rss-feeds' ); ?>
316+
</li>
317+
<li>
318+
<svg width="16" height="16" viewBox="0 0 24 24" fill="#00a32a" aria-hidden="true">
319+
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>
320+
</svg>
321+
<?php esc_html_e( 'Help improve Feedzy by sharing anonymous usage data', 'feedzy-rss-feeds' ); ?>
322+
</li>
323+
<li>
324+
<svg width="16" height="16" viewBox="0 0 24 24" fill="#00a32a" aria-hidden="true">
325+
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>
326+
</svg>
327+
<?php esc_html_e( 'Get priority notification about new features', 'feedzy-rss-feeds' ); ?>
328+
</li>
329+
</ul>
330+
331+
<div class="fz-privacy-note">
332+
<svg width="14" height="14" viewBox="0 0 24 24" fill="#666">
333+
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"/>
334+
</svg>
335+
<span><?php esc_html_e( 'Your privacy matters: We only collect anonymous plugin usage data. No sensitive information is shared with third parties.', 'feedzy-rss-feeds' ); ?></span>
336+
</div>
337+
309338
<div class="fz-form-group">
310339
<input type="email" id="fz_subscribe_email" class="form-control" placeholder="<?php echo esc_attr( get_bloginfo( 'admin_email' ) ); ?>" value="<?php echo esc_attr( get_bloginfo( 'admin_email' ) ); ?>">
311340
</div>
@@ -317,8 +346,8 @@ class="pro-label free-label"><?php esc_html_e( 'Free', 'feedzy-rss-feeds' ); ?><
317346
</div>
318347
<div class="form-block">
319348
<div class="fz-btn-group">
320-
<button class="btn btn-primary fz-subscribe" data-fz_subscribe="true"><?php esc_html_e( 'Send Me Access', 'feedzy-rss-feeds' ); ?></button>
321-
<button class="btn btn-outline-primary fz-subscribe" data-fz_subscribe="false"><?php esc_html_e( 'Skip, Don’t give me access', 'feedzy-rss-feeds' ); ?></button>
349+
<button class="btn btn-primary fz-subscribe" data-fz_subscribe="true"><?php esc_html_e( 'Complete Setup & Start Using Feedzy', 'feedzy-rss-feeds' ); ?></button>
350+
<button class="btn btn-link fz-subscribe fz-skip-link" data-fz_subscribe="false"><?php esc_html_e( 'Skip for now', 'feedzy-rss-feeds' ); ?></button>
322351
<span class="spinner"></span>
323352
</div>
324353
</div>

0 commit comments

Comments
 (0)