Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey!
We would like to change the page when somebody clicks the confirmation of his e-mail address.
I am talking about the default newsletter integration in shopify.
This is what the default thank you page is looking like:
This is the confirmation mail for the double opt-in, where we would like to customize the target URL of the button:
I read in some other article that it is possible to customize the button URL in this part of the code to another prepared sub-page:
I did that. I changed the part
href="{{ customer.subscribe_url }}"
to
href="https://mypage.de/example-sub-page"
The button has the new URL then, but it has not the needed Token. So the mail looks fine and customized, but a click onto the button doesn't activate the customers subscription anymore 😕
What am I doing wrong here?
Thank you very much!
Regards
Berzi
Hi
Perhaps not a great solution but you could add a redirect in theme.liquid, like
{% if canonical_url contains '/account/subscribe' %}
<script>
window.location.href = "/yourpage";
</script>
{% endif %}
Thank you. This is a valuable workaround, but not perfect.
If you click on the mail button now, you see the original page for a second and then you're redirected to the new page. It's good as a temporarily solution now, so thanks a lot for that! (Token is set in that second, so the abonnement has been activated then and the opt-in has worked, what was the problem before changing the URL in the button itself)
But as a longterm solution this might not be the greatest solution.
I am wondering if we really are the only page owner out there who wants to customize the thank you page of the newsletter subscriptions in shopify?
Thanks a lot JaviExpress for the temporarily workaround! Better than nothing 🙂
Hey @Berzi
you're welcome, and thanks for liking my post too.
Yeah you are right in my experience few people uses either the notification or the setting to require marketing subscription confirmation, it's actually even difficult to find in the Shopify settings.
Not sure, but you could try to move the code up or down theme.liquid and perhaps it loads sooner, for example at the beginning of the <body> or the <head>
Best
Yes, I really have the code snippet right in the end of the body. But I don't want to change that, to have another snippet right in front everything else loading for my whole page, just because of one single subpage needs a redirect 😕
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025