Add custom code (analytics, pixels)
Inject your own header and footer code — Google Analytics, GTM, the Meta Pixel, chat widgets, or verification tags — onto your public storefront.
Add tracking and marketing snippets — Google Analytics, Google Tag Manager, the Meta Pixel, chat widgets, or site-verification tags — to your public website. The code runs only on your public storefront, never in your dashboard.
Add your code
- Go to Website in the left nav.
- Scroll to the bottom and click Advanced to expand it (it's collapsed by default).
- Find the Custom code & analytics card.
- Paste your snippet into Header code, Footer code, or both (see which to use below).
- Click Save custom code.
Saving purges your storefront's cache, so your snippet goes live on every public page within moments — no need to re-publish from the builder.
Header code vs. footer code
- Header code loads near the top of every public page. Use it for most analytics and verification tags — Google Analytics (gtag.js), Google Tag Manager, and search-engine site-verification meta tags.
- Footer code loads at the end of every public page. Use it for chat widgets and conversion/tracking pixels.
When in doubt, follow the instructions from whoever gave you the snippet — they'll usually say "add this to the <head>" (Header code) or "before the closing </body> tag" (Footer code).
Paste the full snippet exactly as the provider gives it to you, including the <script> tags. Scripts run for real on your live site.
Where it runs (and where it doesn't)
- It runs only on your public storefront — the site your buyers see.
- It never runs in your dashboard, the admin area, or on sign-in pages.
- It does not run inside the visual builder's live preview, so your analytics won't fire (and a broken snippet can't break the builder) while you're editing.
Your code is added to your public site exactly as you enter it — it is not checked or sanitized. A bad snippet can break your storefront. Only paste code from sources you trust. Each box accepts up to 20,000 characters. To remove a snippet, clear the box and click Save custom code.
FAQ
Which box do I use for Google Analytics?
Header code. Paste the Google tag (gtag.js) or your Google Tag Manager snippet there. Site-verification meta tags also go in Header code.
Which box do I use for a chat widget or a tracking pixel?
Footer code. Chat widgets and conversion pixels are designed to load at the end of the page.
My tag isn't firing — what's wrong?
Check three things: (1) you saved with Save custom code, (2) you're testing on your live public storefront, not the dashboard or the builder preview — custom code is intentionally skipped in both, and (3) the snippet is complete (it includes its <script> tags). If it still doesn't fire, re-copy the snippet from the provider, since a partial paste won't run.
Can my changes break my website?
Yes. The code is injected as-is with no validation, so a malformed snippet can break page rendering. If your storefront looks broken after a save, clear the offending box, save again, and re-add the snippet carefully.
Who can edit custom code?
Only an Owner or a Manager. Salespeople don't see this control.
Can the code touch my dashboard or customer data?
No. It's confined to your public storefront's pages — it never loads in the dashboard, admin, or sign-in areas. Note that AutoDealer.io support can block a dealer's custom code if a snippet is found to be unsafe; if your saved code suddenly stops loading, reach out to support.