Exclude Existing Subscribers: Klaviyo

Some Justuno customers do not want to show a lead capture to their current subscribers prior to Justuno being installed. With Klaviyo there is a cookie value which is placed on the browser which through a Javascript value we are able to track if a returning customer has previously entered their email. Please note, if a customer clears their cookies and cache this rule will no longer work.

If you use another email marketing company, most likely they place a similar style of tracking. We recommend that you reach out to their support to find out if this is the case! 

 

NOTE: In order for this rule to function properly you MUST be running the Klaviyo tracking script simultaneously. To install the Klaviyo tracking script please reference the following article: 

https://www.klaviyo.com/docs/javascript-api

 

 Code to Add to Your Website

// Replace "YOUR_API_KEY" with your real API key.
<script
async type="text/javascript"
src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=YOUR_API_KEY"
></script>

<script>
var _learnq = _learnq || [];

_learnq.push(['identify', {
// Change the line below to dynamically print the user's email.
'$email' : '{{ email }}'
}]);
</script>

 

Step 1: Create a Justuno Promotion, if haven't done so already you can follow this article for a basic email capture

Step 2: Head to the rules section, if you have a basic rule switch to advanced
kalviypryu.pngeditrulerules.pngadvancedmode.png

Step 3: Add in a Javascript Value rule and place in 

_learnq.identify().$email != null && _learnq.identify().$email != ''

 and change the rule to say "is equal to" "false" or "is not equal to" "true"

klaviyo_rule.png

Step 4: Hit save and you are all set!

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.