Skip to main content
All CollectionsGuides / Tutorials / FAQAdvanced Tutorials
Setting Up Single Click Registration from an Email link
Setting Up Single Click Registration from an Email link

Want to offer 1-click registration from an email? If you embed the link with their address we can handle the rest!

AEvent avatar
Written by AEvent
Updated over 2 weeks ago

In this tutorial, you'll learn how to set up and use a simplified JavaScript snippet to embed 1-click registration links within your emails. This is an 'Experienced' level tutorial, as in-depth knowledge of the email service provider that you use, is needed.

Why would you want to do this? If you're emailing your own list/leads, why make them take the second step to register? With a single click, your lead is instantly registered and redirected to your timeline's Confirmation Page.

By the end of this tutorial, you will successfully be able to load your emails with one-click registration links!

Step 1: Access your Timeline

Open your timeline that your wanting to offer 1-click registration with.

Copy the WTL (Webinar Timeline) value from the browser's address bar of the timeline you are working with, and copy and save that code as well.

Step 2: Add your WTL and Tenant ID to the code snippet

Upon first visiting this tutorial, our Messenger bot sent you your tenant ID. In our example, we will be using '342353235' as our tenant ID.
โ€‹
Using both your tenant ID and your WTL retrieved from the previous step, copy the code below into a notepad and edit it.

<form>
<input id="agreement" type="checkbox" name="agreeCheckbox" value="agreeCheckbox">
</form>
<a href="https://XXXXX.aevent.online/1c?wtl=XXXXXXXXXXXXXXXX&email=[EMAIL-MERGE-FIELD]" id="link">Register By Clicking Here</a>
<script>
var chk = document.getElementById("agreement");
var anchor = document.getElementById("link");
anchor.style.display = "none";
anchor.onclick = function(e){
e.preventDefault();
}
chk.onclick = function(){
if(chk.checked){
anchor.style.display = "inline";
anchor.onclick = "";
}
}
</script>

In the code snippet, please replace the XXXX value with your tenant ID that our messenger bot sent (this is normally a numerical value).

Next we need to replace the current wtl values with our own. Please remove from the code XXXXXXXXXXXXXXXX and paste in yours. In our example that will be 'Rl9wf45Pi1xAX4H'.

When you embed this snippet into your HTML email, you must replace [EMAIL-MERGE-FIELD] with the email merge field specific to your email provider. (Usually, it's called a merge field or a personalization field and is accessible in the email builder tool via a dropdown menu.
โ€‹

The code above, with the edits will create a single click link within your HTML email.

The link will read 'Register by Clicking here'. You can customize that text by editing the code as shown below.

Without specifying a specific webinar, your 1 click button will automatically register your lead for the next upcoming webinar/meeting taking place, pertaining to your timeline.

As a final option, you can specify a particular webinar, say if you are running several events and want to give them time options (this isn't required). To do so, you'll need to add & webinarid=XXXXXXX to the end of the URL link we've been modifying.

If you need to determine WHAT webinar ID you want to use, you'll need to schedule the events. Then, in the AEvent app, browse to the 'home' section, select upcoming under scheduled events, and click on the little pie graph.

Within your Event Details, near the top we see the Webinar ID. Grab that numerical string, and replace it with XXXXXXXXXXXXXXX after webinarid=

Final Step: Confirm your link works!

Grab your live link, load it into your email service provider/builder, and send yourself a test!

Each email builder is unique in obtaining the Email Merge Field and testing itself. However, with anything semi-advanced, we always recommend running a full test prior to using it within your business!

Upon successful testing, you will automatically be registered for your event. The browser you opened when you clicked the link in your email will automatically redirect to your confirmation page, which has full personalization values available!

If you encounter any issues with this setup or anything else, please always feel free to contact our support team!

Did this answer your question?