|
| 1 | +# Countly times-of-day plugin |
| 2 | + |
| 3 | +The Times of Day plugin provides a visual representation of user activity based on local time, offering a scatter plot chart that shows when sessions and events occur across different days of the week. |
| 4 | + |
| 5 | +## File Structure |
| 6 | + |
| 7 | +```javascript |
| 8 | +times-of-day/ |
| 9 | +├── api/ # Backend API logic |
| 10 | +│ └── api.js # Main API file handling backend requests and responses |
| 11 | +├── frontend/ # Frontend resources |
| 12 | +│ ├── public/ # Publicly accessible resources |
| 13 | +│ │ ├── images/ # Images used in the plugin |
| 14 | +│ │ │ └── times-of-day/ # Folder for times-of-day related images |
| 15 | +│ │ │ └── times-of-day.svg # SVG image for times-of-day widget |
| 16 | +│ │ ├── javascripts/ # JavaScript files for frontend logic |
| 17 | +│ │ │ ├── countly.models.js # Model definitions for data handling |
| 18 | +│ │ │ ├── countly.views.component.common.js # Common view component logic |
| 19 | +│ │ │ └── countly.views.js # View definitions for rendering |
| 20 | +│ ├── localization/ # Localization files for multi-language support |
| 21 | +│ ├── stylesheets/ # Stylesheets for styling the plugin |
| 22 | +│ │ ├── main.css # Compiled CSS for styling |
| 23 | +│ │ ├── main.css.map # Source map for the CSS file |
| 24 | +│ │ └── main.scss # Main SCSS stylesheet |
| 25 | +│ ├── templates/ # HTML templates for UI components |
| 26 | +│ │ ├── times-of-day-widget-drawer.html # Drawer template for the times-of-day widget |
| 27 | +│ │ ├── times-of-day-widget.html # Main template for the times-of-day widget |
| 28 | +│ │ └── times-of-day.html # Template for times-of-day display |
| 29 | +├── app.js # Main application logic for the frontend |
| 30 | +├── install.js # Installation script for the plugin |
| 31 | +├── package-lock.json # Lock file for Node.js dependencies |
| 32 | +├── package.json # Package configuration file for Node.js |
| 33 | +├── tests.js # Test scripts for validating functionality |
| 34 | +└── uninstall.js # Uninstallation script for removing the plugin |
| 35 | +``` |
| 36 | + |
| 37 | +## Key Features |
| 38 | + |
| 39 | +- **Visual User Activity Mapping**: TDisplays a scatter plot chart showing when user sessions and events occur throughout the day, providing a clear visual representation of user activity patterns. |
| 40 | +- **Data Type Filters**: Allows filtering the data by Sessions, Events, Consent, and Push Actioned, giving flexibility in analyzing different types of user interactions |
| 41 | +- **Custom Time Ranges**: Enables selection of different time periods (e.g., All Time, Last 30 Days) to adjust the data view to fit your specific analysis needs. |
| 42 | +- **Localized Time Representation**: Displays user activity based on their local time zone, making it easier to track engagement across different regions |
| 43 | + |
| 44 | +## Installation |
| 45 | + |
| 46 | +1. Navigate to the directory where the times-of-day plugin is located. This could be a relative or absolute path depending on your environment setup: |
| 47 | + |
| 48 | + ```bash |
| 49 | + cd /path/to/your/project/times-of-day |
| 50 | + ``` |
| 51 | + |
| 52 | +2. Install dependencies: |
| 53 | + |
| 54 | + ```bash |
| 55 | + npm install |
| 56 | + ``` |
0 commit comments