File tree Expand file tree Collapse file tree
projects/angular-material-extensions/input-counter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 },
5858 "release-it" : {
5959 "github" : {
60- "release" : false
60+ "release" : true
6161 },
6262 "npm" : {
6363 "publish" : true ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
22import { MatDialog } from '@angular/material/dialog' ;
33import { CustomizeDialogComponent , InputCounterOptions } from './dialogs/customize-dialog/customize-dialog.component' ;
44import { FormControl , FormGroup } from '@angular/forms' ;
5+ import { Angulartics2GoogleAnalytics } from 'angulartics2/ga' ;
56
67@Component ( {
78 selector : 'app-root' ,
@@ -15,7 +16,8 @@ export class AppComponent implements OnInit {
1516 title = 'input-counter' ;
1617 options : InputCounterOptions = { min : 0 , max : 10 , step : 1 } ;
1718
18- constructor ( private dialog : MatDialog ) {
19+ constructor ( angulartics2GoogleAnalytics : Angulartics2GoogleAnalytics , private dialog : MatDialog ) {
20+ angulartics2GoogleAnalytics . startTracking ( ) ;
1921 }
2022
2123 openCustomizeDialog ( ) {
Original file line number Diff line number Diff line change 88 < link rel ="icon " type ="image/x-icon " href ="favicon.ico ">
99 < link href ="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap " rel ="stylesheet ">
1010 < 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+
1126</ head >
1227< body class ="mat-typography ">
13- < app-root > </ app-root >
28+ < app-root > </ app-root >
1429</ body >
1530</ html >
You can’t perform that action at this time.
0 commit comments