akveo/ngx-admin

AnalyticsService check that ga function exists

Open

#5523 opened on Oct 2, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (24,990 stars) (7,916 forks)batch import
P4: nice to havebughelp wantedneeds triage

Description

Issue type

I'm submitting a ... (check one with "x")

  • [ X] bug report
  • feature request
  • question about the decisions made in the repository

Issue description

Current behavior:

error in console while ad-blocker is active

Expected behavior:

No error (or maybe a log that tells that GA is not available Steps to reproduce:

  1. Enable analytics
  2. Run when ad-blocker is on

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular

<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->

Contributor guide