You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: advanced/custom/js.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ Custom JS allows you to add custom executable code globally. It is the equivalen
11
11
12
12
## Adding script.js
13
13
14
+
To add custom JavaScript functionality globally, you need to create a `script.js` file at the root of your project. In case of a monorepo, this file should be at the same level as your `mint.json` file.
15
+
14
16
For example, you can add the following `script.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
0 commit comments