revolunet/angular-google-analytics

Unknown Target: undefined

Closed this issue · 0 comments

Hello, I'm successfully connected to my GA account and I can see events in reports as expected. The problem is exception tracking is giving an unknown target error.

GA Config

 /*==========  Google Analytics Config  ==========*/
  AnalyticsProvider.setAccount([
    {
      tracker: 'UA-53819xxxx-xx',
      name: 'myTracker1',
      crossDomainLinker: true,
      crossLinkDomains: ['domain.com', 'domain1.com'],
      displayFeatures: true,
      enhancedLinkAttribution: true,
      trackEvent: true,
      trackEcommerce: false
    },
    {
      tracker: 'UA-53819xxxx-xx',
      name: 'myTracker2',
      crossDomainLinker: true,
      crossLinkDomains: ['domain1.com', 'domain.com'],
      displayFeatures: true,
      enhancedLinkAttribution: true,
      trackEvent: true,
      trackEcommerce: false
    }
  ]);

  AnalyticsProvider.setPageEvent('$stateChangeSuccess');
  AnalyticsProvider.trackPages(true);
  AnalyticsProvider.trackUrlParams(true);

Submit exception

Analytics.trackException('[701] Neighborhood not found', false);

Response:
ga_error