How to Log-in Leads, to your Opt-in Campaign Sidebar Interface, from Klaviyo, without using Names and Email addresses

Every time a new lead joins a Gather Opt-in campaign Gather assigns the lead with a unique, hashed, ID. This hashed ID is stored in a liquid variable called GC_OPTIN_HASH. This custom property is synced along with other custom properties to your Klaviyo account*. You will find this listed under the custom properties of a lead’s Klaviyo profile. (*Where you have an integration set up).

Using this liquid variable Gather can identify the lead and log them into a opt-in campaign without the need to include the lead’s name or email in a URL; protecting lead’s personal data.

In this article we show you how you can use this ID hash, in an email, to log the lead into an Gather opt-in campaign.

Set up your email in Klaviyo

Include a button in your email and in the editor insert the following URL:

https://myurl?gc_login_hash={{ person.gc_optin_hash|default:'' }}

&gc_optin_mode=auto

or

&gc_optin_mode=prefilled

myurl

In place of myurl in the URL above insert the website page on which you would like the sidebar to load.

?gc_login_hash=

This is the code required to query the liquid variable, this should follow the url of your website.

{{ person.gc_optin_hash|default:”}}

This will return the hashed string of the lead (if it exists). In the absence of this custom property it will return nothing and only the page URL will load.

*NOTE: IF YOU HAVE AN EXISTING GATHER OPTIN CAMPAIGN THIS CUSTOM PROPERTY WILL ONLY APPLY TO NEW LEADS FROM 24 OCTOBER 2023. IF YOU WOULD LIKE TO RETROSPECTIVELY APPLY THIS VARIABLE TO EXISTING LEADS IN YOUR LIST PLEASE REACH OUT ON HELLO@GATHERCUSTOMERS.COM.

&GC_OPTIN_MODE=

Depending on how you want the sidebar to load you can either append the URL with:

&GC_OPTIN_MODE=AUTO

or

&GC_OPTIN_MODE=PREFILLED

Auto mode will automatically fill in the name and email address of the lead in the log-in form and the opt-in success screen will load.

Prefilled mode will take the name and email address of the lead and pre-fill the login form so that the lead can manually submit the login.

KEY NOTE: ENSURE THAT YOUR CAMPAIGN EXISTING OPT-IN BEHAVIOUR IS SET AS FOLLOWS:

Ensure you have set your existing Opt-in Behavious to ‘return existing reward code/success message).

Preview your email

Once you have the content of your email set, preview the email using a contact from your list. Make sure the contact you select has the gc_optin_hash set in their profile. You can check this by scrolling down their profile in the preview screen.

Send a test email

Once you are happy with your email preview, send out a test email to ensure that the link works correctly and the button loads the opt-in sidebar and logs the lead in as desired.

Please note that if your campaign has set rules e.g. loads on a specific page or requires a certain number of items in the cart then the sidebar will continue to follow the rules of the campaign. Therefore, if your campaign requires an item in the cart and there is no item in the cart then the sidebar will not load.

If you are sending this test email to yourself, ensure that your email address has the gc_ optin_hash property set. If not, sign up as a lead on your site first.

Click on the button with GC_OPTIN_MODE=AUTO the leads details are entered automatically in the form and the success screen loads with their reward code.

Click on the button with GC_OPTIN_MODE=PREFILLED the leads details are entered automatically in the form ready for them to review and submit.

You are now ready to use your liquid variables and sent customised links to your leads!

If you have any questions reach out on hello@gathercustomers.com