Skip to content

Commit d95f9bd

Browse files
authored
adjust tracking code as we're not getting data (#1758)
1 parent 68f93f4 commit d95f9bd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: _layouts/base.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
<title>{{ page.title }}{{ page_title_version_suffix }}{% unless page_title_starts_with_quarkus or page_title_ends_with_quarkus %} - Quarkus{% endunless %}</title>
2121
<meta charset="utf-8">
2222
<meta name="viewport" content="width=device-width, initial-scale=1">
23-
<meta http-equiv="Content-Security-Policy" content="default-src https://dpm.demdex.net; script-src 'self' 'unsafe-eval' 'sha256-ANpuoVzuSex6VhqpYgsG25OHWVA1I+F6aGU04LoI+5s=' 'sha256-ipy9P/3rZZW06mTLAR0EnXvxSNcnfSDPLDuh3kzbB1w=' js.bizographics.com https://www.redhat.com https://static.redhat.com assets.adobedtm.com jsonip.com https://ajax.googleapis.com https://use.fontawesome.com https://app.mailjet.com http://www.youtube.com http://www.googleadservices.com https://googleads.g.doubleclick.net https://dpm.demdex.net https://giscus.app; style-src 'self' https://fonts.googleapis.com https://use.fontawesome.com; img-src 'self' *; media-src 'self'; frame-src https://www.youtube.com https://embed.restream.io https://app.mailjet.com http://xy0p2.mjt.lu https://mj.quarkus.io https://giscus.app; base-uri 'none'; object-src 'none'; form-action 'none'; font-src 'self' https://use.fontawesome.com https://fonts.gstatic.com;" />
23+
<meta http-equiv="Content-Security-Policy" content="default-src https://dpm.demdex.net https://analytics.ossupstream.org; script-src 'self' 'unsafe-eval' 'sha256-ANpuoVzuSex6VhqpYgsG25OHWVA1I+F6aGU04LoI+5s=' 'sha256-ipy9P/3rZZW06mTLAR0EnXvxSNcnfSDPLDuh3kzbB1w=' js.bizographics.com https://www.redhat.com https://static.redhat.com assets.adobedtm.com jsonip.com https://ajax.googleapis.com https://use.fontawesome.com https://app.mailjet.com http://www.youtube.com http://www.googleadservices.com https://googleads.g.doubleclick.net https://dpm.demdex.net https://giscus.app https://analytics.ossupstream.org; style-src 'self' https://fonts.googleapis.com https://use.fontawesome.com; img-src 'self'
24+
https://analytics.ossupstream.org *; media-src 'self'; frame-src https://www.youtube.com https://embed.restream.io https://app.mailjet.com http://xy0p2.mjt.lu https://mj.quarkus.io https://giscus.app; base-uri 'none'; object-src 'none'; form-action 'none'; font-src 'self' https://use.fontawesome.com https://fonts.gstatic.com;" />
2425
<script id="adobe_dtm" src="https://www.redhat.com/dtm.js" type="text/javascript"></script>
2526
<script src="{{ '/assets/javascript/highlight.pack.js' | relative_url }}" type="text/javascript"></script>
2627
<META HTTP-EQUIV='X-XSS-Protection' CONTENT="1; mode=block">
@@ -55,7 +56,9 @@
5556
{% for language in languages.subfolderitems %}
5657
<link rel="alternate" hreflang="{{ language.code }}" href="{{ language.url | append: path }}" />
5758
{% endfor %}
58-
<link rel="alternate" hreflang="x-default" href="https://quarkus.io/" />
59+
<link rel="alternate" hreflang="x-default" href="https://quarkus.io/" />
60+
<script src="{{ site.baseurl }}/assets/javascript/tracking.js"></script>
61+
<script src="https://analytics.ossupstream.org/matomo.js" async defer></script>
5962
</head>
6063

6164
<body class="{% if page.url == '/' %}homepage{% else %}{{page.layout}}{% endif %}">

Diff for: assets/javascript/tracking.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var idSite = 4;
2+
var matomoTrackingApiUrl = 'https://analytics.ossupstream.org/matomo.php';
3+
4+
var _paq = window._paq = window._paq || [];
5+
_paq.push(['setTrackerUrl', matomoTrackingApiUrl]);
6+
_paq.push(['setSiteId', idSite]);
7+
_paq.push(['trackPageView']);
8+
_paq.push(['enableLinkTracking']);

0 commit comments

Comments
 (0)