డాక్యుమెంటేషన్ ప్రస్తుతానికి ఇంగ్లీష్-మాత్రమే. మిగిలిన సైట్ మీ భాషను అనుసరిస్తుంది.
Custom code
Add analytics, tag managers, widgets, and small scripts to public pages, with a library of common services, consent gating, and a Content Security Policy that never allows unsafe-inline.
4 నిమి చదవబడింది
Settings → Developer → Custom code (Justflows 0.4.4 and later) adds analytics, tag managers, widgets, and small scripts to public pages, site-wide or on chosen pages, in the head or at the start or end of the body. Only the code:manage capability, held by administrators by default, opens it.
Snippets
- Library — Google Analytics 4, Google Tag Manager, Plausible, Matomo, Meta Pixel, and Microsoft Clarity with named settings instead of raw code.
- Inline script, external script, and markup (sanitized).
- Where — every page or chosen pages; head, start of body, or end of body.
- When — straight away, or only after the visitor consents to preferences, analytics, or marketing through the consent tool.
- Environments — limit a snippet to production, staging, or development.
Security
Inline scripts are allowed in the Content Security Policy by their exact hash, and external ones only from an allowlist of https origins; 'unsafe-inline' is never added. Saves are validated with errors and warnings, kept as versions, and audited as custom_code.changed with a diff and the author.
Turn it all off
JF_CUSTOM_CODE=off in .env turns all custom code off on an installation, such as staging. Safe mode switches every snippet off at once.