Changing the Thank-You page of the newsletter subscription

Changing the Thank-You page of the newsletter subscription

Berzi
Visitor
3 0 0

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:

a4392c40-3440-41e3-9a81-0ea3ac2f5acc.png

 

This is the confirmation mail for the double opt-in, where we would like to customize the target URL of the button:

2023-08-13_13-18.png

 

 

 

 

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:

 

2023-08-13_13-17_1.png

 

 

 

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

Replies 4 (4)

JaviExpress
Shopify Partner
183 16 26

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 %}

Customer Accounts Concierge
All-in-One Customer Portal: Profile, Orders, Loyalty, Referral, Wishlist, Custom Forms, Social Login
Berzi
Visitor
3 0 0

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 🙂

JaviExpress
Shopify Partner
183 16 26

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

Customer Accounts Concierge
All-in-One Customer Portal: Profile, Orders, Loyalty, Referral, Wishlist, Custom Forms, Social Login
Berzi
Visitor
3 0 0

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 😕