To sync user data with in-app guides, send attributes through one of three paths: the client-side SDK, your backend’s REST API, or a warehouse sync through a CDP or reverse ETL tool. A plan-tier column in your billing database, for example, is the difference between a tour every user sees and one that only reaches Pro trials in their first week. Engineering sets up the pipe once; after that, product teams build segments and target guides on those attributes without filing tickets.
Key Takeaways
- Give every attribute key one owner. When the client, backend and warehouse all write the same field, the last write wins unpredictably.
- Use your database ID as the user ID and sign it. A signed ID stops users from loading someone else’s guide experience.
- Send only attributes that change targeting. Plan, role and signup date belong in the guide tool; emails and payment data stay in the warehouse.
- Call identify() again when a key attribute changes. Conditions evaluate on page load and navigation, not continuously.
- Time warehouse syncs to land before the user’s next session. An overnight job is too late for a first-login tour.
The Short Answer: Three Ways to Sync User Data
You can sync user data with in-app guides from the browser, your backend, or your warehouse. Each route trades speed for trust differently:
- Client-side SDK identify:
userflow.identify()runs on page load with attributes your frontend already holds. It trusts whatever the browser reports. - Server-side REST API: Your backend calls
POST /userswith attributes the browser never sees. An engineer sets it up once, and trusted or high-volume fields then update without app changes. - Customer data platform (CDP) or reverse ETL (warehouse-to-app sync): Segment forwards event and trait data, while Hightouch or Census push warehouse columns on a schedule. This path needs no app code, but data is only as fresh as the last sync.
Which Attributes to Send
Send the attributes that would change which guide a user sees, and nothing else. Every attribute you send is one you have to keep fresh.
- Standard traits: Developer-set fields include the required
userId, plusemail,name, andsigned_up_at;first_seen_atandlast_seen_atare set automatically.signed_up_atpowers “signed up in the last 7 days” targeting. - Custom attributes: Plan, role, lifecycle stage, seat count, and feature flags split audiences. Use
snake_casekeys and one type per key. - Company records: Plan usually belongs on the company via
userflow.group(groupId, attributes), with per-company role as a membership attribute. - Product events:
userflow.track()or no-code event trackers answer “has done X”; attributes answer “is X.” Start with no-code trackers, which need no engineering.
To build the list, have an AI assistant map your users table schema to these four categories, then review it before anything ships.
How to Sync User Data With In-App Guides: Step by Step
Run all three layers with one ownership rule: the client writes what the browser knows, the server writes what must be trusted, and the warehouse writes what’s derived. POST /users upserts, creating the user if new and updating attributes if not. Because any source can overwrite any key, give each key one writer.
Step 1: Set the User Identity Right
Use your database primary key as the userId, never an email. A changed ID looks like a new person, and the old profile’s completed and dismissed history stays behind. Call userflow.reset() on sign-out so the next login on a shared machine doesn’t inherit the previous profile.
Sign the ID so a user can’t impersonate someone else by editing a request. Userflow checks an HMAC-SHA256 hash (a keyed signature) of the user ID generated with your environment’s Secret Key:
Pass the result as signature in identify(), then turn on “Enforce identity verification” in Settings under Identity verification. Anonymous visitors get userflow.identifyAnonymous(attributes) and a localStorage UUID that nothing links to a later identify(), so identify logged-in users before any flow starts.
Step 2: Sync From the Client-Side SDK
The identify call carries attributes as a plain object, with the signature in the third argument:
Values can be strings, booleans, numbers, or lists of strings. A user with dev tools open can send plan: 'pro', so treat client attributes as guidance data, never as the record for anything that gates access.
Step 3: Sync Trusted or Bulk Data Server-Side
This is a one-time engineering setup: once it’s in place, fields you’d rather keep out of the JavaScript bundle (a churn-risk score, billing status) update without app releases. The call uses a Bearer API key and the Userflow-Version: 2020-01-03 header. An example request:
Run a backfill as one request per user, pacing your calls against the per-minute limit that applies to your plan, and back off with a retry when a request returns 429. Requests queued longer than 15 seconds may return 503, so retry those the same way. Use the same shape through POST /groups to sync companies.
Step 4: Sync From a Warehouse via CDP or Reverse ETL
Userflow’s Segment integration carries event and trait data. Hightouch’s Userflow destination syncs Users and Groups in Upsert or Update mode. Census syncs User, Group, and Event objects. Use the same user ID in the CDP as in identify() to avoid the duplicates from Step 1.
Prefix warehouse-owned keys (wh_health_score) so they’re easy to tell apart from keys your app writes.
Step 5: Control When Data Refreshes
Decide what triggers each refresh, because Userflow evaluates auto-start conditions on page load and navigation, not continuously.
- On load:
identify()runs at init, so attributes the frontend holds refresh every page load. - On change: Call
identify()again when a user upgrades mid-session; the new value should apply at the next page load or navigation. - Scheduled: Hightouch and Census diff the current query against a stored snapshot matched on primary key rather than reading
updated_at, so a table without a primary key won’t sync incrementally. Hightouch’s Basic (default) engine stores the diff file for 30 days; if a sync doesn’t run for more than 30 days the diff file expires and the next run requires a full resync. Census offers a Mirror behavior for Userflow users that compares against data already sent. - Removing a value: send
nullfor the key.
Step 6: Turn Synced Attributes Into Targeting and Segments
Create an attribute-based segment where plan equals pro and signed_up_at is in the last 14 days. In flow conditions, rules inside one group are ANDed and a second group adds an OR.
Open the flow, choose Add condition, then Segments, per Userflow’s flow targeting and audience rules, and publish.
Through Userflow MCP, an AI assistant like Claude or ChatGPT can list the attributes Userflow has received, check their types, and draft the segment for you, with no engineering ticket required. The segment comes back as a reviewable draft with a direct link, so you inspect the logic before hitting publish yourself. Build compound logic inside a single segment rather than nesting segments. Target announcements with attribute conditions rather than event conditions. After launch, check completion by segment in Product Adoption Insights and tighten the filter if the wrong users finish.
Comparing How Major Platforms Accept User Data
Each platform takes user data a little differently. This comparison uses each vendor’s developer docs as of September 2026:
Guide State Across Devices
Userflow stores every step’s state on the backend against the user ID, so a user who reloads mid-flow resumes at the step they reached. Dismissing or completing a flow each write a server-side session record that frequency rules check. Log in on a new laptop or clear browser data, and identify() with the same ID restores the history. Only anonymous users lose state.
For testing, userflow.reset() hides active flows and forgets the current user but leaves session records intact, so identify with a fresh test ID.
Privacy, Personal Data (PII), and Consent: What Not to Sync
Hashing an email doesn’t remove your obligations. The ICO’s pseudonymisation guidance classes hashing as pseudonymisation, not anonymisation, and advises against unsalted hashes. Send the user ID instead, keep any hashing key on your side, and skip the email unless a workflow genuinely needs it.
Before the first identify call reaches a US-based guide platform:
- Lawful basis and notice: Document your GDPR Article 6(1) basis and name the guide platform as a recipient in your privacy notice.
- Written agreement: Sign an Article 28 data processing agreement and a CCPA written service-provider contract that keeps the transfer from counting as a sale or share.
- Transfer mechanism: Confirm the vendor’s EU-U.S. Data Privacy Framework certification or sign the 2021 Standard Contractual Clauses plus a transfer impact assessment.
- SDK consent: ePrivacy Article 5(3) can require consent for JavaScript that stores data in the browser, so gate
userflow.init()behind your consent tool.
Troubleshooting
Most broken targeting traces to identity, timing, or type:
Retry only 429, 5xx, and network errors, using the AWS Full Jitter formula: delay = random(0, 1) × min(cap_ms, base_delay_ms × 2^retry), with a 1,000 ms base and a 20 to 64 second cap. Limit retries to the three attempts Google’s SRE Book recommends.
Userflow’s add and subtract are cumulative with no documented deduplication, so a retried add double-counts. Prefer set, and for inbound webhooks return 2xx immediately and log processed event IDs so replays don’t double-write.
Frequently Asked Questions
Should I sync attributes from the SDK or the backend?
Both, split by trust. Attributes the frontend already holds go through userflow.identify(). Anything a user shouldn’t alter, like billing status, goes through POST /users.
Can I trigger a sync manually instead of waiting for the schedule?
A one-off POST /users call updates a single user outside any schedule, and the value applies at the next page load or navigation.
How often should user data sync to the guide platform?
As often as the guide decision needs. Client attributes refresh every page load, server attributes when the value changes, and warehouse attributes on your schedule, which must beat the user’s next login.
Will a user see a completed guide again on a new device?
Not if they identify with the same ID. Completion and dismissal live server-side against the user ID, so the history follows the user to a new device. Only anonymous users lose their history.
How do I keep PII out of the guide tool and still segment?
Identify with the database ID and send only decision attributes like plan, role, lifecycle stage, and signup date.
Why does an attribute look correct but still fail to target?
Usually a type mismatch: the string 'true' never matches the boolean true. See the Troubleshooting table for the fix.
Target Guides on Synced User Data
Once your attributes are flowing, you can build segments and target guides yourself in Userflow. It keeps guides in one shared library and serves them proactively by attribute or on demand when a user asks for help. Try Userflow free for 14 days, no credit card required.
.png)

