FunnelKit
FunnelKit Documentation
Get unstuck with our helpful reference material

FunnelKit Automations

Testing Link Triggers with Automations

In this guide, we will test link triggers that automatically log existing WordPress users into your WordPress site.

We will create an automation that:

  • Sends a link via email to existing users, allowing them to log in automatically
  • For non-existing users, first create the user, then share the link trigger via email

This is because auto-login will only work when a WordPress user is associated with the contact.

Follow these steps to set it up:

Step 1: Set up your automation 

First, set up your automation with an event. Here, we created an automation for the form submit event. 

For more details, see our documentation on creating automation

Automation setup with form submit event selected

Step 2: Check if the user has an account or not 

Now, set a condition to check if the user exists or not. 

Condition setup to check if the user exists

Step 3: Add an action to send an email to existing users 

Next, add an action “Send Email” if the condition is true. 

Adding Send Email action for existing users

Then configure it to share the link trigger for auto login.

Configuring email with link trigger for auto login

Step 4: Add a link trigger to your email body 

Next, create your link trigger and make sure the auto login option is on. 

Creating link trigger with auto login enabled

Note: The link-triggered auto-login functionality does not work if the user role is either Administrator or Editor.

Next, copy the link trigger. 

Copying the generated link trigger URL

Insert the URL into your clickable anchor text wherever you want users click to log in automatically.

Inserting link trigger into email anchor text

Step 5: Add action to create an account for a non-user

Now, for the contacts who don’t have a WordPress account, we will add an action “Create User” and configure it. To create the user, you can use form field data. Also,  assign them the role of “Subscriber”.

Configuring Create User action with Subscriber role

Step 6: Add an action to send an email to new users with link triggers 

Next, after the “Create User” action, add another “Send Email” action for the newly created users. Include the link trigger in this email so they can log in automatically. 

Note: You can copy and paste the earlier Send Email action to save time.

Adding Send Email action for newly created users

Once the automation is set properly, activate it. 

Activating the automation workflow

Testing the Link Triggers

To test the link triggers, sign up for the optin form. 

Submitting the opt-in form for testing

After signing up, they will receive an email with a link trigger.

Email received with link trigger

Whenever a user clicks on a particular link, they will be redirected to the URL you have specified. In this case, the my account page. 

User redirected to My Account page after clicking link trigger

Well done! You have successfully created and tested the Link Triggers in FunnelKit Automations.

Ready to Transform Your Store?
Join 39,415+ successful store owners who trust FunnelKit to power their businesses.
Conversion Optimized Checkout Pages
Increase Revenue with Smart Upsells
Capture Emails & Recover Abandoned Carts
Automate Winbacks & Repeat Sales
973+ 5 star reviews on WordPress.org
Transform your store to power your business with FunnelKit
🚀 Maximize Your Profit with FunnelKit – Highest Rated with 973+ 5-Star Reviews
Get Started