Skip to content

Commit ade6960

Browse files
Added Google Analytics tracker
1 parent e95de51 commit ade6960

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Google tag (gtag.js) -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JS69WLHKJ2"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'G-JS69WLHKJ2');
9+
</script>

source/_includes/layouts/shader_page.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<html lang="en">
44
<head>
5+
{{ components.google_analytics() }}
6+
57
<meta charset="utf-8">
68
<title>{{ shader.title }} | Flutter Shaders</title>
79
<meta name="viewport" content="width=device-width, initial-scale=1.0">

source/how-shaders-work.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: Learn how shaders render pixels in Flutter.
66

77
<html lang="en">
88
<head>
9+
{{ components.google_analytics() }}
10+
911
<meta charset="utf-8">
1012
<title>{{ title }}</title>
1113
<meta name="viewport" content="width=device-width, initial-scale=1.0">

source/index.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: An inventory of shaders for Flutter developers to explore.
66

77
<html lang="en">
88
<head>
9+
{{ components.google_analytics() }}
10+
911
<meta charset="utf-8">
1012
<title>{{ title }}</title>
1113
<meta name="viewport" content="width=device-width, initial-scale=1.0">

source/usage-guide.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: Learn how to use sample code from fluttershaders.com.
66

77
<html lang="en">
88
<head>
9+
{{ components.google_analytics() }}
10+
911
<meta charset="utf-8">
1012
<title>{{ title }}</title>
1113
<meta name="viewport" content="width=device-width, initial-scale=1.0">

0 commit comments

Comments
 (0)