mzuccaroli / angular-google-tag-manager

A service library for integrate google tag manager in your angular project
https://itnext.io/how-to-add-google-tag-manager-to-an-angular-application-fc68624386e2
MIT License
136 stars 78 forks source link

Dublicated tag fire #150

Closed yalesnikov closed 1 year ago

yalesnikov commented 1 year ago

Hi, can you help me?

Why when I call gtm_pushTag method by one time, event fires a lot of times?

constructor(private _gtm: GoogleTagManagerService) { }
setGTMCustomEvent(event: string, category?: string, label?: string): void {
    this._gtm.pushTag({event, category, label}).then()
}
test