Questions tagged [angulartics2]

25 questions
3
votes
1 answer

Angulartics2 initial setup

can someone explain to me how to set-up angulartics2 in angular 5??? I have read so many different variations that I am not sure what is currently working anymore. I would like to hook it to Google analytics.
3
votes
2 answers

Angular2 : EXCEPTION: No provider for Angulartics2GoogleAnalytics

I am trying to use angulartics2 with my application. I have configured correctly as it mentioned in the document. Note: There is no place it is mentioned to add the provider as a dependency.. When i try to run the application, it shows the error…
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
2
votes
1 answer

angulartics2 custom events are sent to facebook but not to google analytics

I use angulartics2 with an angular7 project to fire events to facebook and google analytics. I have facebook and google analytics configured using google tag manager. the problem is my custom events are fired and sent to facebook but not to google…
ufk
  • 30,912
  • 70
  • 235
  • 386
2
votes
0 answers

How to implement content track using piwik/matomo + angulartics2

Technology Angular 6.0.9, Angular CLI: 6.0.8 Plugin angulartics2 ^6.2.0 Vendor plugin angulartics-piwik I'm about to capture my page specific block content into piwik/matomo using angulartics2 but I can't figure out OR unable to do that. I…
USS
  • 460
  • 4
  • 16
2
votes
0 answers

angulartics2 with piwik is tracking an url with double #

I have integrated angulartics2 with Piwik in my angular 5 application & successfully found the URL tracks in the Piwik admin module after observing the URL tracked I found that http://localhost:4200/#/app/#/app/main-route/sub-route. Below is the…
Sampat
  • 304
  • 2
  • 5
  • 13
1
vote
2 answers

Google Global Site Tag: how to override page referrer

I set up Google Global Site Tag for an Angular SPA. I'd like to override the page referrer that is passed to Google. Use case: after logging in (using oAuth2), the user is redirected to the app. At this point, the url contains sensitive auth data…
fikkatra
  • 5,605
  • 4
  • 40
  • 66
1
vote
1 answer

Angular angulartics2 (google analytics) does not update page on route change

I made a site with Angular 8 and Angular Universal and Angular Service Worker. I wanted to add Google Analytics and I found the npm module Angulartics2. I think it partially works, with Google Tag Manager, but it does not recognize the route change.…
1
vote
1 answer

Property 'startTracking' does not exist on type 'Angulartics2GoogleAnalytics'

I've followed the readme of https://github.com/angulartics/angulartics2. but I get the error: ERROR in src/app/app.component.ts(21,33): error TS2339: Property 'startTracking' does not exist on type 'Angulartics2GoogleAnalytics'. I'm assuminging I…
Mimeer
  • 81
  • 1
  • 9
1
vote
1 answer

How to change default `Page View` name

Is it possible to change default name of page view event tracked after importing Angulartics2GoogleTagManager in app.component? Rigth now its Page View and I need to change the name.
1
vote
1 answer

Angulartics2 run error on build with Piwik

After updating Angulartics2 to 7.0.2 and run my project, it throws an error as follows: Type '(typeof Angulartics2Piwik)[]' has no properties in common with type 'Partial'. I've imported everything in app module and component…
Hassan Chmsdn
  • 172
  • 1
  • 14
1
vote
1 answer

How I can track `ecommerce:addItem` or `ecommerce:addTransaction` by angulartics2?

I use angulartics2 for tracking pageviews. How I can track ecommerce:addItem or ecommerce:addTransaction by angulartics2 in angular 5 application? Or maybe I can implement it more native? p.s. I added ga('require', 'ecommerce');
Art Olshansky
  • 3,032
  • 1
  • 19
  • 25
1
vote
0 answers

Mix Panel Integration with Angular 2

I am trying to Integrate my angular project with Mix Panel. For this purpose I tried a lot of online solutions provided but problem is that the solutions provided are either outdated or give incomplete or ambiguous information. Can anybody give a…
Shoaib Iqbal
  • 2,420
  • 4
  • 26
  • 51
1
vote
1 answer

Angular application analytics measuring using Angulartics2 custom provider

We want to track URL changes and different events in our Angular (v5.1) application. We need to receive the collected data to our own server, and not to one of the supported providers (like Google Analytics). It seems that Angulartics2 supports a…
Guy
  • 1,547
  • 1
  • 18
  • 29
1
vote
1 answer

Need to configure tracking code for Angulartics2

I'm using Angulartics2. I'm trying to set tracking code dynamically to have something like this: ga('create', environment.trackingCode, 'auto'); But I couldn't find a way to do that. I absolutely need to read this variable from environment.ts Is…
Ghita
  • 169
  • 1
  • 1
  • 14
1
vote
1 answer

How to pass ecommerce object in Angulartics2 eventTrack(this.angulartics2.eventTrack.next({ action: 'myAction', properties: {myproperties})?

I am able to send basic event to ga using angulartics2 eventtrack as follows, this.angulartics2.eventTrack.next({ action: 'myAction', properties: { category: 'myCategory', label: 'mylabel', value: 'myvalue' }}) If I pass ecommerce object to the…
1
2