Meta (Facebook) Ads
Retarget referred visitors and track referral events in Meta (Facebook) Ads to optimize your ad campaigns.
Last updated
Retarget referred visitors and track referral events in Meta (Facebook) Ads to optimize your ad campaigns.
Last updated
Note: The Meta Ads integration is only available to users on the GrowSurf Business plan or higher.
The Meta Ads integration lets you retarget website visitors who arrive through referral links and track their conversions. Once connected, Meta Ads will track these referred visitors and conversions when they submit their email addresses on your website.
Under the hood, GrowSurf loads the Meta Ads library (Facebook script) for event tracking. If Meta Ads is already installed, GrowSurf intelligently avoids loading it twice.
Step 1: In Campaign Editor > 4. Options > Integrations, open the Meta Ads integration card and enter your Meta Ads pixel ID.
Note: If you are 100% certain that you already have Meta Ads (as a Facebook pixel) installed on your website, you do not need to enter in the Meta Ads pixel ID. Simply press Connect and the integration will be enabled. However, we recommend that you still enter it to account for URLs that do not have Meta Ads installed.
Step 2: Once connected, GrowSurf will have all events enabled by default. Disable any events that you do not want to track.
Important Note: Make sure that your campaign Share URL (found in the Campaign Editor > 5. Installation step) is a part of your Meta Ads account. If you are using multiple domains, within Meta Ads manager, you may need to enable Automatic Advanced Matching and set up Domain Verification to avoid issues with shared traffic between domains.
Step 3: In your Meta Ads account, you will need to add the following two custom conversions (You can skip this step if you have both "Track conversion event" checkboxes toggled off). Follow the instructions in How to Add Custom Conversions In Meta Ads.
growsurf_referral_signup
- This conversion event represents when a referred visitor submits their email address on the form on your website that has referral tracking on it.
growsurf_referral_trigger
- This conversion event represents when a participant completes a qualifying action, like making a purchase (Note: this only applies when you are using growsurf.triggerReferral()
from the front-end).
Here are common scenarios and how to troubleshoot them.
Make sure you do not have any ad-blockers or browser extensions blocking requests to Meta Ads.
Make sure your campaign Share URL (and the page where the referral submits their email address, if you are tracking conversions) is a part of your Meta Ads account. You can find the campaign Share URL in the Campaign Editor > 5. Installation step. In your Meta Ads account, you may need to enable Automatic Advanced Matching and set up Domain Verification to avoid issues with shared traffic between domains.
If you are testing conversions being tracked, make sure that you've allowed up to 30 minutes for Meta Ads to process the events.
To troubleshoot if the Meta (Facebook) ads script is loading on your website, you'll want to make sure you that you visit a participant's referral link first.
If you want to prevent Meta Ads from being loaded completely, you must disconnect the integration completely. Simply toggling off all checkboxes is insufficient.
If you see Meta Ads network requests being made on your website and you have the integration completely disabled, GrowSurf may not be emitting these events. Check other parts of your code to find where these events might be happening.