how to inject hotjar in angular 8 app as hotjar and npm is giving different methods?

Viewed 3769

I got the tracking code from hotjar and it is instruction is not working. I am trying to implement hotjar in a single-page app. The tracking code is a script and npm is giving this method to implement it.

import { NgxHotjarModule } from 'ngx-hotjar';


imports: [
    BrowserModule,
    NgxHotjarModule.forRoot('traking-code')
]
1 Answers

tracking code is a number on the site. See Site ID: hotjar tracking code for single page

NgxHotjarModule.forRoot('1821XXXX'),
Related