Skip to content

Commit 41872f6

Browse files
committed
fix(demo): minor
1 parent 7cb6b2d commit 41872f6

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

projects/angular-material-extensions/input-counter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"release-it": {
5959
"github": {
60-
"release": false
60+
"release": true
6161
},
6262
"npm": {
6363
"publish": true,

src/app/app.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
22
import {MatDialog} from '@angular/material/dialog';
33
import {CustomizeDialogComponent, InputCounterOptions} from './dialogs/customize-dialog/customize-dialog.component';
44
import {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() {

src/index.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,23 @@
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>

0 commit comments

Comments
 (0)