Launch your Advocates' Dashboards from Klaviyo using Variables

Every time a new advocate enrols in your referral campaign Gather assigns them a unique identifier string. This string is stored in a liquid variable called: GC_OPTIN_HASH. You will find this listed under the custom properties of an advocate in Klaviyo.

Using this liquid variable Gather can identify the advocate and load their referral dashboard without the need to include an advocate’s name or email in a URL string.

A great way to keep advocates engaged in your referral program is to send out fortnightly/monthly reminders about your referral program in which you insert a button that will launch their personal Gather referral dashboard on your site.

In this article we show you how you can insert a button in your Klaviyo messaging that will launch an advocate’s Gather referral dashboard, without having to disclose the advocate’s name and email address.

Create your Klaviyo Email Campaign

Set up your email template 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:'' }}

myurl

In place of myurl in the URL above insert the website page on which you would like the advocate’s dashboard 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 advocate (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 REFERRAL CAMPAIGN THIS CUSTOM PROPERTY WILL ONLY APPLY TO NEW ADVOCATES FROM 13 OCTOBER 2023. IF YOU WOULD LIKE TO RETROSPECTIVELY APPLY THIS VARIABLE TO EXISTING ADVOCATES IN YOUR LIST PLEASE REACH OUT ON HELLO@GATHERCUSTOMERS.COM.

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 dashboard. 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 an advocate on your site first.

You are now ready to use the liquid variable and boost your referrals!