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:
@@ -28,6 +28,9 @@ edit_uri_template: blob/main/blog/{path}?plain=1
|
|||||||
|
|
||||||
extra:
|
extra:
|
||||||
scope: /
|
scope: /
|
||||||
|
ghost:
|
||||||
|
data_host: https://www.privacyguides.org/.ghost/analytics/api/v1/page_hit
|
||||||
|
tb_site_uuid: 5f3bdb03-a1af-4844-85ca-cbc82c89eb9a
|
||||||
privacy_guides:
|
privacy_guides:
|
||||||
footer:
|
footer:
|
||||||
intro:
|
intro:
|
||||||
|
@@ -38,6 +38,9 @@ extra:
|
|||||||
context: !ENV [BUILD_CONTEXT, "production"]
|
context: !ENV [BUILD_CONTEXT, "production"]
|
||||||
offline: !ENV [BUILD_OFFLINE, false]
|
offline: !ENV [BUILD_OFFLINE, false]
|
||||||
deploy: !ENV DEPLOY_ID
|
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:
|
privacy_guides:
|
||||||
footer:
|
footer:
|
||||||
intro:
|
intro:
|
||||||
|
@@ -88,9 +88,26 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if config.extra.context == "production" %}
|
{% 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") }}" />
|
<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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page and page.meta and page.meta.schema %}
|
{% if page and page.meta and page.meta.schema %}
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{{ page.meta.schema|tojson }}
|
{{ page.meta.schema|tojson }}
|
||||||
|
Reference in New Issue
Block a user