File: examples/

Recommend this page to a friend!
  Classes of Arturs Sosins   Countly Web SDK   examples/   Download  
File: examples/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Countly Web SDK
Track site accesses and errors the Countly API
Author: By
Last change: Update (#479)
Date: 3 months ago
Size: 1,412 bytes


Class file image Download

Countly Implementation Examples

This folder is filled with examples of Countly implementations to help you to get an idea how to integrate Countly into your own personal project too.

For all projects you should change 'YOUR_APP_KEY' value with your own application's app key, '' value with your own server url.

If you have not separated 'examples' folder from the 'COUNTLY-SDK-WEB' project folder nor made some changes to file names in the periphery, any path to countly.js or the plugins must be still correct.

But if you did make some changes you should check if the paths, like '../lib/countly.js', are correct or not inside the example files.

Generating Examples

You can use the to generate example implementations of Countly Web SDK for React or Angular. It also can create an example that can be used to demonstrate the symbolication for Web SDK.

To use the script:

# or python3

It would ask for the example you want to create (react/angular/symbolication/all). After it creates the example(s) you want, you will have to run the following command(s) to serve/run the example(s):

# For angular-example
cd angular-example
ng serve

# For react-example
cd react-example
npm start

# For symbolication-example
cd symbolication-example
npm run build
npm start