Skip to content

Commit 4e7c7f0

Browse files
committedDec 14, 2017
Added GA tracking code.
1 parent 576403e commit 4e7c7f0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎index.html

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111

1212
<meta name="theme-color" content="#1f2c79">
1313

14+
<!-- Global site tag (gtag.js) - Google Analytics -->
15+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-111260700-1"></script>
16+
<script>
17+
window.dataLayer = window.dataLayer || [];
18+
function gtag(){dataLayer.push(arguments);}
19+
gtag('js', new Date());
20+
21+
gtag('config', 'UA-111260700-1');
22+
</script>
23+
1424
<script type="application/javascript">
1525
if ('serviceWorker' in navigator) {
1626
navigator.serviceWorker.register('service-worker.js').then(function(registration) {

‎manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "PWA Demo for DrupalCamp Krasnodar 2017",
33
"short_name": "PWA Demo",
4-
"start_url": "./?utm_source=homescreen",
4+
"start_url": "./?utm_source=app_manifest",
55
"display": "standalone",
66
"theme_color": "#1f2c79",
77
"background_color": "#ffffff",

0 commit comments

Comments
 (0)
Please sign in to comment.