Skip to main content
Solved

ACTION URL for newsletter


Forum|alt.badge.img

Hello,

I have a newsletter form already set up on my shopify shop and all I need to do is add a action URL, I would like the action URL to automatically add someones email address into my “new subscribers” list in my klaviyo which then will automatically send them a welcome email however I cannot find anywhere a URL and the URL i did find in subscribe and preferences pages takes me to an error page when I submit an email address

 

Any help would be appreciated ,

Thanks

Best answer by emma.owens

Hi ​@sidneyandme ! 

It looks like we already have a few great responses above, but wanted to provide a secondary option here. If a profile subscribes via your Shopify newsletter form, your Shopify integration is likely set up to sync those Shopify subscribers into Klaviyo. Within your Shopify settings (https://www.klaviyo.com/integration/shopify), scroll down to ‘Sync Settings’: 

From here, you can select the list that you would like your Shopify subscribers to be added to - in your case you would select your ‘New Subscribers’ list. So, when somebody fills out your Shopify form and is subscribed in Shopify, that profile will then automatically sync into Klaviyo and be added to your ‘New Subscribers’ list. This is outlined in further detail here: https://help.klaviyo.com/hc/en-us/articles/115005080407#h_01HSERAG9Y1DNHNSCHTKV3G04D

 

Please let me know if this solves your issue or if you are looking for a different solution! 

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

ProMarketer
Contributor II
Forum|alt.badge.img+5
  • Contributor II
  • 3 replies
  • January 12, 2025

 

Steps to Get the Action URL for Klaviyo Signup Forms:

  1. Create a New Signup Form in Klaviyo

    • Go to Signup Forms in Klaviyo and create a new embedded form.
    • Choose or create a form that collects only the email address (or other desired fields).
    • Once your form is ready, click Publish.
  2. Copy the Form Action URL

    • After publishing the form, click on the dropdown arrow next to Edit Form and select Embed Form.

    • You’ll see a code snippet that looks like this:

      <form action="https://manage.kmail-lists.com/subscriptions/subscribe?a=XXXXXX" method="POST">
      
    • Copy the action URL inside the <form> tag (everything between the quotes after action=).

  3. Update Your Shopify Form

    • Go to your Shopify theme editor and locate the newsletter form code.

    • Replace the existing action URL with the one you copied from Klaviyo.

    • Make sure the method is set to POST, and that the input field for the email has the attribute name="email".

      Example:

      <form action="https://manage.kmail-lists.com/subscriptions/subscribe?a=XXXXXX" method="POST">
        <input type="email" name="email" placeholder="Enter your email" required>
        <button type="submit">Subscribe</button>
      </form>
      
  4. Test the Form

    • Go to your Shopify store and enter a test email address in the form.
    • Check if the email is added to your New Subscribers list in Klaviyo.
    • Ensure that the welcome email automation is triggered.

Troubleshooting Tips:

  1. Ensure Double Opt-In is Disabled (if needed)
    If your subscribers aren’t appearing immediately in Klaviyo, check if double opt-in is enabled.

    • Go to Lists & Segments in Klaviyo.
    • Click on the list you’re using (e.g., “New Subscribers”).
    • Go to Settings and disable the double opt-in option if you prefer single opt-in.
  2. Error Page Issues

    • If you see an error page after submitting the form, it may be due to incorrect or missing parameters in the URL. Ensure you’re using the correct action URL from the embedded form and that the method is set to POST.

If you'd like more detailed guidance or need help with the exact form code, let me know!


Christiannoerbjerg
Expert Problem Solver II
Forum|alt.badge.img+12

Hi ​@sidneyandme 

Thank you for posting in the Community!

Just to Clarify. I think the problem, that you’re seeing is because the subscribers, that sign-up thought your form have been subscribed via. the Shopify integration and then are being synced by the accepts marketing tag into Klaviyo. 

Could that be the case? 

If i’m understand you wrong - Please let me know.

I would love to help with your issue! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov 


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+13
  • Problem Solver IV
  • 184 replies
  • January 12, 2025

Hello ​@sidneyandme ,

I understand you're looking to integrate your Shopify newsletter form with Klaviyo to automatically add subscribers to your "new subscribers" list and trigger a welcome email. For this to work properly, you will need to use Klaviyo's API for the action URL, specifically the endpoint for adding new profiles to a list.

The error you're encountering might be due to incorrect URL formatting or missing parameters in the subscription form. If you'd like, I can help ensure that the integration is set up correctly, whether it's creating the action URL or troubleshooting the form submission process. Please feel free to reach out if you'd like further assistance with this setup.


emma.owens
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • 42 replies
  • Answer
  • January 13, 2025

Hi ​@sidneyandme ! 

It looks like we already have a few great responses above, but wanted to provide a secondary option here. If a profile subscribes via your Shopify newsletter form, your Shopify integration is likely set up to sync those Shopify subscribers into Klaviyo. Within your Shopify settings (https://www.klaviyo.com/integration/shopify), scroll down to ‘Sync Settings’: 

From here, you can select the list that you would like your Shopify subscribers to be added to - in your case you would select your ‘New Subscribers’ list. So, when somebody fills out your Shopify form and is subscribed in Shopify, that profile will then automatically sync into Klaviyo and be added to your ‘New Subscribers’ list. This is outlined in further detail here: https://help.klaviyo.com/hc/en-us/articles/115005080407#h_01HSERAG9Y1DNHNSCHTKV3G04D

 

Please let me know if this solves your issue or if you are looking for a different solution!