1
0
mirror of https://github.com/privacyguides/privacyguides.org.git synced 2025-09-14 22:18:46 +00:00

feat: Track page views in Ghost (#3123)

This commit is contained in:
2025-09-13 13:03:13 -05:00
parent f616c94bd6
commit ee51ff205b
3 changed files with 25 additions and 2 deletions

View File

@@ -28,6 +28,9 @@ edit_uri_template: blob/main/blog/{path}?plain=1
extra:
scope: /
ghost:
data_host: https://www.privacyguides.org/.ghost/analytics/api/v1/page_hit
tb_site_uuid: 5f3bdb03-a1af-4844-85ca-cbc82c89eb9a
privacy_guides:
footer:
intro:

View File

@@ -38,6 +38,9 @@ extra:
context: !ENV [BUILD_CONTEXT, "production"]
offline: !ENV [BUILD_OFFLINE, false]
deploy: !ENV DEPLOY_ID
ghost:
data_host: https://www.privacyguides.org/.ghost/analytics/api/v1/page_hit
tb_site_uuid: 5f3bdb03-a1af-4844-85ca-cbc82c89eb9a
privacy_guides:
footer:
intro:

View File

@@ -88,9 +88,26 @@
{% endif %}
{% if config.extra.context == "production" %}
<link href="https://www.privacyguides.org/webmentions/receive/" rel="webmention">
<meta http-equiv="onion-location" content="{{ page.canonical_url | replace("https://www.privacyguides.org", "http://www.xoe4vn5uwdztif6goazfbmogh6wh5jc4up35bqdflu6bkdc5cas5vjqd.onion") }}" />
{% if config.theme.language == "en" %}
<script defer src="/public/ghost-stats.min.js?v=8037af1487"
data-stringify-payload="false"
data-datasource="analytics_events"
data-storage="localStorage"
data-host="{{ config.extra.ghost.data_host }}"
tb_site_uuid="{{ config.extra.ghost.tb_site_uuid }}"
tb_post_uuid="undefined"
tb_post_type="null"
tb_member_uuid="undefined"
tb_member_status="undefined">
</script>
{% endif %}
{% endif %}
{% if page and page.meta and page.meta.schema %}
<script type="application/ld+json">
{{ page.meta.schema|tojson }}