Skip to main content
Solved

consent sign in checkbox in wp registration form


Forum|alt.badge.img+2

Hi everybody body im using the plugin "profile builder" to create my registration form.

The plugin has the feature to set the checkbox with a metaname.

What should i do to connect those person that tick the checkbox, to sign in to receive email marketing from klaviyo.

I dunno if it's somthing easier than i think.

Best answer by MANSIR2094

@HankSinatra. Thanks for the update. It looks like the accept_marketing metadata is successfully stored in WordPress, but Zapier isn’t recognizing it yet. This could be due to one of the following reasons:

 

1. Zapier isn’t pulling in all metadata fields. You can try refreshing the sample data in the Zapier trigger to see if accept_marketing appears.

 

2. The accept_marketing field isn’t included in the webhook (if a webhook is used). If you’re using a webhook, we need to ensure that this metadata is explicitly sent along with the user data.

 

Next Steps:

If you're using Zapier’s built-in WordPress integration, try refreshing the sample data.

 

If you're using a webhook, we may need to modify it to include accept_marketing.

 

As an alternative, I can guide you through a custom function in WordPress to send this data directly to Klaviyo.

 

Let me know how you'd like to proceed!

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

20 replies

Forum|alt.badge.img

To connect users who check the box in "Profile Builder" to Klaviyo for email marketing, integrate Klaviyo with your site (using a plugin like "Klaviyo for WooCommerce"). Set up a trigger for the checkbox, and use the Klaviyo API to add users who tick the box to your email marketing list.


TJ Mapes
Problem Solver I
Forum|alt.badge.img
  • 2025 Champion
  • 6 replies
  • February 21, 2025

Hey HankSinatra (love that name btw). I don’t have personal experience with “profile builder” but can you explain it’s benefits or why you chose it over just embedding a Klaviyo signup form?

It sounds like you’re using it for some type of registration form. While that checkbox is nice to have, if the tool allows, you could omit it in favor of a fast-follow Klaviyo signup form.

Once someone registers and is redirected to a page, you could target that URL within the signup form in Klaviyo. This gives you a better shot as selling the value of signing up for your list, while removing friction from the registration process.

Possibly just an idea to work around the issue you’re facing if you can’t resolve it. Cheers!


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 21, 2025

Hi Mapes,

Basically i have already the sign-up to newsletter form of klaviyo.

BUT

 

I want also the checkbox for sign-up to newsletter.

Today i almost done it.

Now is working with zapier, basically user created in wp = user created and signed to NL in klaviyo.

 

My only problem now is the filter, which should work with the checkbox.

 

It registry the email_consent in wp user meta, but zapier does not recognize this webhook.

 

At this moment, i don't know how to create that webhook

 


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 21, 2025

Hello ​@HankSinatra.,  

You can connect users who check the email marketing consent checkbox in Profile Builder to Klaviyo using Zapier or custom code.

  1. Ensure Profile Builder Captures the Checkbox Data

    • Set a unique meta name for the checkbox (e.g., accept_marketing).
    • Confirm that this value is stored in WordPress user metadata.
  2. Use Zapier to Send Data to Klaviyo (No coding required)

    • Connect WordPress to Zapier and trigger when a new user registers.
    • Add a filter to check if accept_marketing = true.
    • Send the user’s email to Klaviyo as a new subscriber.
  3. Custom Code Approach (For direct integration)

    • Use WordPress hooks to check if the checkbox is ticked.
    • If accept_marketing = true, send the email to Klaviyo via its API.
    • Example: Use wp_remote_post() to send a request to Klaviyo’s List API.

Would you prefer a Zapier setup or a custom code solution?


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 21, 2025

I create the checkbox data, and with a plugin i see that is saved as metadata in wp account of the user.

I also create the wordpress to klaviyo creation of the account, the filter is not already setted because i don't see the accept_marketing as a metadata in zapier.

Probably the accept_marketing is not already a webhook?

 


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • Answer
  • February 21, 2025

@HankSinatra. Thanks for the update. It looks like the accept_marketing metadata is successfully stored in WordPress, but Zapier isn’t recognizing it yet. This could be due to one of the following reasons:

 

1. Zapier isn’t pulling in all metadata fields. You can try refreshing the sample data in the Zapier trigger to see if accept_marketing appears.

 

2. The accept_marketing field isn’t included in the webhook (if a webhook is used). If you’re using a webhook, we need to ensure that this metadata is explicitly sent along with the user data.

 

Next Steps:

If you're using Zapier’s built-in WordPress integration, try refreshing the sample data.

 

If you're using a webhook, we may need to modify it to include accept_marketing.

 

As an alternative, I can guide you through a custom function in WordPress to send this data directly to Klaviyo.

 

Let me know how you'd like to proceed!


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 22, 2025

Hi, i've installed the plugin WP Webhook and now i can see every metadata of the wp account backend, inside zapier.

So basically i've resolved this.

Now the problem is that i wanted to create a webhook for integrate the birthday date in klaviyo…

Build everything and im able to see the webhook so basically it's ok.

BUT

Some of the fields gave me error, the ai of zapier, told me to confront api klaviyo because maybe there something mandatory.

But im not sure


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 22, 2025

@HankSinatra.,

Great to hear that you resolved the metadata visibility issue in Zapier!

 

Regarding the birthday field integration, if some fields are causing errors, it’s possible that Klaviyo requires certain mandatory fields when updating profiles via the API. Here’s how we can troubleshoot:

 

1. Check Klaviyo API Requirements

 

Klaviyo's API requires at least the following when updating a profile:

 

Email address (mandatory for identifying the profile)

 

Birthday format (should be in YYYY-MM-DD format)

 

2. Review the Webhook Payload

 

Ensure the webhook is sending the birthday field in the correct format.

 

If the error persists, let’s review the full error message Zapier provides—it usually gives clues about what’s missing.

 

3. Next Steps

Could you share the exact error message Zapier is showing? That will help pinpoint whether it's a formatting issue or if Klaviyo expects an additional field.

 

Looking forward to your response!


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 22, 2025

Ok i atach the screenshot.

The value of the birthday is yyyy-mm-dd.

 

Hear me out:

Is that maybe because in wp webhook i setted the same zapier url for 

WP user created

Wp user updated

?


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 22, 2025

 


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 22, 2025

@HankSinatra., Thanks for sharing the screenshot and details. The birthday format (YYYY-MM-DD) seems correct, so the issue might be related to how the webhook triggers are set up. If both "WP User Created" and "WP User Updated" are using the same Zapier URL, it’s possible that the same data is being sent twice, causing conflicts, or one of the triggers is missing a required field when sending data to Klaviyo.

 

To troubleshoot, first, check if both triggers are sending identical data by reviewing the webhook payloads in WP Webhooks. Ensure both include the required fields, especially the email and birthday. Next, test each trigger separately by temporarily disabling the "User Updated" webhook and running the Zapier workflow with only "User Created." If it works, re-enable "User Updated" and adjust as needed.

 

If the error persists, let me know the exact error message, and I’ll help refine the solution.


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 22, 2025

Ok, i deactivate it wp user profile updated and it's working. (It's running only, wp user created)

Obviusly, now if i put the brithaday and rest of other thing in the profile is not updating.

Can you suggest me to create another zap with the webhook Wp update profile?


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 22, 2025

@HankSinatra.

Glad to hear it’s working with only "WP User Created" active. Since profile updates aren’t triggering the webhook anymore, setting up a separate Zap for "WP User Updated" is a good idea.

To prevent conflicts, we can add a filter in Zapier to ensure the webhook only triggers when the birthday (or any relevant field) is updated. This way, Klaviyo only receives meaningful updates instead of redundant data.

If you'd like, I can guide you through setting it up or review your current Zap to make sure everything runs smoothly. Let me know how you’d like to proceed!
 


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 22, 2025

Ok now we are going to have 2 zap

Create user accont (works correctly)

 

Update user account (same issue "invalid input")

 


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 22, 2025

@HankSinatra., Thanks for the update. Since the "Create User Account" Zap is working correctly, but the "Update User Account" Zap is still showing the "invalid input" error, we need to troubleshoot further.

 

To identify the issue, could you check:

1. The exact error message Zapier provides—sometimes it specifies which field is causing the problem.

 

2. Whether the birthday field is being sent in the correct format (YYYY-MM-DD) for the update request.

 

3. If the Zap is sending all required fields (especially email) when updating the profile in Klaviyo.

 

If you'd like, I can take a look at the webhook payload Zapier is sending to Klaviyo to pinpoint the issue. Let me know how you'd like to proceed!


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 24, 2025

I should have resolved almost everything.

I explain, the invalid field was the phone number, because it’didn’t had the prefix Klaviyo format (+39 1234567890)

Now i create a filter on my form.

So everything should be alright


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 24, 2025

That’s great to hear! The phone number format issue makes sense, and adding a filter on your form was a smart fix. With everything now set up correctly, your webhooks should work smoothly.

 

If any other issues come up or if you need further optimization, feel free to reach out—I’m happy to help!


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 24, 2025

New day new problem new question.

 

How does you make the opposite?

 

I mean:

Klaviyo pop-up to registrate a customer but without password…

 

The process is to make something like 

Webhook when create a profile in klaviyo, create a profile in Wordpress?

Is it the bestpractice?

 

Also, is it possible to create an account in wordpress without password?


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 238 replies
  • February 24, 2025

@HankSinatra. 

Great question! If you want to create a WordPress user when a new profile is added in Klaviyo via a pop-up, the best approach is to use a Zapier webhook. This would trigger when a new profile is created in Klaviyo and send the data (email, name, etc.) to WordPress to create an account.

Since Klaviyo pop-ups don’t collect passwords, WordPress would require a workaround. You can generate a random password automatically and send the user a password reset link so they can set their own password. Alternatively, you can enable Magic Link authentication or modify WordPress settings to allow account creation without a password.

If you’d like, I can help set up the webhook or guide you on customizing WordPress to handle this smoothly. Let me know how you’d like to proceed!
 


Forum|alt.badge.img+2
  • Author
  • Active Contributor I
  • 12 replies
  • February 24, 2025

Yes, could you share some principal lines to make it?

I think wordpress create automathically a password random