I am using custom code for member registration and would like to set the member’s subscription status to “SUBSCRIBED” as part of the registration process.
I’ve explored some workarounds that achieve this, but I am looking for a more direct and efficient solution. If anyone has insights on how to accomplish this natively within Wix, I would appreciate your guidance.
Is this currently working? When I tried to use this (in backend code), I get an editor warning (Module ‘“wix-marketing.v2” has no exported member ‘marketingConsent’). When I tried to use it anyway, I get a runtime error trying to access one of the functions (Cannot read properties of undefined (reading ‘getMarketingConsentByIdentifier’)).
Response from Wix support: Please install @wix/marketing1.0.124 MIT NPM package via Packages tab in velo code panel and use Get Marketing Consent SDK API instead because currently getMarketingConsent( ) Velo API is under development review and is not recommended for production.