I have been trying to get this to work for the past 4 weeks iv had multiple people from Facebook ad agencys to Shopify developers look at it and cant seem to figure out whats wrong or why it wont track.
I have added a custom conversion event for email sign-ups and still nothing.
Our entire business model is to push Ads all month for email signups to the closed shopify store Klaviyo landing page to gather data and then release our products for one weekend only.
I have spent thousands on ads so far and have ran multiple brands in the past with no issues.
We have tested sales conversions etc and everything else is being tracked correctly so I know the pixel doesnt have issues.
This is my current code:
<script>
window.addEventListener("klaviyoForms", function(e) {
if (e.detail.type == 'submit') {
*PIXEL NUMBER HERE*
}
});
</script>
I have also tried this code which didnt seem to work:
<script>
window.addEventListener("klaviyoForms", function(e) {
if (e.detail.type == 'submit') {
fbq('track', 'CompleteRegistration');
}
});
</script>
I am hoping someone can finally answer this so we can move forward.
Thank you