Ad pixels
Add your Meta, Google Ads, LinkedIn or custom tracking tags from the dashboard, switch them on and off, and check that they fire.
Ad pixels let you load your advertising tags (Meta, Google Ads, LinkedIn, or a custom snippet) through the Klickbee tracker, without editing or redeploying your site. Add or remove a pixel in the dashboard and it is served to your visitors on their next page load.
Open Optimize → Pixels in the sidebar. The page lists your pixels, with a New pixel button, a Test URL field and the Conversions API panel (server-side conversions, an Ads feature: see Conversions). The Debugger tab shows whether those server-side conversions reach Meta and Google Ads: see Conversion debugger.
Ad pixels wait for consent and respect Do Not Track
When consent mode is on, your pixels are not loaded until your consent banner
calls grantConsent(). When the visitor's browser sends Do Not Track (respected
by default), they are not loaded at all. On a site without consent mode, they
load as soon as the tracker starts. Revoking consent cannot remove a tag that
has already loaded. This needs tracker version 0.6.5 or later. See
Privacy and consent. No consent banner on your
site? Klickbee can generate one: see Consent banner.
Add a pixel
- Open Pixels and click New pixel.
- Choose the Platform.
- Give it a Name to recognise it later, for example
Meta - main. - Fill in the identifier for that platform (below).
- Click Add pixel.
| Platform | What you enter | Example |
|---|---|---|
| Meta (Facebook/Instagram) | Pixel ID | 123456789012345 |
| Google Ads | Tag ID (AW-…) | AW-123456789 |
| Partner ID | 1234567 | |
| Custom snippet | Head snippet and/or Body snippet | your own tag code |
Check the identifier carefully
The dashboard does not validate the format of an identifier. A typo simply loads nothing, silently. Copy the identifier from your ad platform and use the test below to confirm it fires.
Custom snippets
Use a custom snippet for any other tag. Paste the code into Head snippet
(injected into the page's <head>), Body snippet (injected into the
<body>), or both when the tag needs both. Raw JavaScript and HTML containing
<script> tags both work; the scripts are executed. <noscript> parts are
ignored, so a tag's pixel-image fallback does nothing.
Custom snippets run on your visitors' pages with the same rights as your own code. Only paste code you trust.
Switch a pixel on or off, or delete it
Each pixel row shows its name, its platform and:
- an Enabled checkbox: unchecking it stops the pixel from being served from the next page load (pages already open keep it until they reload), and you can switch it back on at any time;
- a Test button (below);
- a delete button. Deleting removes the pixel and its conversion mappings.
When does a pixel load?
- When a visitor opens a page of your site, the tracker fetches the list of enabled pixels for your site and loads them. A new or changed pixel therefore appears on the next full page load.
- With consent mode on, the list is not even fetched until the visitor has consented; with Do Not Track on, it is never fetched.
- Each pixel loads once per page load. In a single-page app, navigating between routes does not reload it.
- One failing pixel does not break the others or Klickbee's analytics.
- The list is only served to the allowed origins of your site. If you set allowed origins and your domain is missing, you will see no data and no pixels. See Install the tracker.
Test that a pixel fires
- In the Test URL field, enter the address of a page of your site (it is pre-filled with your first allowed origin).
- Click Test on the pixel's row.
Your site opens in a new tab with the Klickbee pixel debugger. A small panel titled Klickbee · Pixel debug appears at the bottom right and lists each pixel with its status:
- fired: a request to the platform was seen;
- no request yet: nothing was sent (yet);
- injected: for a custom snippet, the code was added to the page.
It also lists the last hosts the page contacted and counts JavaScript errors. It
refreshes for about 10 seconds. You can also add ?kb_pixel_debug to any URL of
your site to check all pixels at once.
The test only works on a page where the Klickbee tracker is installed and active: with consent mode on, accept consent on the page first, and turn Do Not Track off in your browser. An ad blocker can hide pixel requests, so test in a browser without one.
This test covers the tags in the browser. To check the conversions Klickbee sends from its servers to Meta and Google Ads, use the conversion debugger.
What is not supported
Klickbee supports Meta, Google Ads, LinkedIn and custom snippets. Other platforms (TikTok, Snapchat, Pinterest, Microsoft Ads) have no dedicated pixel type: use a custom snippet for their tags. Custom snippets cannot be linked to goals, so they cannot send conversions through Klickbee.
Related
- Conversions: send your goals to Meta, Google Ads and LinkedIn.
- Conversion debugger: check that server-side conversions arrive.
- Goals: define what a conversion is.
- Consent banner: hold your pixels until the visitor accepts.
- Cookie declaration: the list of your pixels' cookies, for your cookies page.
- Privacy and consent
- Troubleshooting