Add custom code to a page or to every page
Paste a widget from another service into an Embed code block on one page, or add code to every page, checked by TruLata before it runs.
#Paste code on a page
- Open Add and pick Embed code under Content. Drag it where you want it, or click it to add it at the end.
- On the block, press Click here and paste your code and paste the code the service gave you. Later the block shows Change the code.
- Press Save, then publish.
#It runs in its own frame
Embedded code runs in its own frame on the page, so it cannot change the rest of your site. That keeps the rest of your site safe from it, and it also means the code cannot restyle your site or reach your other pages. For code that has to run on every page, use Code on every page below.
#Code on every page
Use it for a chat widget or a booking script. TruLata checks every script before it runs on your live site, to keep your visitors safe, and most are checked within a business day. Until then the card says it is waiting for TruLata's check, and a ticket for it shows under Your tickets in Help.
Once a reviewer approves it, the code runs on your live site from your next publish. It never runs on your free preview.
Paste only the snippet the service gives you, not a whole page: code with html, head or body tags is refused. To take code off, empty its box and press Send for a check. Taking code off is never held for a check.
- Open Settings and find Code on every page.
- Paste exactly what the service gives you into Header code or Footer code.
- Press Send for a check.
#Code that goes somewhere else
Analytics and ad tags go in Settings, under Ads and analytics. Ownership checks from Google, Bing and others go under Verification tags. Neither takes scripts pasted in. Pixels from TikTok, LinkedIn, Pinterest and Microsoft have their own ID boxes in Ads and analytics, so they need no check.
#Remove the code
Empty the code box and save, or remove the block with the bin on its toolbar.
#Questions
Can I add code to the head of every page?
Yes. Open Settings, find Code on every page, paste the snippet into Header code or Footer code and press Send for a check. A TruLata reviewer checks it before it runs on your live site, usually within a business day.
Does code on every page wait for the cookie banner?
No. The cookie banner holds back the IDs set in Ads and analytics. Code you add under Code on every page runs once it is approved, whether or not a visitor presses Accept.
Can Addy add code for me?
She can put code you paste in the chat into an Embed code block on a page. Code on every page is sent from Settings.
Is there a block for my booking page?
Yes. The Online booking block shows booking pages from services such as Calendly, Square, Acuity, Jobber and Housecall Pro without any code.
Related articles
Ask Addy in your dashboard. She answers from your own numbers, does the job for you, or opens a ticket for a person. Or email support@trulata.com and a person on our team replies.

™