Build and customize
Analytics, pixels and WhatsApp button
Add Google Analytics, Tag Manager, a Meta Pixel, a WhatsApp chat button or your own code to every page of your site, and check each tag is really there.
You can add tracking and a chat button to your site without touching code. Enter an ID or a number in Project Settings, select Sync to Site, and the tag is added to every page.
You can set up four things here:
- Google Analytics, to see how many people visit and what they look at.
- Google Tag Manager, to manage several tags in one place.
- Meta Pixel, to measure visits from Facebook and Instagram ads.
- A floating WhatsApp button, so customers can message you in one tap.
There is also a box for your own code, for anything not covered above.
Where to find it
- Open your project in the editor.
- Open More actions, then Project settings.
- In the left menu under This Project, choose Integrations.
- Open the row called Site Tracking & Scripts.
Only members who can edit the project can change these settings. Viewers and clients cannot, because the code goes onto your live site.
How saving and going live work
Your entries are saved automatically a moment after you stop typing. The status at the top left changes to Auto-saved. Saving does not change your published site by itself.
To put the tags on the site, select Sync to Site. What happens next depends on whether your site is already published.
| Status you see | Meaning |
|---|---|
| Live on site | The site was rebuilt and the tags are live now. |
| Saved: re-publish to go live | The tags are in your project but not on the live site yet. Select Publish in the editor toolbar. |
| Sync failed | Something went wrong. Read the message, then try again. |
If you see the amber box "Integrations saved: re-publish to go live", select Publish in the editor toolbar to rebuild and deploy with the new scripts. See Publish your website.
Add Google Analytics
- Create a Google Analytics property in your Google account and copy its Measurement ID. It looks like G-XXXXXXXXXX.
- In Analytics & Ad Pixels, paste it into Google Analytics: Measurement ID.
- Select Sync to Site.
Add Google Tag Manager
- In Tag Manager, copy your Container ID. It looks like GTM-XXXXXXX.
- Paste it into Google Tag Manager: Container ID.
- Select Sync to Site.
If you use Tag Manager, you can add other tags inside Tag Manager itself. Do not add the same tag twice, once here and once in Tag Manager, or visits can be counted twice.
Add a Meta Pixel
- In Meta Events Manager, copy your Pixel ID. It is a long number.
- Paste it into Meta (Facebook) Pixel ID.
- Select Sync to Site.
The pixel records a page view on every page.
Add a WhatsApp chat button
This adds a round green button in the bottom right corner of every page. When a visitor taps it, WhatsApp opens a chat with your number.
- Under WhatsApp Chat Button, enter your number in WhatsApp Number (with country code). Use digits only, with no plus sign and no spaces. For a Hong Kong number that is 852 followed by the eight digits.
- In Pre-filled Message, type the first message the visitor sees, for example "Hi! I have a question about my order." If you leave it empty, the default is "Hi! I have a question."
- Select Sync to Site.
To hide the button, clear the number and sync again.
Add your own code
Use Custom Scripts for anything the other cards do not cover, such as another analytics tool or a booking widget.
| Box | Where the code goes |
|---|---|
| Head Code | Just before the end of the head section on every page. |
| Body Code (Footer) | Just before the end of the body on every page. |
Paste the full snippet the other service gave you, including the script tags.
Check that each tag is on the site
After a sync, a list of checks appears for every field you filled in.
| Message | What it means |
|---|---|
| Google Analytics tag confirmed in HTML | The tag is in your page. |
| Google Analytics tag NOT found: check the Measurement ID | The ID was not found. Check for typos. |
| Google Tag Manager confirmed in HTML / GTM container NOT found | Same check for the Container ID. |
| Meta Pixel confirmed in HTML / Meta Pixel NOT found | Same check for the Pixel ID. |
| WhatsApp button confirmed in HTML / WhatsApp button NOT found | Same check for the number. |
A check only appears for a field you filled in. Empty fields are skipped.
This check confirms the tag is in the page. It does not confirm the ID belongs to the right account. After you publish, open your tracking tool and look for a visit from your own browser.
If something goes wrong
| What you see | What to do |
|---|---|
| "Failed to save integrations" | Check your connection and try again. |
| "No revisions found: generate the project first." | Build your site with the agent first, then sync. |
| "index.html not found in the latest revision." | The project has no home page file yet. Ask the agent to build the site, then sync again. |
| "Project not found or access denied." | You do not have edit access. Ask the project owner. |
| "Sync failed" with a deploy message | The tags are saved. Select Publish in the editor to go live. |
| The tag is confirmed but your tool shows no visits | Wait a few minutes, visit your published site, and check again. Ad blockers can hide your own visits. |
Related pages