https://github.com/anton-gustafsson/aurelia-hotjar
Tiny plugin to implement Hotjar into your aurelia web application written in typescript
https://github.com/anton-gustafsson/aurelia-hotjar
aurelia hotjar tracking typescript web
Last synced: 8 months ago
JSON representation
Tiny plugin to implement Hotjar into your aurelia web application written in typescript
- Host: GitHub
- URL: https://github.com/anton-gustafsson/aurelia-hotjar
- Owner: anton-gustafsson
- License: mit
- Created: 2022-12-07T19:23:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T09:32:43.000Z (about 2 years ago)
- Last Synced: 2025-04-01T15:09:11.956Z (8 months ago)
- Topics: aurelia, hotjar, tracking, typescript, web
- Language: TypeScript
- Homepage:
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aurelia-hotjar
Tiny plugin to implement Hotjar into your aurelia web application written in typescript
# Installation
```bash
npm install aurelia-hotjar
```
# Use / Example
```typescript
import { PLATFORM } from 'aurelia-pal';
import { HotjarConfig } from 'aurelia-hotjar';
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin(PLATFORM.moduleName('aurelia-hotjar'), (configuration: HotjarConfig) => {
configuration.id = 1234567;
});
aurelia.start().then(a => a.setRoot());
}
```
## Configuration
- **id**: Hotjar ID, this will be visible on the hotjar site
- **snippetVersion** (optional): Hotjar Snippet Version. The current Code Tracking version. Defaults to **6**
- **disabled** (optional): Feature flag to disable the plugin from adding tracking, could be used if you have multiple deployment environments. Defaults to **false**
You can learn more from [Understanding the Tracking Code](https://help.hotjar.com/hc/en-us/articles/115011639927-Understanding-the-Tracking-Code) in the Hotjar docs. Please note that in the tracking code
* Hotjar ID is called hjid
* Hotjar Snippet Version is called hjsv