Custom Scripts
Custom JS
Add JavaScript functionality globally
Custom JS is available as an add-on to the pro plan.
Custom JS allows you to add custom executable code globally. It is the equivalent of adding a <script>
tag with JS code into every page.
Adding script.js
For example, you can add the following script.js
file to enable Google Analytics across the entire documentation.
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'TAG_ID');
Please use with caution to not introduce security vulnerabilities.
Was this page helpful?