Skip to content

Commit

Permalink
Add conditional tracking pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-schneider committed May 1, 2024
1 parent 567723b commit 7e0b274
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/partials/body.hbs
Original file line number Diff line number Diff line change
@@ -11,3 +11,4 @@
</div>
</div>
{{> body-end-scripts}}
{{> tracking-pixel}}
4 changes: 4 additions & 0 deletions src/partials/tracking-pixel.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{#with site.keys.scarfTrackingPixel}}
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid={{this}}"
style="display:none" />
{{/with}}

0 comments on commit 7e0b274

Please sign in to comment.