Headless Store marketing Email double opt in on own page

topboi99
Shopify Partner
5 0 1

Hello, we have a Headless store. The emails have to be double opt-in. After the checkout the customer receives the Email  as expected but the link in the email points to the Shopify Online Store.  

I tried to call the link in the email (that the customer would click if they click the confirm button) with fetch but this doesn't work. 

I found this which should work (didn't implement it yet) https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/customerEmailMarketingConsentUpdate but is there a simpler method?

There is a similar question https://community.shopify.com/c/hydrogen-headless-and-storefront/redirect-marketing-email-confirmati...

Reply 1 (1)

rmk-dev
Shopify Partner
5 0 1

Hi,

 

as far as I know there is no way to change the link, so it will always point to the Shopify store.