Skip to content

Shingle help

Custom code

Add a chat widget or other code to your site on your own domain.

Add your own code

Some services give you code to paste into your website, such as a chat widget, a verification tag or a marketing tool. Open Widgets and find Custom code:

  • Head goes in every page's head. Use it for tags and verification codes.
  • End of page goes at the end of every page. Use it for chat widgets and scripts.

Choose Save widgets, then publish. Saving costs nothing.

For Google Analytics, Tag Manager, a Meta Pixel or Google Ads, use tracking codes instead: they work at every address and ask visitors first for you.

It runs on your own domain

Your code runs only when visitors open your site at your own domain. At your shinglesites.site address, and in the editor's preview, it doesn't run: that address is shared with other people's sites, so other code isn't allowed there.

Ask visitors first

If the code sets cookies, turn on your cookie banner and choose When it runs: after visitors allow statistics, or after they allow marketing. Your privacy page then says the business may add other services, and that they wait for visitors' choices.

Be careful with code

Shingle doesn't check your code. Code can change how your site looks and works, and what visitors' browsers send to other services. Only add code from people you trust, and remove it if your site stops working as it should.

A copy of your site doesn't keep your custom code, and neither does a download of your site's code.