Appreciation Engine

Open navigation

How to Avoid Duplicating Emails from Existing Email Lists

So you have an existing email list and you want to avoid “duplicating” emails. This is often a concern when the user who is registering enters a different email address inside the social network. Luckily, overwriting the emails collected from a social application is fairly easy to do. This document outlines how to get it done.

Email to Web Page

This diagram outlines the flow of email to web page. In this simple example, the page links the email in the URL to a Spotify account.


Mailchimp has two pages that outline how to use merge tags and create unique urls:

Sample HTML

This HTML shows how you can implement the overwrite on page with AEJS.

<!DOCTYPE html>



<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" charset="utf-8" src=""></script>

<link href="" rel="stylesheet">

<script src=""></script>

<script src=""></script>

<script type="text/javascript">

var globalAEJS;

function loginHandler(user,type,sso) {

   alert("SIGNED UP. THANKS.");

   $("#loggedin").show(); //allow logout



function userHandler(user,state) {

   $("#loggedin").show(); //allow logout


function logoutHandler(user) {

   alert("LOGGED OUT. THANKS.");



function AEJSReady(aeJS) {

globalAEJS = aeJS;

console.log("AEJS READY");;;;





AEJS form to capture custom user data (email) and register a service (spotify)

Uses hidden field with email set from url query string eg ?email=....


<body style="padding: 20px;">

<h1 class="page-header">AE JS DEMO - Link Email</h1>

<form id="email-signup" data-ae-register-form="spotify" method="post">

<input type="hidden" id="email" name="email" value="<?php echo $_GET['email'] ?>">

<button type="submit" class="btn btn-primary">SPOTIFY BUTTON</button>



<div id="loggedin" style="display: none;">

<a href="#" data-ae-logout-link="true" class="btn btn-danger">LOGOUT</a>




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.