How do I install a visitor ID tag on Google Sites?

On Google Sites, your visitor identification tag goes in: Insert > Embed > Embed code (code must be in <script> tags). The install itself takes minutes; the part that goes wrong on Google Sites is below.

Where the tag goes

  1. Insert > Embed > Embed code (code must be in <script> tags).
  2. Paste your vendor’s tag snippet exactly as issued. Do not wrap it in extra script tags or reformat it.
  3. Publish or deploy, then verify (below) before trusting data.

What breaks visitor tracking on Google Sites?

Google Sites does not allow custom code in <head> element; only <head> not supported, code goes in <body> via embeds only.

How do you verify the tag fires?

Publish site, view page in browser, check DevTools to verify script in Network tab and console execution.

Then run through the labeled QA checklist before you rely on the numbers, and set expectations with the match-rate calculator — no vendor identifies every visitor.

All platform install guides