Analytics & Tracking
What Is a Pixel Tag? Tracking Pixels Explained
Part of the guide: Local Marketing Strategy
A pixel tag is a small snippet of code on your website that records visits and actions, such as a form submission or a booking, and sends them to an ad or analytics platform like Google, Meta, TikTok or Microsoft.
It lets those platforms show which ads led to real customers and lets you retarget people who visited your site. If you run paid ads and want to know which ones produce customers, you need one.
Here is a test. You run two ads for a week at the same price per click. Ad A gets 150 clicks. Ad B gets 100. Which one do you keep? Without a pixel, you keep A, because clicks are all you can see. With a pixel, you find out that B booked 8 people and A booked 6, and A was the expensive one. The math is below.
Technically, the snippet is JavaScript that you paste into your site (or add through Google Tag Manager). Once installed, it runs every time someone loads a page. Without one, you know how many clicks you bought, but not whether any of them became customers.
What Exactly Does a Pixel Tag Do?
When someone visits your website and your pixel tag is installed:
- The script loads and sends a request to the ad platform's server. Historically this was a 1x1 invisible image, which is where the name "pixel" comes from.
- The request carries details such as the page URL, the event type and identifiers the platform can match to a user, such as cookies.
- If that person later sees your ad on Facebook, Google or TikTok, the platform can connect the ad view to the website visit.
Without a pixel, the ad platform cannot tell whether the people clicking your ads are the ones who later booked.
The Math: Why Clicks Alone Mislead You
This is a worked example with made-up round numbers. It is not a client result and not a market statistic. Swap in your own.
Assumptions: both ads cost $2 per click. Ad A attracts casual browsers, and 4% of its clicks book. Ad B attracts people looking for the exact service, and 8% of its clicks book. A booking is worth $60.
| Line | Ad A | Ad B |
|---|---|---|
| Clicks | 150 | 100 |
| Spend (clicks x $2) | $300 | $200 |
| Bookings (clicks x rate) | 6 | 8 |
| Cost per booking | $50 | $25 |
| Revenue (bookings x $60) | $360 | $480 |
| Profit before other costs | $60 | $280 |
Ad A has 50% more clicks and earns less than a quarter of Ad B's profit ($60 vs $280). If you only see clicks, you would shift budget the wrong way. A pixel with a booking event is what makes the last four rows visible.
The same data feeds retargeting. Suppose 1,000 people visit your site this month and 20 book. The other 980 are people who showed interest and left. A pixel lets Meta and Google build an audience from those 980 so you can show them one more ad, instead of paying to find strangers again.
The Pixel Tags Every Local Business Should Install
1. Meta Pixel (Facebook & Instagram)
Required for any business running Facebook or Instagram ads. The Meta Pixel:
- Tracks who visits your website from Meta ads
- Enables retargeting on Facebook and Instagram
- Builds "lookalike audiences" (new customers similar to your existing ones)
- Reports which ad clicks led to bookings or contact form submissions
Where it goes: in the
<head> of every page on your website.<!-- Meta 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', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
Replace
YOUR_PIXEL_ID with the ID from your Meta Events Manager. Meta also offers the Conversions API, which sends events from your server; if you run both, Meta's documentation says to pass an eventID so the two copies can be deduplicated (Meta Pixel reference, checked Oct 2026).2. Google Tag (gtag.js)
Google says the global site tag (gtag.js) is now simply the Google tag, a single tag that connects your site to products such as Google Ads and Google Analytics (Google Ads Help, checked Oct 2026). One tag can serve both:
- Google Analytics 4: how many visitors, what they do on your site, where they came from
- Google Ads: which clicks led to bookings, calls, or form submissions (conversion tracking)
<!-- Google Tag -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX'); // Your GA4 Measurement ID
gtag('config', 'AW-XXXXXXXXX'); // Your Google Ads Conversion ID (if running Google Ads)
</script>
3. TikTok Pixel and Microsoft UET tag
If you run TikTok ads, create a TikTok Pixel in TikTok Ads Manager. If you run Microsoft Advertising, its Universal Event Tracking (UET) tag does the same job as the Google tag.
The Easiest Way: Google Tag Manager
Instead of adding each pixel directly to your website code, use Google Tag Manager (GTM), which Google says is free (Tag Manager Help, checked Oct 2026). It lets you manage many tags from one dashboard without editing your site for every new tag.
- Install one GTM snippet on your website, once.
- Add every other tag (Meta Pixel, Google Analytics, TikTok, LinkedIn) through the GTM interface, with no code edits.
<!-- Google Tag Manager - paste in <head> -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- Also paste in <body> immediately after opening tag -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
If you use more than two ad platforms, GTM usually saves effort. If you only use Google, the Google tag alone is fine.
What Pixel Tags Track: The Events That Matter
A pixel firing on a pageview is just the baseline. Event tracking tells the platform when something valuable happened. The event names below are Meta standard events (Meta Pixel reference, checked Oct 2026).
| Event | What it means | Why it matters |
|---|---|---|
PageView | Someone loaded your page | Basic reach measurement |
ViewContent | Someone viewed a page you care about, such as a service page | Mid-funnel intent signal |
Lead | Someone completed a sign-up or enquiry | Direct lead attribution |
Schedule | Someone booked an appointment to visit your location | Conversion, highest value |
Contact | Someone contacted you by phone, SMS, email or chat | Offline intent signal |
Purchase | A purchase or checkout was completed | E-commerce revenue tracking |
For a salon, fitness studio or coffee shop, track at minimum
Lead (contact form submission) and Schedule (booking confirmation). These are the events that prove an ad worked.Meta Pixel event example (add after the base pixel on your booking confirmation page):
<script>
fbq('track', 'Schedule'); // fires when booking is confirmed
</script>
Google Ads conversion example (add to your "thank you" page):
<script>
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXXXX/XXXXXXXXXXXXXXXX'
});
</script>
Privacy and Consent
Privacy rules depend on where your visitors live. This is general information, not legal advice.
- UK and EU: the UK regulator says tracking pixels that store or access information on a person's device fall under PECR, which requires a clear positive action before non-essential cookies are placed, and continuing to browse is not valid consent (ICO, checked Oct 2026). The EU has similar rules.
- California: the CCPA gives consumers the right to opt out of the sale or sharing of their personal information, and businesses that sell or share it must offer a "Do Not Sell or Share My Personal Information" link. It applies to businesses above thresholds such as $25 million in annual revenue or handling data on 100,000 or more California residents (California Attorney General, checked Oct 2026). Many small local businesses fall below those thresholds, but check.
If you have visitors from the UK or EU, use a consent management platform that blocks pixels until the visitor accepts and works with Google Tag Manager.
Verifying Your Pixel Is Working
Do not assume installation worked.
- Meta Pixel: install the Meta Pixel Helper Chrome extension, visit your website and check whether the pixel fired and which events triggered.
- Google Tag: use Google Tag Assistant to see which tags fire on your pages and whether they report errors.
- GTM Preview Mode: in Google Tag Manager, use Preview and enter your URL to watch tags fire as you navigate.
Do This Today: 20-Minute Pixel Check
- Minutes 0 to 5: open your site with the Meta Pixel Helper and Tag Assistant. Write down which tags fire.
- Minutes 5 to 10: make a test booking or send a test contact form. Did
LeadorSchedulefire exactly once? - Minutes 10 to 15: open Events Manager and GA4 Realtime. Does the test show up?
- Minutes 15 to 20: list your two main ads. For each, write clicks, bookings and cost per booking, like the table above. Which one would you cut?
FAQ
Q: Can I install multiple pixel tags on the same website?
A: Yes. Each platform's tag fires independently, and Google Tag Manager makes managing several easier. Too many tags can slow page loads, so keep only the ones you actively use.
Q: What is the difference between a pixel tag and a cookie?
A: The pixel tag is the code that runs when someone visits your page. A cookie is a small file the code may store in the browser to recognise that visitor later. Google has said it will not deprecate third-party cookies in Chrome and will instead let users choose (Digiday), but browsers and privacy laws still limit tracking, so first-party data such as email lists and CRM records is worth building.
Q: Do I need a pixel tag if I only run Google Search Ads?
A: You need the Google tag with conversion tracking set up. Google says Smart Bidding requires conversion tracking, and without it Google Ads shows clicks but not which ones led to bookings.
Sources
- Meta Pixel reference - Meta for Developers
- About the Google tag - Google Ads Help
- Tag Manager and the Google tag - Tag Manager Help
- About Smart Bidding - Google Ads Help
- Cookies and similar technologies - ICO
- California Consumer Privacy Act - California Attorney General
- Digiday: Google says it won't be deprecating third-party cookies in Chrome
Next steps
Once your pixels fire correctly, set up conversion events and check them against real bookings. For help with tracking, contact DataLatte or see our analytics and reporting service and Google Ads management. Also read how to set up Google Ads conversion tracking and how to track which marketing is bringing customers.
Related Articles
- Facebook Pixel Setup Guide: Track Every Conversion From Your Ads
- Facebook Pixel vs Google Tag: Which to Install First?
- Microsoft Clarity for Small Business: Free Heatmaps and Session Recordings
- Google Analytics 4 for Small Business
- How to Show Up in Bing Copilot AI Answers for Local Business
Free for local businesses
Want this applied to your business?
I'll review your Google presence, local SEO, and ad accounts — and send you a specific action plan within 48 hours. No pitch, no pressure.
Want hands-on help?
See how DataLatte handles Analytics & Reporting for local businesses.

Nataliia
Local marketing strategist with 10+ years at global agencies — OMD, Dentsu, GroupM, and BBDO. Now helping small businesses get the same data-driven edge. Based in Europe, working with clients in the US, UK, Australia, and beyond.
About NataliiaRelated articles
Analytics & Tracking
Marketing Metrics That Matter for Local Businesses
15 min readAnalytics & Tracking
Social Media Analytics for Hair Salons
14 min readAnalytics & Tracking
Predictive Analytics for Local Business: Reduce Churn
15 min readAnalytics & Tracking
Unlocking Google My Business Analytics for Local Businesses
14 min readWant this applied to your business?
Let's review your current marketing setup together — free, no obligations.
Get Your Free Marketing Audit