Tips & Best Practices
Best Practices Using SA5's User Info Library
Use the userInfoChanged Callback Effectively
userInfoChanged Callback Effectively<!-- Sygnal Attributes 5 | Memberships | User Info Changed Event -->
<script>
window.sa5 = window.sa5 || [];
window.sa5.push(['userInfoChanged',
(user) => {
// Check to verify the fields you need are loaded (see below)
if(user.user_data_loaded.custom_fields) {
// Do something with custom fields
// ...
return;
}
}]);
</script>How to determine when the data you need is loaded
Site-wide v. Page-specific Callbacks
DEPRECATED - SA4 Notes
Site-wide v. Page-specific Callbacks
Last updated