Travio reads a few global JavaScript variables (Content API key + behavior flags) before the theme scripts run, so this snippet must go into Ghost → Code Injection → Site Header (the <head> area).
Step 1 — Open Code Injection in Ghost Admin
Log in to your Ghost Admin.
Go to Settings → Advanced → Code Injection.
Code injection module in Ghost Admin Setting
Step 2 — Paste the snippet into “Site Header”
Find the Site Header box (not Site Footer). Paste your snippet exactly as-is into Site Header.
Replace the example values with your own (details below).
Click Save.
Ensure you are adding the script in Site header
Paste the script in Site header and click Save
Here’s a copy/paste-ready version with placeholders:
Why Site Header (not Footer)?
Ghost places Site Header code inside <head>, while Site Footer code is injected before </body>. For Travio, the goal is to define window.TRAVIO_CONFIGbefore the theme JS reads it.
Step 3 — Create a Custom Integration (to get the Content API key)
Ghost’s official docs recommend generating your Content API URL + key by creating a Custom Integration.
In Ghost Admin, go to Settings → Integrations.
Click Add custom integration.
Name it something like: TravioTheme.
Click Add.
After creation, a popup will appear. Copy these from the popup: