Skip to main content

Thank You Page Linking

Thank You Page Linking prompts guest checkout customers to create or link a Google account after completing their order, capturing valuable customer data and enabling future one-click purchases.

PRO Feature

Thank You Page Linking is a PRO feature. Upgrade to PRO to unlock this functionality.

The Opportunity​

After checkout, customers are:

  • Invested (just made a purchase)
  • Engaged (still on your site)
  • Motivated (want order updates)

This is the perfect moment to capture their account.

How It Works​

Customer completes guest checkout
↓
Order thank you page loads
↓
Google sign-in prompt appears
↓
Customer clicks to link
↓
Account created, linked to order
↓
Future checkouts are faster

Configuration​

Enable Thank You Linking​

  1. Go to Settings > OneTap Login
  2. Click Integrations tab
  3. Enable Thank you page linking
  4. Configure prompt message
  5. Save Changes

Settings Options​

SettingDescription
Enable linkingToggle feature on/off
Prompt headingTitle of the prompt
Prompt messageExplanation text
Show benefitsList benefits of creating account
Auto-link orderAutomatically associate order

User Experience​

The Prompt​

After order confirmation, customer sees:

┌────────────────────────────────────────┐
│ 🎉 Thanks for your order! │
│ │
│ Order #1234 confirmed. │
│ │
│ ───────────────────────────── │
│ │
│ Create an account for: │
│ ✓ One-click checkout next time │
│ ✓ Easy order tracking │
│ ✓ Faster support │
│ │
│ [G Continue with Google] │
│ │
│ No thanks, continue as guest │
└────────────────────────────────────────┘

After Linking​

Customer sees:

  • "Account created!" confirmation
  • Link to My Account
  • Order visible in their account

Order Association​

Automatic Linking​

When customer creates account:

  1. New WordPress user created
  2. Email matches guest order
  3. Order customer_id updated
  4. Order appears in My Account

Data Preserved​

All order data remains intact:

  • Order items
  • Shipping address
  • Billing address
  • Payment method
  • Order notes

Benefits Display​

Customize the benefits shown:

Default Benefits​

✓ One-click checkout next time
✓ Easy order tracking
✓ Faster support
✓ Exclusive offers

Custom Benefits​

Configure your own:

✓ Track your shipment
✓ Easy returns and exchanges
✓ 10% off your next order
✓ Early access to sales

Timing and Display​

When to Show​

The prompt appears:

  • On order-received (thank you) page
  • Only for guest orders
  • If customer not already logged in

Display Options​

OptionBehavior
InlineBelow order confirmation
ModalPopup after brief delay
Slide-inSidebar prompt

Auto-dismiss​

Optionally auto-dismiss after:

  • Time delay (e.g., 30 seconds)
  • User scrolls away
  • User clicks "No thanks"

Multiple Orders Linking​

If guest email has multiple orders:

1. Customer creates account
2. Email matches multiple orders
3. All orders linked to account
4. Complete order history available

Existing Account Handling​

If email already has an account:

With Account Merge (PRO)​

1. Email matches existing account
2. Show merge prompt (password required)
3. After merge, order linked

Without Account Merge​

1. Email matches existing account
2. Show "Sign in" instead of "Create"
3. After login, order linked

Hooks for Developers​

Customize Prompt Content​

add_filter('onetap_thankyou_prompt', function($content, $order) {
// Customize based on order
if ($order->get_total() > 100) {
$content['benefits'][] = 'VIP customer perks';
}
return $content;
}, 10, 2);

After Order Linked​

add_action('onetap_order_linked', function($order_id, $user_id) {
// Update order notes
$order = wc_get_order($order_id);
$order->add_order_note('Order linked to account via Thank You page');

// Trigger automation
do_action('customer_account_created', $user_id, $order_id);
}, 10, 2);

Filter Display Conditions​

add_filter('onetap_show_thankyou_prompt', function($show, $order) {
// Don't show for subscription orders
if (function_exists('wcs_order_contains_subscription')) {
if (wcs_order_contains_subscription($order)) {
return false;
}
}
return $show;
}, 10, 2);

WooCommerce Integration​

Order Meta​

When linked, order meta updated:

update_post_meta($order_id, '_customer_user', $user_id);

Customer Reports​

Linked orders appear in:

  • Customer reports
  • Customer lifetime value
  • Order history

Email Consistency​

Customer receives:

  • Original order confirmation (guest email)
  • Account created email (if configured)
  • Future emails to same address

Conversion Optimization​

A/B Testing Ideas​

Test variations of:

  • Prompt timing (immediate vs delayed)
  • Benefit messaging
  • Button text
  • Visual design

Metrics to Track​

MetricTarget
View rate100% of guest orders
Click rate15-30%
Completion rate80%+ of clicks
Overall conversion15-25%

Improving Conversion​

Tips:

  1. Emphasize immediate benefits
  2. Make it feel quick/easy
  3. Offer incentive (discount code)
  4. Reduce friction (one click)

Troubleshooting​

Prompt Not Appearing​

Causes:

  1. Feature disabled
  2. Customer already logged in
  3. Not on thank you page
  4. JavaScript error

Solutions:

  1. Enable in settings
  2. Test as guest
  3. Verify page template
  4. Check console

Order Not Linking​

Causes:

  1. Email mismatch
  2. Order already linked
  3. Customer ID conflict

Solutions:

  1. Verify emails match
  2. Check order customer_id
  3. Review order meta

Wrong Orders Linked​

Causes:

  1. Multiple guests with same email
  2. Email typo
  3. System error

Solutions:

  1. Expected behavior (same email = same customer)
  2. Check original order emails
  3. Review linking logic

Security Considerations​

Order Privacy​

  • Only orders matching email are linked
  • No cross-customer linking possible
  • Email verification via Google

Data Protection​

  • Guest can decline linking
  • No forced account creation
  • Respects GDPR requirements

Mobile Experience​

Mobile Optimization​

The prompt:

  • Full width on mobile
  • Large touch targets
  • Easy dismiss option
  • Fast loading

Mobile One Tap​

If user has Google session:

  • One Tap may appear
  • Extra-fast account creation
  • Minimal friction

Best Practices​

Do's​

  • Enable for all guest orders
  • Clear benefit messaging
  • Test regularly
  • Track conversion rates

Don'ts​

  • Don't force account creation
  • Don't hide dismiss option
  • Don't show to logged-in users
  • Don't overcomplicate

Next Steps​