How can I install Outbrain’s Pixel on Google Tag Manager?

After copying your Outbrain pixel code from the Outbrain dashboard, paste it directly in the head of every page on your site. You can also implement it without altering the HTML of your pages using Google Tag Manager.

Outbrain is also available on the Google Tag Manager Community Template Gallery. This way you can have an easier time implementing the Pixel and other tag templates.

Already have the pixel installed? Check out how to set up a conversion for Time on Page and a Button Click.

Implementing the Pixel

To install the pixel via Google Tag Manager, begin by clicking on “New Tag” in your Tag Manager account and select “Tag Configuration”.

New Tag

Head to the Custom Tag Type and Click “Custom HTML.”

Custom HTML

Paste the copied code into the box provided.

Untitled Tag

Click on “Triggering” and set up your desired triggers. We recommend setting up the first trigger as “All Pages” so that the pixel can fire on every page. Note that a conversion will not be counted for every page view, as you will need to define specific conversions in your Outbrain dashboard.

Choose a trigger

Rename the Tag and Click “Save.”

Implementing Event Based Conversions

You can also add event-based conversions by pasting the snippet of code into another “Custom HTML” tag. Be sure to house the code within

<script> ,</script> tags.

For example, if you want to fire a conversion after a user stays on the page for 10 seconds, you can set it up like this:

10 sec trigger

We do not recommend appending the additional code into the base code and triggering it on a specific action. This will cause a time lag from the action to the pixel fire, and you may experience incorrect conversion data.

If you want to fire a conversion after a button has been clicked, follow the same steps above and choose ” “All Elements” as the trigger type. Have the trigger fire on “Some Clicks” and enter the Click ID or Click Class that the action is associated with.

For example, if the action was written as follows, you can set the ‘Click ID’ to targetlink1.


Click Trigger

If you’re unable to locate “Click ID ” or  “Click Class” in the Variables drop-down, you can configure which variables to show under “Variables” in the main dashboard.

Once you have created and saved your conversion points, use our Outbrain Pixel Tracker to test the pixel fire and implementation.

Want to implement our Pixel in Floodlight? Check out our guide!

For any further questions, feel free to reach out to our helpful team at

Need Further Help?

Speak to an Outbrain expert

Contact Us