0.0.41 • Published 2 months ago
ngx-bmx-footprint v0.0.41
ngx-bmx-footprint
ngx-bmx-footprint is an Angular library which is used as a plugin to integrate bloomsight.io with Angular applications.
Import in app.module.ts
import { NgxBmxFootprintModule } from 'ngx-bmx-footprint';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
AppRoutingModule,
NgxBmxFootprintModule.forRoot({
propertyToken: 'your-property-token',
developmentMode: true //log output or not,
stopService: true // will stop website tracking
})
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Import in app.component.ts
This start tracking website visits for your angular application.
import {FootprintService} from 'ngx-bmx-footprint';
constructor(public footprintService: FootprintEventService) {}
Track a specific event such as click
In app.component.html
<button (click)="onClick()">Click</button>
In app.component.ts
import {FootprintEventService} from 'ngx-bmx-footprint';
constructor(public footprintService: FootprintEventService) {}
public onClick() {
// track event
this.footprintService.triggerEvent('your-event-token');
// track event with properties
// here the key is the name of the metadata that you mention during property creation
this.footprintService.triggerEvent('your-event-token', {
'key': 'data'
});
}
Send email
In component.html
<button (click)="onClick()">Click</button>
In component.ts
import {FootprintEventService} from 'ngx-bmx-footprint';
constructor(public footprintService: FootprintEventService) {}
public onClick() {
this.footprintService.sendMail(
'engineId',
'userId',
'templateId',
metadata // form data for your email
);
}
0.0.41
2 months ago
0.0.40
3 months ago
0.0.37
4 months ago
0.0.38
4 months ago
0.0.39
4 months ago
0.0.33
4 months ago
0.0.34
4 months ago
0.0.35
4 months ago
0.0.36
4 months ago
0.0.30
5 months ago
0.0.31
5 months ago
0.0.32
5 months ago
0.0.28
5 months ago
0.0.29
5 months ago
0.0.27
5 months ago
0.0.20
5 months ago
0.0.21
5 months ago
0.0.22
5 months ago
0.0.23
5 months ago
0.0.24
5 months ago
0.0.25
5 months ago
0.0.15
6 months ago
0.0.16
6 months ago
0.0.17
6 months ago
0.0.18
6 months ago
0.0.19
6 months ago
0.0.14
6 months ago
0.0.26
5 months ago
0.0.13
8 months ago
0.0.12
8 months ago
0.0.10
8 months ago
0.0.9
10 months ago
0.0.8
10 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
10 months ago
0.0.1
10 months ago