Article Navigation
Supported tools:
Facebook (Meta) Pixel
Google Tag Manager (GTM)
Google Analytics (GA)
Add custom tracking to your campaign
To insert tracking scripts (like Facebook Pixel or GTM):
Go to the Campaigns menu
Find your campaign and click Edit campaign
In Step 1: Setup, scroll to the bottom and expand Custom HTML
Paste your script into the HTML Head field
Click Next through Steps 2–6 to save your changes
You can add more than one script — just paste each one on a new line. Note: Floodlight tags are not supported.
Example: Facebook (Meta) Pixel
You’ll need the full base pixel code. Replace `INSERTPIXELID` with your real ID.
<!-- Facebook Pixel Code -->
<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('init', 'INSERTPIXELID');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=INSERTPIXELID&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Configure Google Tag Manager (GTM)
If you're using GTM, create a new container just for Audience Republic campaigns to avoid conflicts with other scripts (like pop-ups on your main site).
Step 1: Create a custom event trigger
In GTM, go to Triggers > New
Choose Custom Event
Set Event Name to
pageview
(exact match, case-sensitive)Fire on: All Custom Events
Under Advanced Settings: choose Once Per Event
Save
Step 2: Set up a tag
Go to Tags > New
Choose your tag type (e.g., Facebook Pixel, GA)
In Triggering, select the trigger created above
Save and Submit your GTM container
Install Google Analytics via GTM
To track traffic and conversions from channels like email, paid ads, or social:
Step 1: Set up GA in GTM
Create a new tag:
Type: Google Analytics: Universal Analytics
Track Type: Page View
Set up a new variable with your GA Tracking ID
Set the trigger:
Trigger type: Custom Event
Event name:
pageview
Save and publish the container
Tip: Use a separate GA property for campaigns to keep data clean
Set up a Goal in Google Analytics (optional)
In GA, go to Admin > Goals > New Goal
Name: Signup
Type: Destination
Use Regular Expression:
unlock
Save
This will track signups as a conversion across all your campaign traffic sources.
Need help?
If you need help setting up your tracking, contact us at support@audiencerepublic.com