# Timing issues for "Opt-in campaign" optimization

**URL:** <https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067>\
**Category:** General Discussion\
**Tags:** discussion\
**Created:** [February 25, 2020, 12:09pm UTC](https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067 "2020-02-25T12:09:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [February 25, 2020, 12:09pm UTC](https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067/1 "2020-02-25T12:09:33Z")

</div>

My goal is to have a speedy optin mail for subscribers. This is my approach:

1. Send “opt-in mail” with link to landingpage as form action of a standalone form.
2. Put contact into segment as form action.
3. Start campaign based on segment membership.
4. Check if contact visits landingpage.
5. Place him into “opted in” segment.

This however seems to be problematic: If the user received the mail (step 1) and clicked the optin link BEFORE he was placed into the campaign (step 3), the campaign will wait forever and not look if the contact already visited the confirmation page (step 4).

Looks like my approach is wrong? What can I do in order to have an immediate “opt in” mail, right after the form was submitted but securely recording the optin?

(I know I could send the optin mail as first action in the campaign, but this will delay this mail until the next cronjob runs.)

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [February 25, 2020, 2:22pm UTC](https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067/2 "2020-02-25T14:22:24Z")

</div>

Hi Dirk

I think your problem was just answered in the latest Mauticast episode. Here is the link to the German explanation:

> **[Das perfekte Double Opt-In](https://www.leuchtfeuer.com/mautic-know-how/mautic/perfektes-double-optin/)**
>
> Double Opt-In (DOI) ist nervig, aber wird meist als erforderlich eingestuft und soll zumindest möglichst reibungslos funktionieren. Es bedarf des folgenden kleinen Tricks, um dies wirklich zu gewährleisten!

Hope this helps  
Adrian

---

<div class="post-metadata">

**Author:** ![dewale.michael](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dewale.michael/32/1591_2.png) [@dewale.michael](https://forum.mautic.org/u/dewale.michael)\
**Post date:** [February 25, 2020, 2:34pm UTC](https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067/3 "2020-02-25T14:34:35Z")

</div>

This is how I have solved this with my mautic system! This is a paid plugin add-on, but solves the email confirmation and timing issue!

In the word of the plugin author “don’t rely on the user to confirm”

So I use this solution here…

1. an option to double optin is something like [clearout.io](http://clearout.io/) which validates email addresses through an API, we wrote a plugin for that. (and the companion phone validator as well). You can validate, anything that comes back good you would not need to double opt-in, but the unknowns, or catchalls you could send a second email via a campaign, since those are unlikely to respond anyway, timing would not be as critical. [https://gautit.com/product/clearout-mautic-plugin/](https://gautit.com/product/clearout-mautic-plugin/)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [February 25, 2020, 4:23pm UTC](https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067/4 "2020-02-25T16:23:20Z")

</div>

Adrian - very nice approach 😉

---

<div class="post-metadata">

**Author:** ![stephlegrand](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stephlegrand/32/1049_2.png) [@stephlegrand](https://forum.mautic.org/u/stephlegrand)\
**Post date:** [May 23, 2020, 2:45pm UTC](https://forum.mautic.org/t/timing-issues-for-opt-in-campaign-optimization/13067/5 "2020-05-23T14:45:03Z")

</div>

Hello,

I know this is a bit old, but I was trying to solve the same issue and I was comparing several approaches. The solution quoted by @adiux is really neat. However, I have two questions :

1. apparently changing tags using the tracking pixel is a “secondary, not preferred” method. so how future-proof is this solution?
2. if the landing page is actually generated by Mautic, is there an easier way to do this ? I found no specific process to create / change a tag for a contact when they visit an internal (i.e. Mautic) page.

Thanks a lot,  
Stephane.
