Countly Setup and Implementation | Blue Frog Docs

Countly Setup and Implementation

Complete guide to setting up and implementing Countly analytics in your applications.

Implementation Overview

This guide covers setting up Countly for web, mobile, and desktop applications. Choose your platform and follow the implementation steps.

 


 

Quick Start

1. Get Your Credentials

Cloud Users:

  1. Log into count.ly
  2. Navigate to Management → Applications
  3. Copy your App Key and Server URL

Self-Hosted:

  1. Access your Countly dashboard
  2. Go to Management → Applications
  3. Create or select your application
  4. Note the App Key (server URL is your Countly domain)

2. Install the SDK

Web:

<script type="text/javascript" src="https://cdn.count.ly/countly.min.js"></script>

npm:

npm install countly-sdk-web

Mobile:

# iOS (CocoaPods)
pod 'Countly'

# Android (Gradle)
implementation 'ly.count.android:sdk:23.+'

3. Initialize

Countly.init({
  app_key: 'YOUR_APP_KEY',
  url: 'https://your-countly-server.com'
});
Countly.track_sessions();

 


 

Detailed Guides

 


 

Platform Options

Self-Hosted

For complete data control:

# Docker installation
wget -qO- https://c.ly/install | bash

Or manual installation following official documentation.

 


 

Verification

After installation:

  1. Open your application
  2. Check Countly dashboard → Real-time
  3. Verify session appears
  4. Test an event:
Countly.add_event({ key: 'test_event', count: 1 });
  1. Confirm event appears in Events section
// SYS.FOOTER