---
title: Configuration
date: 2026-07-02T14:59:00+01:00
author: John Henry Donovan
canonical_url: "https://johnhenry.ie/plugins/clicky-analytics/docs/getting-started/configuration"
section: Plugins
---
esc

↑↓ to navigate↵ to selectesc to close

Menu On this page 

- [Return to top](#)

Documentation

Documentation

# Configuration

Go to **Settings → Plugins → Clicky** to configure the plugin.

## Credentials

Don’t have a Clicky account yet? [Sign up](https://clicky.com/149191) (affiliate link)

Enter your Clicky **Site ID** and **Sitekey**. You'll find both in Clicky under **Preferences → Site → "Site ID &amp; keys"**.

Both fields accept environment-variable syntax, and that's the way we'd recommend doing it. Add the credentials to your `.env`:

```bash
CLICKY_SITE_ID="123456"
CLICKY_SITEKEY="abc123def456"
```

…then enter `$CLICKY_SITE_ID` and `$CLICKY_SITEKEY` in the settings fields. Click **Test connection** to verify the credentials against the live Clicky API before saving.

Tip The Sitekey is a private credential. Keep it in an environment variable rather than committing it to project config.

## Other settings

SettingDescriptionDefault date rangeThe range widgets and the page-stats field use by default. One of: Today, Yesterday, 2 days ago, Last 7 / 14 / 28 / 60 / 90 days.Cache durationHow long, in seconds, to cache Clicky API responses.  disables caching. Defaults to `300`.Colour schemeThe accent palette applied across the widgets, the field and the charts. See Colour schemes.

## Tracking code

The plugin can also add the Clicky tracking snippet to your front end for you, so there's no need to paste it into your layout by hand. You'll find the equivalent in Clicky under **Prefs → Tracking code**:

SettingDescriptionInject tracking codeAdds the async `<script></script>` snippet (using the Site ID above) just before ``
