Skip to content

Commit

Permalink
added analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
clash82 committed Aug 27, 2024
1 parent c25269f commit 4838a52
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ Dzięki temu można poprawić czytelność zapisu, zachowując jednocześnie jeg
Strona domowa programu: [rbiblia.toborek.info](https://rbiblia.toborek.info)

Przewodnik opublikowany jest bezpłatnie w [trybie online](https://rbiblia.github.io/rbql/).
Wszelkie poprawki i propozycje w tym przewodniku będą bardzo mile widziane. Propozycje zmian oraz sugestie prosimy zgłaszać za pomocą opcji `Pull Request` lub poprzez utworzenie nowego `Issue` w [repozytorium na GitHubie](https://github.com/rBiblia/rbql-docs).
Wszelkie poprawki i propozycje w tym przewodniku będą bardzo mile widziane. Propozycje zmian oraz sugestie prosimy zgłaszać za pomocą opcji `Pull Request` lub poprzez utworzenie nowego `Issue` w [repozytorium na GitHubie](https://github.com/rBiblia/rbql).

Praca nad programem, tłumaczeniami oraz dokumentacją pochłania środki materialne. Jeżeli możesz, prosimy o [dobrowolne wsparcie projektu](https://rbiblia.toborek.info/donation/).

Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ theme:
name: readthedocs
features:
- navigation.expand
custom_dir: overrides

markdown_extensions:
- pymdownx.superfences:
Expand Down
20 changes: 20 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% extends "base.html" %}

{% block analytics %}
{{ super() }}

<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['disableAlwaysUseSendBeacon']);
_paq.push(['setRequestMethod', 'POST']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analityka.toborek.info/";
_paq.push(['setTrackerUrl', u+'rafal.html']);
_paq.push(['setSiteId', '35']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'rafal.js'; s.parentNode.insertBefore(g,s);
})();
</script>
{% endblock %}

0 comments on commit 4838a52

Please sign in to comment.