There are two types of native Meta Pixel installations:
To find whether you have the Custom HTML version or Meta-provided version, follow the steps below. Note that these instructions reflect the state of Google Tag Manager at the time of this document’s publication, and may not reflect all updates to that product.
Follow these steps when the Meta Pixel tag is installed through Custom HTML.
Log in to your Signals Gateway account and select your Signals Gateway Pixel from your list of Data sources.
Open the Setup guide tab. In this tab, you’ll see instructions for installing the Signals Gateway Pixel on your website. Within those instructions, find the following values, which you’ll use to connect to Google Tag Manager.
See the example code below and the explanation of the relevant values in the table that follows. You will find the following Javascript code snippet under “Option 2” -> “Alternate Method”
Paste the pixel code into the bottom of the header section just above the </head> tag. Install the code on every page of your website.
<!-- Signals Gateway Pixel Code -->
<script>
!function(a,h,e,v,n,t,s)
{if(a.cbq)return;n=a.cbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!a._cbq)a._cbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=h.createElement(e);t.async=!0;
t.src=v;s=h.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,
document,'script',
'https://sgw.test.com/sdk/123456789/events.js');
cbq('setHost', 'https://sgw.test.com/');
cbq('init', 123456789);
cbq('track', 'PageView');
</script>
<!-- End Signals Gateway Pixel Code →| Variable name | Value (in this example) |
|---|---|
Signals Gateway Pixel ID | 123456789 |
Signals Gateway Pixel Host | https://sgw.test.com |
Signals Gateway Pixel Script URL | https://sgw.test.com/sdk/123456789/events.js |
Another example from a different tag:
Use preview mode in Google Tag Manager to verify that the Pixel loads correctly on your site.
Once confirmed, publish your container to start sending data using the Signals Gateway Pixel.
Follow these steps when the Meta Pixel tag is installed through a Meta-provided Google Tag Manager template.
Log in to your Signals Gateway account and select your Signals Gateway Pixel from your list of Data sources.
Select your Signals Gateway Pixel and open the Setup guide tab. In this tab, you’ll see instructions for installing the Signals Gateway Pixel on your website. Within those instructions, find the following values, which you’ll use to connect to Google Tag Manager.
See the example code below and the explanation of the relevant values in the table that follows.
Paste the pixel code into the bottom of the header section just above the </head> tag. Install the code on every page of your website.
<!-- Signals Gateway Pixel Code -->
<script>
!function(a,h,e,v,n,t,s)
{if(a.cbq)return;n=a.cbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!a._cbq)a._cbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=h.createElement(e);t.async=!0;
t.src=v;s=h.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,
document,'script',
'https://sgw.test.com/sdk/123456789/events.js');
cbq('setHost', 'https://sgw.test.com/');
cbq('init', 123456789);
cbq('track', 'PageView');
</script>
<!-- End Signals Gateway Pixel Code →| Variable name | Value (in this example) |
|---|---|
Signals Gateway Pixel ID | 123456789 |
Signals Gateway Pixel Host | https://sgw.test.com |
Signals Gateway Pixel Script URL | https://sgw.test.com/sdk/123456789/events.js |
Example
https://sgw.test.com/sdk/123456789/events.js
If you don’t have an “Event ID” variable in your workspace, you can create one following the steps below.
For each of these tags, create new tags (one tag for each) for SignalsGateway Pixel Template and use the same “Event Name” and “Firing Triggers”.
In Google Tag Manager, click Tags in the main menu, then select New. In Tag Configuration, select the new SignalsGateway Pixel template you just imported.
Configure the required settings:
Click More Settings → Event ID section and choose the “Event ID” you created above.
To help ensure the accuracy of your event deduplication settings, open your already existing Meta Pixel tags, and add {{Event ID}} as well. For each of the tags we saw in step 6-a, Add event ID.
{{Event ID}} as variable valueUse Preview Mode in Google Tag Manager to verify that the Pixel loads correctly on your site.
Once confirmed, publish your container to start sending data using the Signals Gateway Pixel.