Adding Tracking & Scripts for Your Published Site
By the end of this doc, you'll be able to:
- Understand what Tracking & Scripts controls on your published site
- Add your Google Analytics ID to track site visitors
- Add your Facebook Pixel ID to track ad performance
- Add custom code to your site's
<head>or<body> - Know what to avoid when pasting custom code
Before You Begin
Before getting started, make sure you have:
- Editor access or above on your project
- A plan that includes Tracking & Scripts
What is Tracking & Scripts
Tracking & Scripts lets you connect analytics tools and add custom code to your published site, all from Site Settings, with no code required for the analytics part.
Most sites need to track visitors and integrate with tools beyond what Relume natively supports. Tracking & Scripts covers both: add your Google Analytics and Facebook Pixel IDs to start collecting visitor data, or paste in code from other tools directly into your site's <head> or <body>.
How to Add Your Tracking IDs
Add your Google Analytics and Facebook Pixel IDs to start sending visitor data to those tools once your site is published.
- Go to Site Settings, then open the Custom Code tab.
- Under Tracking, enter your GA4 measurement ID in the Google Analytics ID field.
- Enter your pixel ID in the Facebook Pixel ID field.
- Click Save.
.jpeg)
💡 You don't need to fill in both fields. If you only use one of these tools, leave the other blank.
How to Add Custom Code
Custom code lets you paste in scripts from other tools, like a chat widget, a verification tag, or a tool that isn't natively supported, directly into your site.
- Go to Site Settings > Tracking & Scripts, and scroll to Custom code.
- Paste your code into the matching field: Start of
<head>, End of<head>, Start of<body>, or End of<body>. - Click Save.
.jpeg)
⚠️ Only paste code if a tool has explicitly given it to you. Don't include the<head>or<body>tags themselves — Relume adds those automatically, so including them again will break your site.
Need More Help?
If you have any questions or run into anything, reach out to our support team at support@relume.io — we're happy to help.
Need Support?
Join Our Community
Learn from fellow Lumers or showcase your work with our community of 10k+ members.
Get Support
We've got your back. Get your questions answered.
We typically reply in 24 hours or less.
