Skip to content

Commit 5b3fc60

Browse files
authored
Adding GA code to docs and page (#22)
* Adding GA code to docs and page * Removed GA plugin * New GA4 code
1 parent 6e887df commit 5b3fc60

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ htmlcov
1414
page/config.toml
1515
page/docs/*
1616
docs/source_v/*
17-
page/resources
17+
page/resources
18+
.DS_Store

.gitlab-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ variables:
2020
SPHINX_VERSION: 3.2.1
2121
DOC_PORT_PREFIX: 11
2222
HUGO_VERSION: 0.76.3-ext-ubuntu
23+
HUGO_ENV: production
2324
PIP_SNAPSHOT_REPO: https://zsibio.ii.pw.edu.pl/nexus/repository/bdg-pip/simple
2425
PAGE_URL: pysequila.biodatageeks.org
2526
SEQUILA_VERSION: 0.5.17

docs/source/_templates/layout.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block footer %}
4+
{{ super() }}
5+
6+
<!-- Global site tag (gtag.js) - Google Analytics -->
7+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6V036X79CK"></script>
8+
<script>
9+
window.dataLayer = window.dataLayer || [];
10+
function gtag(){dataLayer.push(arguments);}
11+
gtag('js', new Date());
12+
13+
gtag('config', 'G-6V036X79CK');
14+
</script>
15+
16+
{% endblock %}

docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@
7171

7272

7373
# -- Extension configuration -------------------------------------------------
74+

page/config-template.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ anchor = "smart"
4848
[services]
4949
[services.googleAnalytics]
5050
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
51-
id = "UA-00000000-0"
51+
id = "UA-111293006-2"
5252

5353
# Language configuration
5454

0 commit comments

Comments
 (0)