Browse the docs
Overview
Start here
Websites
CMS
Forms and integrations
Analytics
Experiments
Proactive improvements
SEO and AI search
Team and account
Migrating
For agents and developers
Troubleshooting

DocsForms and integrations

Scripts and pixels

Add a tracking script, chat widget or ad pixel to your website.

Ad pixels, chat widgets and analytics tags all arrive as a snippet someone has to paste into the right place. Give it to your agent and it adds it properly, on the pages you name, loaded so it does not slow your site down. It can also tell you what is already installed, which is usually more than anyone remembers.

See it in action

Ask your agent this.

Add the tracking snippet below to every page of my website. Load it after the page is ready so it does not slow anything down, and tell me how to confirm it is working.

It answers with something like this.

The snippet is on every page and loads after the page is ready.

To confirm it, open the preview, then look for a new visit in the tool's live view. It should show within a minute.

Add the tracking snippet below to every page of my website. Load it after the page is ready so it does not slow anything down, and tell me how to confirm it is working.

  1. Searched the sitesearch_files
  2. Started a changestart_change
  3. Made the editsedit_files
  4. Built a previewpreview_change

The snippet is on every page and loads after the page is ready.

To confirm it, open the preview, then look for a new visit in the tool's live view. It should show within a minute.

Preview readyacme.comOpen

What happens

  1. You paste the snippet from the tool you are adding.
  2. Your agent adds it to the website's shared layout so it runs on every page.
  3. It builds a preview. You check the tool is receiving data.
  4. You publish.

What to check

  • The tool reports events from the preview or the live site.
  • Page speed did not get noticeably worse.

What you can add

  • Analytics and product tools such as PostHog or Google Analytics
  • Ad pixels such as Meta, LinkedIn and Google Ads
  • Chat widgets and schedulers
  • Consent banners
  • Anything else that gives you a snippet to paste

Good to know

Only some pages

Say which pages. Only on /pricing and /demo works.

You may not need one

Sherpa already records visits, clicks, scrolling and bookings on every page. Before adding another analytics script, see Read your analytics.

Keep a list

Ask your agent which third-party scripts the website loads. Remove the ones you no longer use. Every script costs load time.

Common questions

Can I keep my other analytics tools on Sherpa?

Yes. Paste the snippet for anything you use and tell your agent to install it. It runs alongside Sherpa's built-in analytics.

How do I add a tracking pixel or chat widget?

Paste the snippet into your chat. Your agent adds it to the website and builds a preview so you can check the tool is receiving data.

Will scripts slow my website down?

Your agent loads them after the page is ready, and only on the pages that need them.

Can I see what is already installed?

Yes. Ask your agent what your website loads and remove what you no longer use.

Example prompts

Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.

The request from the example

Add the tracking snippet below to every page of my website. Load it after the page is ready so it does not slow anything down, and tell me how to confirm it is working.

It says where the script goes, how it should load and asks for a way to check. Most script problems are one of those three.

The script inventory

Which third-party scripts does my website load, on which pages, and which of them slow the page down most?

An inventory with a cost beside each one tells you what to cut.

The clean removal

Remove the old chat widget from every page and confirm nothing else depended on it.

Scripts get tangled with the pages around them. The check avoids a broken button.

The targeted pixel

Only load the LinkedIn pixel on /pricing and /demo.

Fewer pages means less load time everywhere else.

For agents

Sherpa MCP tools for this job, in the order they are usually called. search_files, edit_files, preview_change. Work inside a change, and only call submit_change when the person asks to publish. A person presses Publish. Every tool is described in the MCP reference.

Next

See your own site on Sherpa.

  1. TodayPick a timePick a time
  2. Before the callWe copy your site over, freeWe copy it, free
  3. On the callYou take it for a spinTry it live
You'll talk to Ethan, Sherpa's founder.

Loading times…

Open the booking page in a new tab ↗