0.0.41 • Published 1 year ago

ngx-bmx-footprint v0.0.41

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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

1 year ago

0.0.40

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.27

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.14

2 years ago

0.0.26

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago