Skip to content

Commit 0d35eac

Browse files
committed
Added Google Analytics
1 parent 27b733a commit 0d35eac

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.lektorproject

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ target = ghpages+https://creativecommons/creativecommons.github.io
66

77
[packages]
88
lektor-markdown-header-anchors = 0.3.1
9+
lektor-google-analytics = 0.1.3

configs/google-analytics.ini

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GOOGLE_ANALYTICS_ID = UA-2010376-37

templates/layout.html

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<script type="text/javascript" src="{{ '/static/script.js'|url }}"></script>
1111
<title>{% block title %}Welcome{% endblock %} — Creative Commons on GitHub</title>
1212
<body>
13+
<div class="ga-script">{{ generate_google_analytics() }}</div>
1314
<header class="main-header">
1415
<div class="container-fluid">
1516
<div class="row justify-content-md-center">

0 commit comments

Comments
 (0)