Scripts, Privacy, and Performance
Add analytics, ad pixels, chat widgets, and other third-party code in one place, so it loads the same way on every page without slowing the first view.
Overview: Privacy-Conscious Analytics Loading.
Open Scripts & Embeds
- Go to Appearance → Customize.
- Open Scripts & Embeds.
- Set up the panels you need, then click Publish.
Analytics and tracking
- Enter IDs only for the services you use: Google Analytics, Google Tag Manager, Facebook Pixel, LinkedIn, StackAdapt, Hotjar, HubSpot, and Piwik PRO.
- Leave the other fields blank.
- Choose a Tracking Load Strategy:
- After Page Load: tracking starts once the page finishes loading (the default).
- First Interaction: tracking waits until the visitor first clicks or scrolls, for a lighter first load.
- With WooCommerce active, turn on Enhanced Ecommerce Tracking to send purchases to Google Analytics or Tag Manager.
After publishing, open the site in a private window and check your provider's debugger to confirm tags are firing.
Cookie banner (GDPR)
In GDPR Banner:
- Turn on Enable.
- Write the message in Body, and set the Accept Text and Decline Text button labels.
- Leave Show Privacy Policy Link on to link to your privacy policy from the banner.
While the banner is on, the tracking IDs from Analytics & Tracking don't load until the visitor clicks accept.
Custom embeds and fonts
Custom Embeds: paste code from trusted vendors for chat, scheduling, or other tools that don't have their own ID field. Code pasted here loads even when the cookie banner is on, so tracking with an ID field (HubSpot and Piwik PRO included) belongs in Analytics & Tracking instead. Add each tool once. Don't also paste the same code into a page block.
Embed Fonts: load Google Fonts or Adobe Fonts families that aren't included in Dirigible Fonts. These also load in the block editor.
Speed settings
The jQuery speed settings are on Optimize Settings → jQuery, part of Dirigible Optimize. Keep the defaults unless a plugin stops working; if one does, check Don't defer jQuery there. Deactivating Optimize turns the jQuery tweaks off too (WordPress's own jQuery loading). Sites still on an older Optimize have them under Performance in the Customizer until Optimize updates.
For cache clearing and cleanup tools, see Tools and Maintenance.
Suggested order
| Order | Task | Panel |
|---|---|---|
| 1 | Decide which tracking services you need | Analytics & Tracking |
| 2 | Turn on the cookie banner if you need consent | GDPR Banner |
| 3 | Add chat or booking code | Custom Embeds |
| 4 | Add extra web fonts if needed | Embed Fonts |
| 5 | Check the speed settings | Optimize Settings → jQuery |
| 6 | Test in a private window | — |
What to avoid
- Pasting the same tracking code into individual pages. Use the Customizer fields once.
- Changing speed settings without testing forms, checkout, and the pop-up afterward.
- Forgetting to click Publish. Unpublished changes never reach visitors.
Verification fields
Google Site Verification ID and Facebook Domain Verification ID prove to Google Search Console and Facebook that you own the domain. They don't track visitors.
Paste the whole meta tag the service gives you, or just the code inside content="…". Google Site Verification ID takes more than one code, one per line, for example when two Search Console accounts verify the same site.
Related guides
- Pop-up and Newsletter
- Integrations: WooCommerce settings
- Getting Started
- Structured Data for Search Engines