Skip to content

Commit

Permalink
adjust tracking code as we're not getting data (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
insectengine authored Jul 26, 2023
1 parent 68f93f4 commit d95f9bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<title>{{ page.title }}{{ page_title_version_suffix }}{% unless page_title_starts_with_quarkus or page_title_ends_with_quarkus %} - Quarkus{% endunless %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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;" />
<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'
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;" />
<script id="adobe_dtm" src="https://www.redhat.com/dtm.js" type="text/javascript"></script>
<script src="{{ '/assets/javascript/highlight.pack.js' | relative_url }}" type="text/javascript"></script>
<META HTTP-EQUIV='X-XSS-Protection' CONTENT="1; mode=block">
Expand Down Expand Up @@ -55,7 +56,9 @@
{% for language in languages.subfolderitems %}
<link rel="alternate" hreflang="{{ language.code }}" href="{{ language.url | append: path }}" />
{% endfor %}
<link rel="alternate" hreflang="x-default" href="https://quarkus.io/" />
<link rel="alternate" hreflang="x-default" href="https://quarkus.io/" />
<script src="{{ site.baseurl }}/assets/javascript/tracking.js"></script>
<script src="https://analytics.ossupstream.org/matomo.js" async defer></script>
</head>

<body class="{% if page.url == '/' %}homepage{% else %}{{page.layout}}{% endif %}">
Expand Down
8 changes: 8 additions & 0 deletions assets/javascript/tracking.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var idSite = 4;
var matomoTrackingApiUrl = 'https://analytics.ossupstream.org/matomo.php';

var _paq = window._paq = window._paq || [];
_paq.push(['setTrackerUrl', matomoTrackingApiUrl]);
_paq.push(['setSiteId', idSite]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);

0 comments on commit d95f9bd

Please sign in to comment.