DataLatte
What Is a Pixel Tag? Complete Setup Guide for Local Business Websites
Analytics & Tracking

What Is a Pixel Tag? Complete Setup Guide for Local Business Websites

June 13, 2026·Nataliia· 10 min read All posts
A pixel tag is a small piece of JavaScript code — usually a single snippet between 10 and 30 lines — that you paste into your website. Once installed, it silently runs every time someone loads your page, sending data about that visitor to a tracking platform: Google, Meta (Facebook), TikTok, Microsoft, or any other ad network you use.
This data is what lets you run retargeting ads ("show this ad to people who visited my website but didn't book"), track which ads actually drove bookings, and measure your real return on ad spend.
For local businesses running any paid advertising, a pixel tag is not optional. Without it, you're flying blind — you know how many clicks you're buying, but not whether any of them turned into customers.

What Exactly Does a Pixel Tag Do?

When someone visits your website and your pixel tag is installed:
  1. Their browser downloads a 1x1 invisible image (historically called a "pixel" — hence the name)
  2. Their browser sends information to the tracking server: browser type, operating system, page URL, time of visit, and a hashed identifier
  3. The tracking platform creates or updates a profile for that visitor
  4. If they later see your ad on Facebook, Google, or TikTok — the platform can connect that ad view to the website visit
This connection is what makes modern ad targeting work. Without a pixel, the ad platform has no idea whether the people clicking your ads are the same people who later booked your service.

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 (show ads to website visitors on Facebook/Instagram)
  • Builds "lookalike audiences" (find new customers similar to your existing ones)
  • Reports which ad clicks led to bookings or contact form submissions
Install time: 15 minutes
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 number from your Meta Business Manager → Events Manager.

2. Google Tag (gtag.js)

The Google Tag replaced individual Google Analytics and Google Ads tracking scripts. One tag tracks 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 (if running TikTok ads)

Same concept as Meta Pixel but for TikTok ad campaigns. Found in TikTok Ads Manager → Assets → Events.

4. Microsoft Advertising (Bing) UET Tag

If you run Microsoft/Bing Ads, the Universal Event Tracking (UET) tag is Bing's equivalent of the Google Tag.

The Easiest Way: Google Tag Manager

Instead of adding each pixel directly to your website code, use Google Tag Manager (GTM) — a free tool that lets you install and manage all your tags from one dashboard, without touching your website code for every new tag.
How it works:
  1. You install one GTM snippet on your website (just once)
  2. Every other tag (Meta Pixel, Google Analytics, TikTok, LinkedIn, etc.) gets added through the GTM interface — no code edits required
<!-- 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>
For most local businesses with more than two ad platforms, GTM is the right approach.

What Pixel Tags Track: The Events That Matter for Local Business

A pixel firing on a pageview is just the baseline. What actually drives ad performance is event tracking — telling the platform when something valuable happened.
EventWhat it meansWhy it matters
PageViewSomeone loaded your pageBasic reach measurement
ViewContentSomeone viewed a service or pricing pageMid-funnel intent signal
LeadSomeone submitted a contact formDirect lead attribution
ScheduleSomeone booked an appointmentConversion — highest value
ContactSomeone clicked your phone numberOffline intent signal
PurchaseSomeone bought a productE-commerce revenue tracking
For a salon, fitness studio, or coffee shop: at minimum, track Lead (contact form submission) and Schedule (booking confirmation). These are your actual conversions — 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>

Since GDPR (EU/UK) and CCPA (California), pixel tags require user consent before firing for most traffic. If you have any European or California visitors, you need a consent management platform (CMP) that:
  1. Shows a cookie consent banner before any tracking starts
  2. Only fires pixel tags after the user accepts
  3. Logs consent for compliance records
Free and affordable CMP options: Cookiebot (free for small sites), CookieYes (free plan), Osano (free tier). Most integrate directly with GTM so your pixels fire conditionally based on consent status.
Ignoring this can result in regulatory fines — €20 million or 4% of global turnover under GDPR, whichever is higher. For a small business, the free CMP setup takes 2 hours and is worth it.

Verifying Your Pixel Is Working

Don't assume installation worked. Verify:
Meta Pixel: Install the Meta Pixel Helper Chrome extension. Visit your website — the extension shows whether the pixel fired and which events triggered.
Google Tag: Use Google Tag Assistant — paste your URL and it shows all tags firing, any errors, and event data.
GTM Preview Mode: In Google Tag Manager → Preview → enter your URL. See every tag firing in real-time as you navigate your site.

Frequently Asked Questions

Q: Can I install multiple pixel tags on the same website?
Yes — most websites have 3–6 tags running simultaneously: Google Analytics, Google Ads, Meta Pixel, possibly TikTok, LinkedIn, or Bing. Each fires independently. Using Google Tag Manager makes managing multiple tags easier — you add each through the GTM interface rather than editing your website code repeatedly. The only performance consideration: too many tags (10+) can slightly slow page load time. Keep your tag inventory to what you actively use.
Q: What's the difference between a pixel tag and a cookie?
They work together. The pixel tag is the JavaScript code that runs when someone visits your page. The cookie is the small text file it writes to the visitor's browser to identify them on future visits. The pixel is the delivery mechanism; the cookie is the persistent identifier. When someone clears their browser cookies, the tracking resets — which is why first-party data (email lists, CRM records) is increasingly important as third-party cookie deprecation continues.
Q: Do I need a pixel tag if I'm only running Google Search Ads?
Yes — you need the Google Tag with conversion tracking configured. Without it, Google Ads shows you clicks but not conversions. You won't know which keywords drove bookings vs. which just drove expensive clicks with no outcome. Google's Smart Bidding (which uses AI to optimize bids) also requires conversion data — without it, Smart Bidding has nothing to optimize toward and defaults to basic click-based bidding.
Q: How long does it take for pixel data to show up in Meta or Google dashboards?
Meta Pixel data typically appears in Events Manager within 15–20 minutes of a test event firing. Google Analytics data appears within 24–48 hours for aggregate reporting, though real-time reports show data within seconds. Google Ads conversion data appears within 3–7 days for initial population, with full historical data building over 30 days of active traffic.
Q: My website is on Wix / Squarespace / Shopify. How do I install pixel tags?
All major website builders have built-in pixel integrations that don't require code editing. In Wix: Settings → Tracking & Analytics → Add Tool. In Squarespace: Settings → Advanced → Code Injection (or native Meta/Google integrations). In Shopify: Online Store → Preferences → Google Analytics / Facebook Pixel (native fields). No code editing required on any of these platforms — just paste your Pixel ID or Tag ID into the provided field.

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.

Learn more
Nataliia — local marketing expert
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 Nataliia

Want this applied to your business?

Let's review your current marketing setup together — free, no obligations.

Get Your Free Marketing Audit