Question:
I’m trying to use the wixMembers_onMemberCreated()
event to insert new members into a custom database collection. However, despite following the official Velo documentation (using an events.js
file in the Backend, correct function name, correct export, etc.), the event never fires when a user registers via the Wix Members Area sign-up form.
Product:
Wix Editor / Wix Members Area App & Velo
What are you trying to achieve:
I have a custom collection (e.g., “Members”) that includes fields. Whenever a new user registers, I want to capture their details (userId, email, etc.) and automatically insert them into the custom collection. According to the documentation, the wixMembers_onMemberCreated()
event should trigger right after a successful registration, but in my case, it simply isn’t being called.
What have you already tried:
- Created an
events.js
file in the Backend folder with the exact function signature:export function wixMembers_onMemberCreated(event) { // ... }
- Verified correct spelling and case sensitivity of the function name.
- Added
console.log()
statements to see if the function is called—no logs appear. - Tested in a published site using the Wix Members Area sign-up form (with a brand-new email address) while not logged in as the site owner.
- Checked Velo Monitoring logs in the live environment; there is no record of the function running.
- Attempted multiple times in Incognito windows, ensuring the user is not previously registered.
Additional information:
- Permissions for the custom collection are set properly (write permissions in the Backend).
- No console errors appear.
- I’ve tried removing all other event handlers or code to avoid conflicts.
- My site is fully published, and I’ve confirmed I’m using a fresh email each time.
Any guidance on why the event might not be firing—or how to reliably insert new members into a custom database during registration—would be greatly appreciated.