- Joined
- May 7, 2018
- Messages
- 4,577
If you’re looking to add more to your campaigns chances are you’re going to be collecting emails or other data on your landing pages. There are multiple ways to do this and they all work, but I thought it might be a good idea to make this thread to show I how I would go about collecting emails on my landing page(s), which I think is the easiest method.
In this post I’m going to show you how to submit an HTML form with Javascript, redirect to your thank you page, and on your thank you page count a custom conversion for the email signup. From the thank you page, the user will be able to click the CTA button and be redirected to an offer.
Let’s get started.
In this post I’m going to show you how to submit an HTML form with Javascript, redirect to your thank you page, and on your thank you page count a custom conversion for the email signup. From the thank you page, the user will be able to click the CTA button and be redirected to an offer.
Let’s get started.
The Landing Page (w/ Email Opt-in)
First things first, you’re going to need to make a landing page with an HTML form on it. I’m going to use the following:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Form Submit with Javascript Example</title>
</head>
<body>
<div class="container">