@ss-dub FieldsRaven needs an object ID – in your case customer.id – to attach the metafield to the right object, without having a logged in customer how would you know where to save the metafield?
Topic summary
Topic: Saving/updating Shopify customer metafields from the storefront and syncing them to Klaviyo.
-
Platform constraints: Shopify does not allow editing customer metafields via the Storefront API for security reasons. Writing/updates must go through Admin REST or GraphQL APIs, requiring a backend/external integration.
-
Suggested approaches: Use customized customer registration/profile forms to collect additional information and then store it as metafields via Admin APIs.
-
App-based solutions: FieldsRaven enables theme developers to write customer metafields from the frontend with code; however, attaching data requires a customer object ID (customer.id), so saving without the user being logged in is not straightforward. Another app’s “Custom Forms” module saves data directly to customer metafields and can push it to Klaviyo upon form submission.
-
Klaviyo: Syncing customer metafields to Klaviyo is supported via app integrations.
-
Status: No native, front-end-only solution. Viable paths involve custom backend development or third-party apps. Key open point: handling updates for users not logged in, given the need to identify the customer record.