Conversion tracking code is a JavaScript snippet installed on your site to record when visitors complete specific goals—sales, lead forms, phone calls, file downloads, or any action you define as valuable. When someone hits that goal page or triggers the event, the code fires and sends confirmation to your analytics or advertising platform. Without it, you're flying blind on which campaigns, keywords, or pages actually make money. Most tracking codes come in two parts: a base tag that loads on every page (like the Google Analytics gtag.js or Meta Pixel) and event-specific triggers. For ecommerce, you usually fire a purchase event with transaction ID, revenue, and product details on the order confirmation page. For lead gen, you fire a form_submit or generate_lead event when the thank-you page loads or the form validates. Google Tag Manager wraps this into a visual interface so you don't hard-code every snippet, but the principle stays the same—tag fires, platform records, you see the data. The code lets you tie conversions back to traffic sources. Google Ads uses it to calculate cost per conversion and feed Smart Bidding. GA4 uses it to build funnel reports and attribution models. Meta uses it to optimize ad delivery toward people likely to convert. If the code breaks or fires on the wrong page, your reported conversions either vanish or double-count, wrecking your ROAS calculations and budget decisions. At Ottawa SEO we install tracking through GTM with server-side containers when privacy regulations or ad-blocker rates matter, especially for healthcare or finance clients. We always test in preview mode, confirm the event in the platform's real-time report, then cross-check revenue in GA4 against the actual CRM or Shopify dashboard. A 5–10% discrepancy is normal due to ad blockers and cookie consent, but anything wider means the code is misconfigured. Always version-control your GTM container and document what each tag does—three months later you'll forget why you set up that custom event, and debugging becomes a nightmare.