The snippet
Paste this line into your website, just before the closing </body> tag, on every page:
<script async src="https://www.hiretilly.com/v1/widget/YOUR_KEY/tilly.js"></script>Replace YOUR_KEY with your own key. The app shows the whole line with your key already filled in, ready to copy.
What it does
- Swaps the phone number on your pages to the right tracking number for each visitor.
- Adds a chat bubble where visitors can ask Tilly questions. The chat has the same knowledge and follows the same rules as Tilly on the phone, and says it is an AI assistant at the start.
Where to paste it
- A website builder. Most have a place for custom code in the site settings. Look for “custom code”, “code injection” or “footer code”, and paste the line into the footer section so it loads on every page.
- WordPress. Add it to your theme's footer, or use a plugin that adds code to the footer of every page.
- A tag manager. Add it as a custom HTML tag that fires on all pages.
- Someone else looks after your site. Send them this page and the line from the app. It is a two-minute job for a web developer.
Check that it works
- Open your website in a private or incognito window.
- Look for the chat bubble. Send it a question a customer might ask.
- Check that your phone number still shows correctly on the page.
Nothing showing? Make sure the line is on the page (view the page source and search for tilly.js), that the key is yours, and that the page isn't an old cached copy.
What it stores in the visitor's browser
The snippet sets no advertising cookies. It keeps the first place a visitor came from (the ad, campaign or referring site) in their browser's local storage for 30 days, so a later call can be matched to it.
Removing it
Delete the line from your site. The number swapping and the chat bubble stop straight away.