Skip to content

Commit

Permalink
πŸ“œ Add directions on where to save custom js. (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxbaylee authored Sep 19, 2024
1 parent 59ac8bb commit 0a3dc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced/custom/js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ description: 'Add JavaScript functionality globally'

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
## Adding Custom JavaScript

For example, you can add the following `script.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
Any `.js` file inside the content directory of your docs will be included in every documentation page. For example, you can add the following `ga.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.

```js
window.dataLayer = window.dataLayer || [];
Expand Down

0 comments on commit 0a3dc01

Please sign in to comment.