Help
Settings

Web tag

The one script that puts your ShowPilot agents on your website, and how it decides which agent to show.

The web tag is how your agents reach visitors on your website. It's a single script you add to every page of your site. It's the same for every page and every agent. When a page loads, the tag asks ShowPilot which agent belongs there, using your placements, and shows it. See Sites.

That means you install the tag once. After that, you change which agent appears where in ShowPilot, without editing your site again.

This article covers getting the tag, where to paste it, and what to check when it shows nothing.

How do you get the tag?

Go to Settings → Web Tag and select Copy Code under Embed snippet. The tag looks like this:

<script src="https://cdn.showpilot.com/widget/v1/app.js" type="text/javascript" defer></script>

Paste it just before the closing </body> tag on every page where an agent should be available. The tag loads after the rest of your page, so it doesn't hold up your content. For where to paste it in common site builders, see Put your agent on your site.

What can you set on the tag?

Two attributes change how the agent sits on the page. Add them to the <script> tag.

AttributeWhat it does
data-showpilot-rail="overlay"The Rail layout covers the right edge of the page instead of narrowing the page to make room.
data-showpilot-beam="stay"Beam keeps the agent at full size instead of settling to a smaller corner figure as the visitor scrolls.

Troubleshooting

IssueWhat to check
The tag shows nothing on your siteThe tag shows nothing on a site that isn't registered in Settings → Sites, and nothing on a site with no placement. Place an agent on it.
The Web Tag row says Approve a domain firstNo site is registered yet. Add one in Settings → Sites, and the row then says Ready.
The agent doesn't appear on one pageNo placement may cover that page, or it may be excluded. Check the placements in Agents → Deployments and the site's Advanced rules in Sites.

Frequently asked questions

Do I need a different tag for each agent or page?

No. One tag works for every agent. Your placements pick the agent.

Is it safe to put the tag on pages with no agent?

Yes. On a page with no matching path, or an excluded page, the tag shows nothing.

Will the tag slow down my page?

The tag loads after the rest of your page, so it doesn't hold up your content.

On this page