File tree 3 files changed +20
-3
lines changed
projects/angular-material-extensions/input-counter 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 57
57
},
58
58
"release-it" : {
59
59
"github" : {
60
- "release" : false
60
+ "release" : true
61
61
},
62
62
"npm" : {
63
63
"publish" : true ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
2
2
import { MatDialog } from '@angular/material/dialog' ;
3
3
import { CustomizeDialogComponent , InputCounterOptions } from './dialogs/customize-dialog/customize-dialog.component' ;
4
4
import { FormControl , FormGroup } from '@angular/forms' ;
5
+ import { Angulartics2GoogleAnalytics } from 'angulartics2/ga' ;
5
6
6
7
@Component ( {
7
8
selector : 'app-root' ,
@@ -15,7 +16,8 @@ export class AppComponent implements OnInit {
15
16
title = 'input-counter' ;
16
17
options : InputCounterOptions = { min : 0 , max : 10 , step : 1 } ;
17
18
18
- constructor ( private dialog : MatDialog ) {
19
+ constructor ( angulartics2GoogleAnalytics : Angulartics2GoogleAnalytics , private dialog : MatDialog ) {
20
+ angulartics2GoogleAnalytics . startTracking ( ) ;
19
21
}
20
22
21
23
openCustomizeDialog ( ) {
Original file line number Diff line number Diff line change 8
8
< link rel ="icon " type ="image/x-icon " href ="favicon.ico ">
9
9
< link href ="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap " rel ="stylesheet ">
10
10
< link href ="https://fonts.googleapis.com/icon?family=Material+Icons " rel ="stylesheet ">
11
+
12
+ <!-- Global site tag (gtag.js) - Google Analytics -->
13
+ < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-114342493-8 "> </ script >
14
+ < script >
15
+ window . dataLayer = window . dataLayer || [ ] ;
16
+
17
+ function gtag ( ) {
18
+ dataLayer . push ( arguments ) ;
19
+ }
20
+
21
+ gtag ( 'js' , new Date ( ) ) ;
22
+
23
+ gtag ( 'config' , 'UA-114342493-8' ) ;
24
+ </ script >
25
+
11
26
</ head >
12
27
< body class ="mat-typography ">
13
- < app-root > </ app-root >
28
+ < app-root > </ app-root >
14
29
</ body >
15
30
</ html >
You can’t perform that action at this time.
0 commit comments