Troubleshooting
Troubleshooting and FAQs for SA5's Current User Info.
Last updated
Troubleshooting and FAQs for SA5's Current User Info.
Last updated
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;
SA5's debug messages will appear in the console of your browser's DevTools.
Make certain to enable Verbose debugging or many of the detail messages will not be visible to you.
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.
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
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...
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.
If you're trying to use SA5's data-binding feature on Webflow's ECommerce check-out page to default the checkout email, we've seen a couple of mentions that fields on this page may be getting reset after databinding. If you experience this, here's a general strategy you can use to force it.