Skip to content

Commit 7516b54

Browse files
Add conditional tracking pixel (#126)
1 parent 67ec554 commit 7516b54

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/partials/body-end-scripts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<script data-sync-storage-key="preferred-tab" async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
33
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
44
<script async src="{{{uiRootPath}}}/js/vendor/zooming.js"></script>
5-
65
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
76
{{#with site.keys}}
87
{{#if (and algoliaAppId algoliaIndexName algoliaApiKey)}}
@@ -18,3 +17,4 @@
1817
{{/if}}
1918
{{/with}}
2019
{{> intercom}}
20+
{{> scarf}}

src/partials/scarf.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{#with site.keys.scarfTrackingPixel}}
2+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid={{this}}"
3+
style="display:none" />
4+
{{/with}}

0 commit comments

Comments
 (0)