Merge pull request #2 from jwetzell/add-ads

add adsense script
This commit is contained in:
2021-12-17 22:53:10 -06:00
committed by GitHub
4 changed files with 21 additions and 2 deletions
+8
View File
@@ -5826,6 +5826,14 @@
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
"dev": true
},
"ng2-adsense": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/ng2-adsense/-/ng2-adsense-10.1.0.tgz",
"integrity": "sha512-S5wDPSzohmwUGhXn5foPz1mWx/ED2v3OtXmmA+m2DUAAiIDzVBLE6Zo9Bimlix3Z0wPo0oWPJo+qfs19mGKVxA==",
"requires": {
"tslib": "^2.3.0"
}
},
"nice-napi": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz",
+1
View File
@@ -19,6 +19,7 @@
"@angular/platform-browser-dynamic": "~13.0.0",
"@angular/router": "~13.0.0",
"luxon": "^2.1.1",
"ng2-adsense": "^10.1.0",
"rxjs": "~7.4.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
+4
View File
@@ -9,6 +9,7 @@ import { TimezoneListComponent } from './timezone/components/timezone-list/timez
import { FiveoclockComponent } from './fiveoclock/fiveoclock.component';
import { TimezoneSingleComponent } from './timezone/components/timezone-single/timezone-single.component';
import { GoogleAnalyticsService } from './services/google-analytics.service';
import { AdsenseModule } from 'ng2-adsense';
@NgModule({
declarations: [
AppComponent,
@@ -20,6 +21,9 @@ import { GoogleAnalyticsService } from './services/google-analytics.service';
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
AdsenseModule.forRoot({
adClient: 'ca-pub-2890427503516323',
})
],
providers: [
TimezoneService,
+8 -2
View File
@@ -1,5 +1,6 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>itsfiveoclockwhere</title>
@@ -10,13 +11,18 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=G-48B6CKS0V6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-48B6CKS0V6');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2890427503516323"
crossorigin="anonymous"></script>
</head>
<body>
<app-root></app-root>
</body>
</html>
</html>