Troubleshooting
Troubleshooting and FAQs for SA5's Current User Info.
Enabling & Disabling Debugging
SA5 has built-in debugging, which will emit some deeper information that may be helpful in diagnosing your setup issue.
To activate it on your site, append this querystring on any page;
This will enable debugging only on the machine you are currently on. It will remain on as you navigate through the site, even when you no longer have that querystring.
To disable debugging, do the same with;
Viewing Debug Message Details
SA5's debug messages will appear in the console of your browser's DevTools.

Using Debug Messages
Engineers on the SA5 open source project will be able to make use of most of the messages here. For most users, the most valuable thing is the SA5User objects.
You can expand these to view the state of the data at that point in the load, for example does it have the user's email, access groups, name, custom data, and more.
The user_data_loaded
field shows what it has completed loading so you can diagnose issues by comparing this to the data you have. If user_data_loaded.access_groups
shows true, but your access_groups
are empty, you might have a configuration problem with access groups and you'd know to review the setup instructions there.

Can't access User Custom Fields
I'm not getting the custom user fields in my user object data
Make certain you have the custom user fields placed on your /user-account page.
They can be placed inside of a display: none DIV, but they must be on the page.
Make certain to you have logged out and logged in, for the new User Data to load
User Data Usually Loads, But Sometimes it Doesn't
SA5 User Info depends on Webflow's /user-account
page, which can be slow. If Webflow's servers or your network are too slow, then the data may not have been loaded yet when we access it.
To remedy this, you can increase SA5's default delay before the data is read from the /user-account
page.
This is done under the config.advanced
property...
What the properties do;
accountInfoLoadDelay defines the time ( in milliseconds ) that SA5 should wait for Webflow to complete loading the account info in the account info page. This is the point at which all of the input fields should be populated by webflow.js.
accountInfoSaveDelay defines the time ( in milliseconds ) that SA5 should wait after account info is updated and saved on the account info page, before re-loading the data to update the User Info object.
As of SA5 User Info v5.4.6, the configuration will be emitted in the debugging stream so that you can verify your settings.
On Webflow's ECommerce Checkout Page, the User's Email shows and then disappears after a second.
Last updated
Was this helpful?