> For the complete documentation index, see [llms.txt](https://docs.jollyany.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jollyany.co/basics/custom-code.md).

# Custom Code

&#x20;You can define where to insert the **Analytics Code** code by template parameter **Custom Code**.

## Tracking Code

The Analytics tracking code may be directly added directly to the HTML of each page on your site, or indirectly using a tag management system such as Google Tag Manager.

In this section you can paste your tracking code to get started tracking the activity of your website users

![](https://3301969549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoBBXF4uM9fQS8Kd3Rdft%2Fuploads%2FxPCj8SSYG07lxm95yDW5%2Ftracking-code.jpg?alt=media\&token=92ea04b5-ff9f-444e-8076-8bc6317163db)

![](https://3301969549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoBBXF4uM9fQS8Kd3Rdft%2Fuploads%2F3sE3nj1rG4jl1TBTUOgv%2Fgg-analistics.jpg?alt=media\&token=44c7991c-33f4-42c3-a528-f164b3dde166)

#### Before Head

Here in this section you can write internal JS which will render before tag.

![](https://3301969549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoBBXF4uM9fQS8Kd3Rdft%2Fuploads%2FMJrqHZjj82CrWcKwdFti%2Fbefore-head.jpg?alt=media\&token=4979739b-49ba-4455-8caf-eba5ca73f6ef)

#### Before Body

![](https://3301969549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoBBXF4uM9fQS8Kd3Rdft%2Fuploads%2FFRqXSDugDsCEAKCrSmqu%2Fbefore-body.jpg?alt=media\&token=c6e86123-fb90-4af5-a47d-5cd9c665e896)

#### Custom CSS

![](https://3301969549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoBBXF4uM9fQS8Kd3Rdft%2Fuploads%2FRX8XumDAwCMwQa22tQVR%2Fcustom-css.jpg?alt=media\&token=6b5cbd83-9fa3-44b2-a2c0-a6b3a42efc8f)

#### Custom JS

You can include CSS files by adding file path **per line**. You can use Full URL of the CSS file, or path of the CSS file relative to the Joomla root directory.

![](https://3301969549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoBBXF4uM9fQS8Kd3Rdft%2Fuploads%2F2lmuGI29Xz5UTykxL8mc%2Fcustom-js.jpg?alt=media\&token=a66f22f5-5702-4a57-9434-df6267231195)

<br>
