Integrating with WordPress: Registering a new user from form submission on Unbounce


#1

Hi,

I was hoping you might have a clever idea of how to do the following:

I want to use Unbounce landing pages to offer a free trial to a WordPress membership site. The ideal funnel would be:

  1. Land on landing page
  2. Click button to open lightbox
  3. Submit email address
  4. email address gets passed to wordpress
  5. wordpress registers a new user using email address as username and automatically generates a password
  6. wordpress sends email to user

So steps 1, 2 and 3 are pretty simple (thanks to Unbouce and this thread https://getsatisfaction.com/unbounce/…).

Step 6 WordPress will do.

Any idea how to do steps 4 and 5? I know I can use query strings to pass the user email address…

This article lays out some php code to register the user:
https://tommcfarlin.com/create-a-user…

But bringing it all together… ?

I realize this may not be strictly an Unbouce question. But it is kind of an Unbounce / WordPress integration question… :slight_smile:

Thanks for the help!!

Mike


#2

Hi Mike - you’ll need to do a bit of coding for #5. That code that Tom provided in his blog post doesn’t specify how the email address needs to be inputted, which leaves that open ended.

With that in mind, when you create the handler for step #5, you’ll just want to accommodate one of the ways that Unbounce can send data–I’d suggest pushing it over via webhook and having your step #5 code grab the email from there.


#3

Hi Mike did you find a way to create a user through unbounce?
Thanks


#4

I would also like to know this.


#5

Hi Arie & Andreas, 

I was researching this exact functionality a few months back for a client but the project fell through so I never got a chance to test it out.

Here are a couple of links that can point you in the right direction on how to do it with a webhook:

1. https://wordpress.org/support/topic/using-this-plugin-to-enable-a-custom-zapier-action

2. http://techattitude.com/tips-tricks-and-hacks/how-to-remotely-create-a-user-on-your-wordpress-websit…

Let us know how it works out.

Best,
Hristian