I know there’s a way to do this via a lead form, but what if you just clicked on an ad? Is there some combination of Facebook Pixel, Klaviyo.js/cookie that would allow this to work? Happy to do any amount of custom integration needed.
Thanks!
Michael
Best answer by k.mcevoy
Hi Michael,
Thanks for reaching out! Klaviyo will automatically capture any UTM parameters that initially brought a customer to your site via the “Initial Source” profile property. This article details how you can use that property to create segments for campaign sends or to trigger flows.
That being said, this will only capture the initial action that led your customer to your website. If you wanted to track a click on a Facebook Ad at any point in their journey you can leverage the Track API to create a custom event. More information on that here.
Please let me know if you have any further questions and I would be happy to help!
Thanks for reaching out! Klaviyo will automatically capture any UTM parameters that initially brought a customer to your site via the “Initial Source” profile property. This article details how you can use that property to create segments for campaign sends or to trigger flows.
That being said, this will only capture the initial action that led your customer to your website. If you wanted to track a click on a Facebook Ad at any point in their journey you can leverage the Track API to create a custom event. More information on that here.
Please let me know if you have any further questions and I would be happy to help!
Apologies if I wasn’t clear on my initial response, let me clarify. If the Ad is on Facebook it’s not possible to send an event to Klaviyo. This would require us to write code in Facebook to send an event when that click happens, and unfortunately we don’t have access to do that.
However, if the Ad was on your website and you wanted to track customers who clicked on that Ad and were redirected to another page on your site to make a purchase, it might be possible.
If the Ad is in an iframe it won’t be possible because we can’t add event listeners in the DOM based on something that is inside of an iframe, and thus can’t trigger that API call. But if the Ad is just an image they can click then it would be possible! If you would like to link me to a page on your site where the ad is located I can take a closer look.
Let me know if this helps or if you have any further questions!
Agree with all the above about using UTM parameters as the most practical way track inbound traffic from Facebook Ads. That would work if it’s their First Visit or their most Recent Visit (anything in between may be harder to determine).
If you need more granular tracking across a time series (clicked on Ad 1, clicked on Ad 2, etc), I recommend you write a simple custom event that basically does the same thing as the native UTM tracking of Klaviyo, but passed into Klaviyo as an Event (as opposed to custom properties in the profile).
// WARNING: PSEUDO CODE, NOT REAL CODE
<script>var _learnq = _learnq || [];
_learnq.push(['track', 'Visited with UTM', {
'UTM_Campaign' : //get.utm_campaign'UTM_Medium' : //get.utm_campaign'UTM_Source' : //get.utm_source'URL' : //this.url
}]);
</script>
With a Metric (aka Events), like all other metrics, you can do aggregated segments across a time series “Visited from UTM 2 or more times in the last 30 days” or “Visited from UTM where UTM_Campaign = X” so this might be more useful to build more complex segments.
When a Facebook Lead Ad generates a “Lead” - it passes that into Klaviyo via a Metric called “Filled Out Lead Ad” with a bunch of event properties.
Here’s a sample (sensitive values blurred out)
Facebook Lead Ad Event Properties
:
So as you can see, you get a bunch of properties that you can either build segments from, or use in a branching logic in a Flow. Just note, this only happens with a “Facebook Lead Ad” type of ads on Facebook/IG.
By clicking “Accept All Cookies,” you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
Privacy Preference Center
Your Privacy
Strictly Necessary Cookies
Performance Cookies
Functional Cookies
Targeting Cookies
Site Analytics
Your Privacy
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Privacy Notice
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Targeting Cookies
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Site Analytics
These cookies record your visit to our website, and are used to track your visit including information such as: web page interactions (clicks, hovers, focus, mouse movements, browsing, zooms and other interactions), referring web page/source through which you accessed the Sites, heatmaps and scrolls, screen resolution, ISP, and statistics associated with the interaction between device or browser and the Sites. If you are accessing our Services with a European IP address, you have been asked to consent to the use of these cookies (you are free to deny your consent).