Integration Overview
Clicky integrates with various platforms and tools to extend its analytics capabilities. From CMS platforms to notification services, these integrations help you embed analytics into your existing workflows.
CMS Integrations
WordPress
Clicky offers an official WordPress plugin that simplifies installation and configuration:
- Install the "Clicky Analytics" plugin from the WordPress plugin repository
- Activate the plugin and navigate to Settings → Clicky
- Enter your Clicky Site ID and Site Key
- Configure tracking options:
- Track logged-in users (admins, editors, subscribers)
- Enable outbound link tracking
- Track search queries
- Save settings
The plugin automatically adds the tracking code to all pages and supports additional features like goal tracking and admin dashboard widgets.
Drupal
For Drupal sites, use the Clicky module:
- Download and install the Clicky module from Drupal.org
- Navigate to Configuration → System → Clicky
- Enter your Clicky credentials
- Configure visibility settings to control which pages are tracked
- Set user role exclusions as needed
Joomla
Clicky integration for Joomla:
- Install a Clicky extension from the Joomla Extensions Directory
- Access the extension configuration in Joomla admin
- Add your Clicky Site ID
- Configure tracking preferences
- Position the module appropriately (typically in a hidden position)
Static Site Generators
For Jekyll, Hugo, Gatsby, and other static site generators, add the tracking code directly to your template:
<!-- Add to your base template, before </body> -->
<script>
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(YOUR_SITE_ID);
</script>
<script async src="//static.getclicky.com/js"></script>
E-commerce Integrations
Shopify
Add Clicky tracking to your Shopify store:
- Go to Online Store → Themes → Actions → Edit code
- Open
theme.liquid - Add the Clicky tracking code before the closing
</body>tag - For conversion tracking, edit
checkout.liquid(Shopify Plus) or use Additional Scripts
// In Additional Scripts (Settings → Checkout)
<script>
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(YOUR_SITE_ID);
</script>
<script async src="//static.getclicky.com/js"></script>
<script>
clicky.goal('purchase', {{ total_price | money_without_currency }}, 'Order {{ order_number }}');
</script>
WooCommerce
Combine the WordPress plugin with WooCommerce event tracking:
// Add to functions.php or custom plugin
add_action('woocommerce_thankyou', 'clicky_track_purchase');
function clicky_track_purchase($order_id) {
$order = wc_get_order($order_id);
$total = $order->get_total();
?>
<script>
clicky.goal('purchase', <?php echo $total; ?>, 'Order #<?php echo $order_id; ?>');
</script>
<?php
}
Magento
For Magento stores, add tracking via layout XML or directly in templates:
<!-- Add to default.xml layout -->
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template"
name="clicky.tracking"
template="Vendor_Module::clicky.phtml"/>
</referenceContainer>
Notification Integrations
Slack
Receive real-time alerts in Slack when specific events occur:
- Create a Slack Incoming Webhook in your Slack workspace
- In Clicky, go to Preferences → Alerts
- Add a new alert with the Slack webhook URL
- Configure alert triggers:
- Traffic spikes
- Goal completions
- Uptime issues
- Customize the message format
Email Alerts
Configure email notifications for key events:
- Navigate to Preferences → Alerts
- Set up alert conditions:
- Daily/weekly traffic summaries
- Real-time goal notifications
- Uptime monitoring alerts
- Specify recipient email addresses
- Choose alert frequency
Webhooks
Send data to custom endpoints for advanced integrations:
- Set up a webhook URL on your server
- Configure Clicky alerts to POST to your endpoint
- Process incoming webhook data:
// Example webhook handler (Node.js)
app.post('/clicky-webhook', (req, res) => {
const alertData = req.body;
// Process the alert
console.log('Clicky alert received:', alertData);
// Trigger your custom logic
handleClickyAlert(alertData);
res.status(200).send('OK');
});
Tag Manager Integration
Google Tag Manager
Deploy Clicky through GTM for centralized tag management:
- Create a new Custom HTML tag in GTM
- Add the Clicky tracking code:
<script>
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push({{Clicky Site ID}});
</script>
<script async src="//static.getclicky.com/js"></script>
- Create a GTM variable for your Clicky Site ID
- Set the trigger to "All Pages"
- Publish the container
For event tracking through GTM:
<script>
clicky.goal('{{Event Name}}', {{Event Value}}, '{{Event Title}}');
</script>
Other Tag Managers
Clicky works with any tag management solution that supports custom JavaScript:
- Tealium: Add as a Custom Container tag
- Segment: Use a custom destination function
- Ensighten: Deploy as a custom tag
API Integration
REST API
Clicky's API provides programmatic access to your analytics data:
# Get visitor data
curl "https://api.clicky.com/api/stats/4?site_id=YOUR_SITE_ID&sitekey=YOUR_SITE_KEY&type=visitors&output=json"
# Get goal data
curl "https://api.clicky.com/api/stats/4?site_id=YOUR_SITE_ID&sitekey=YOUR_SITE_KEY&type=goals&output=json"
API Parameters
Common API parameters:
| Parameter | Description |
|---|---|
site_id |
Your Clicky site ID |
sitekey |
Your API key |
type |
Data type (visitors, pages, goals, etc.) |
date |
Date range (today, yesterday, last-7-days, etc.) |
output |
Response format (json, xml, csv) |
limit |
Number of results to return |
Building Custom Dashboards
Use the API to create custom reporting:
// Example: Fetch and display visitor data
async function getClickyData() {
const response = await fetch(
`https://api.clicky.com/api/stats/4?site_id=${SITE_ID}&sitekey=${API_KEY}&type=visitors&date=last-7-days&output=json`
);
const data = await response.json();
return data;
}
// Process and display
getClickyData().then(data => {
console.log('Weekly visitors:', data);
updateDashboard(data);
});
Twitter/X Analytics
Connecting Twitter Analytics
Clicky can track engagement from Twitter/X:
- Go to Preferences → Twitter
- Authorize Clicky to access your Twitter account
- Configure tracking options:
- Track mentions of your domain
- Monitor branded hashtags
- Track link clicks from Twitter
Viewing Twitter Data
Once connected, Twitter data appears in:
- Traffic Sources: See Twitter as a referral source with engagement metrics
- Twitter Reports: Dedicated reports showing tweets that drive traffic
- Real-time Feed: Watch Twitter visitors arrive in real-time
Analytics Platform Integrations
Data Warehouse Export
Export Clicky data to your data warehouse:
- Use the API to pull historical data
- Set up scheduled exports with a cron job or serverless function
- Transform data as needed for your warehouse schema
# Example: Python script for data export
import requests
import json
def export_clicky_data(date_range):
api_url = f"https://api.clicky.com/api/stats/4"
params = {
'site_id': SITE_ID,
'sitekey': API_KEY,
'type': 'pages',
'date': date_range,
'output': 'json',
'limit': 1000
}
response = requests.get(api_url, params=params)
return response.json()
# Export and save
data = export_clicky_data('last-30-days')
with open('clicky_export.json', 'w') as f:
json.dump(data, f)
BI Tool Connections
Connect Clicky data to business intelligence platforms:
- Tableau: Use web data connector or API-based data source
- Power BI: Create a custom connector or use API calls
- Looker: Build a custom LookML model around API exports
- Google Data Studio: Use a community connector or API
White-Label Integration
Agency Setup
For agencies managing multiple client sites:
- Create a parent account with white-label access
- Add client sites under your account
- Configure custom branding:
- Custom domain for dashboards
- Logo replacement
- Color scheme customization
- Set up client access with appropriate permissions
Embedded Analytics
Embed Clicky dashboards in your own applications:
<!-- Embed a Clicky widget -->
<iframe
src="https://clicky.com/stats/widget?site_id=YOUR_SITE_ID&type=visitors"
width="400"
height="300"
frameborder="0">
</iframe>
Troubleshooting Integrations
Common Issues
Plugin not tracking:
- Verify Site ID is entered correctly
- Check for JavaScript conflicts with other plugins
- Ensure tracking code appears in page source
API returning errors:
- Confirm API key permissions
- Check rate limit status
- Validate date format in requests
Slack notifications not arriving:
- Test webhook URL independently
- Verify alert configuration in Clicky
- Check Slack channel permissions
Testing Integrations
- Install integration on a test environment first
- Use Clicky's real-time dashboard to verify data flow
- Test all configured events and alerts
- Document any customizations for future reference