Skip to main content
Question

How do you track email signups with meta ads on Shopify password page?


Forum|alt.badge.img
  • Contributor I
  • 1 reply

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

Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Byrne C
Community Manager
Forum|alt.badge.img+16
  • Community Manager
  • 140 replies
  • March 21, 2025

Hi ​@Voeux,

Sorry to hear your setup’s not working. Definitely want to make sure that things are up and running as soon as possible. I’d like to know a bit more about the process by which you collect subscribers, just so we can see where the issue lies.

Let me know if I’m correct, or if you use a different method: From my understanding, you have Meta Ads, and people who fill out these ads are led to a page in Shopify, correct? From there, they fill out a form (are you using a Klaviyo form, or 3rd party form?) and are then added to the Klaviyo account. You set up a custom metric to send to Klaviyo every time somebody does this. Is that right?

Which part of this process appears to not be working? Are people not being added as profiles on Klaviyo? Is the form not showing up? Is your custom metric not firing, or is something else the issue? Once we have more info here, we can work to figure out what’s going on and how to fix it!

-Byrne


  • Contributor I
  • 2 replies
  • March 24, 2025

It can be tricky but you can follow this. First, ensure your Klaviyo form is properly embedded on the Shopify password page. You can do this by accessing the Klaviyo form builder, copying the embed code, and pasting it into the password page template via Online Store > Themes > Customize in Shopify. Also, enable Klaviyo’s onsite tracking to ensure form functionality.

To track sign-ups with the Meta Pixel, implement event tracking by using Klaviyo’s event listeners. The key step is adding the fbq('track', 'CompleteRegistration') function within the form submission event handler. This ensures each form submission is logged as a 'CompleteRegistration' event in Meta Ads Manager, helping with accurate tracking and ad optimization.

To verify that the tracking is working correctly, use Meta’s Pixel Helper tool. Install the browser extension, perform a test sign-up, and check if the event fires successfully. If the event isn’t detected, troubleshoot by reviewing your pixel setup.

Alternatively, you can use Meta Lead Ads to simplify the process. Instead of embedding forms on Shopify, create lead ads directly in Meta Ads Manager to collect emails. Then, integrate Meta Ads with Klaviyo to automatically sync new sign-ups into your email list. This method eliminates the need for tracking form submissions on Shopify.