Founding Family sign-up tracking
How to count every sign-up on the Viral Loops form at hydeandhare.com/pages/little as a conversion in Meta, GA4 and Google Ads. Four steps, about 30 minutes. Every code box has a Copy button.
new sign-up
sends it to GTM
GTM-MWB76JF
one conversion each
Send new sign-ups to GTM
- In Viral Loops, open the Little Hyde & Hare campaign, then Integrations.
- Find Custom JavaScript and switch it on.
- Delete the placeholder line and paste the code below. Save and publish the campaign.
- Leave the Facebook Pixel and Google Analytics switches off.
var cp = window.Shopify && window.Shopify.customerPrivacy;
var marketingConsent = !!(cp && typeof cp.marketingAllowed === 'function' && cp.marketingAllowed());
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'lhh_founding_family_signup',
lead_email: participantData.Email,
marketing_consent: marketingConsent
});
This only runs for genuinely new sign-ups (not repeat visitors or failed submits), and only once per browser. It also records whether the visitor accepted marketing cookies, so GTM can respect that.
Build the variable, trigger and three tags
Container GTM-MWB76JF. Do these in order.
2a. Variables
| Type | Data Layer Variable |
| Variable name | |
| Save it as |
| Type | Data Layer Variable |
| Variable name | |
| Save it as |
The variable names must match exactly, or the Meta code below breaks.
2b. Trigger
| Type | Custom Event |
| Event name | |
| Fires on | Some Custom Events: DLV - marketing_consent equals true |
| Save it as |
2c. Tag: Meta Lead
| Type | Custom HTML |
| Trigger | CE - LHH Founding Family Signup |
| Save it as |
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('set', 'autoConfig', false, '685478615173197');
fbq('init', '685478615173197', { em: {{DLV - lead_email}} });
fbq('track', 'Lead', { content_name: 'LHH Founding Family' });
</script>
Paste it exactly as is. {{DLV - lead_email}} has no quotes on purpose, because GTM fills it in. There's no PageView call, so page views aren't double counted alongside Shopify's pixel. Meta hashes the email in the browser before sending it.
2d. Tag: GA4 generate_lead
| Type | Google Analytics: GA4 Event |
| Measurement ID | H&H's GA4 ID (GA4 Admin › Data streams). It isn't in GTM today. |
| Event name | |
| Event parameter | = |
| Trigger | CE - LHH Founding Family Signup |
| Save it as |
Afterwards, mark generate_lead as a key event in GA4.
2e. Tag: Google Ads conversion
- In Google Ads: Goals › Conversions › New conversion action › Website › Add manually. Category Sign-up, name , value "Don't use a value", count One. Choose "Use Google Tag Manager" and copy the Conversion label.
- In GTM, add the tag below.
| Type | Google Ads Conversion Tracking |
| Conversion ID | |
| Conversion label | The label from step 1 above |
| Trigger | CE - LHH Founding Family Signup |
| Save it as |
The Conversion ID is the one H&H's existing Google Ads tags in this container already use. The container also already has a Conversion Linker.
2f. Publish
Don't publish yet. Test first (Step 4), then Submit › Publish.
Point the LHH ads at this form only
- Events Manager › Custom conversions › Create.
- Data source: pixel 685478615173197. Event: Lead.
- Rule: Event parameter contains .
- Name it , category Sign up.
- Switch ad set LHH | Cold | Broad UK | Leads | Sign Ups to optimise for this custom conversion instead of plain Lead.
Casey can do this step once Step 2 is live. The ad set has never spent, so Meta may allow the swap. If it doesn't, the ad set and its 9 paused ads get rebuilt on the new conversion.
Check exactly one Lead arrives
- In GTM, click Preview and open https://www.hydeandhare.com/pages/little.
- In Meta Events Manager, open pixel 685478615173197 › Test events.
- Accept cookies on the banner, then sign up with a new test email you haven't used on this form before.
- In GTM Preview, confirm lhh_founding_family_signup appears with marketing_consent: true and all three tags fired once.
- In Meta Test events, confirm one Lead with content_name: LHH Founding Family.
- Repeat in a private window, declining cookies. The event should show marketing_consent: false and no tags should fire.
localStorage.removeItem('vl_integrations_completed');