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.
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
- Go to Settings > OneTap Login
- Click Integrations tab
- Enable Thank you page linking
- Configure prompt message
- Save Changes
Settings Options
| Setting | Description |
|---|---|
| Enable linking | Toggle feature on/off |
| Prompt heading | Title of the prompt |
| Prompt message | Explanation text |
| Show benefits | List benefits of creating account |
| Auto-link order | Automatically 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:
- New WordPress user created
- Email matches guest order
- Order
customer_idupdated - 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
| Option | Behavior |
|---|---|
| Inline | Below order confirmation |
| Modal | Popup after brief delay |
| Slide-in | Sidebar 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
| Metric | Target |
|---|---|
| View rate | 100% of guest orders |
| Click rate | 15-30% |
| Completion rate | 80%+ of clicks |
| Overall conversion | 15-25% |
Improving Conversion
Tips:
- Emphasize immediate benefits
- Make it feel quick/easy
- Offer incentive (discount code)
- Reduce friction (one click)
Troubleshooting
Prompt Not Appearing
Causes:
- Feature disabled
- Customer already logged in
- Not on thank you page
- JavaScript error
Solutions:
- Enable in settings
- Test as guest
- Verify page template
- Check console
Order Not Linking
Causes:
- Email mismatch
- Order already linked
- Customer ID conflict
Solutions:
- Verify emails match
- Check order customer_id
- Review order meta
Wrong Orders Linked
Causes:
- Multiple guests with same email
- Email typo
- System error
Solutions:
- Expected behavior (same email = same customer)
- Check original order emails
- 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
- Custom Redirects - Post-signup destinations
- Welcome Email Editor - New user emails
- UTM Tracking - Attribution for orders