Skip to content

Commit 43517d2

Browse files
authored
Add Scarf Pixel to Airflow RTD Theme (#1012)
Similar to apache/superset#25065 and apache/airflow#39510 but this one doesn't need to wait for the VOTE since this adds a simple transparent tracking pixel. More detail in https://docs.scarf.sh/web-traffic/ All of this data will be available in Scarf, creds for which are shared to 1password for PMC members, and can be reported periodically in things like Town Hall or newsletters.
1 parent 794197f commit 43517d2

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

landing-pages/site/layouts/partials/hooks/head-end.html

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
})();
4747
</script>
4848
<!-- End Matomo Code -->
49+
<!-- Scarf Telemetry Pixel -->
50+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=7265a3c4-a6dd-4933-ba8b-9e3c13903c60" />
51+
<!-- End Scarf Telemetry Pixel -->
4952

5053
{{ with .Site.Data.webpack }}
5154
<link rel="preload" href="{{ relURL .main.js }}" as="script">

sphinx_airflow_theme/sphinx_airflow_theme/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from os import path
1919
from sphinx.application import Sphinx
2020

21-
__version__ = '0.0.12'
21+
__version__ = '0.0.13'
2222
__version_full__ = __version__
2323

2424

sphinx_airflow_theme/sphinx_airflow_theme/layout.html

+3
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@
317317
})();
318318
</script>
319319
<!-- End Matomo Code -->
320+
<!-- Scarf Telemetry Pixel -->
321+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=7265a3c4-a6dd-4933-ba8b-9e3c13903c60" />
322+
<!-- End Scarf Telemetry Pixel -->
320323
{%- block extrahead %}
321324

322325
{% endblock %}

0 commit comments

Comments
 (0)