Skip to content

Commit

Permalink
fix: Facebook Pixel lightweight implementation (remove noscript)
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Carneiro committed Feb 1, 2024
1 parent f2a67cf commit 0be7622
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions layouts/partials/footer/facebook-pixel-light.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{{/*
<!--
Facebook Pixel lightweight implementation for ViewContent event
Facebook Pixel lightweight implementation for PageView event
https://developers.facebook.com/docs/meta-pixel/advanced#installing-the-pixel-using-an-img-tag
-->
*/}}
{{- with $.Site.Params.facebookPixel }}
<noscript>
<img src="https://www.facebook.com/tr?id={{ . }}&ev=ViewContent" height="1" width="1" style="display:none"/>
</noscript>
<img height="1" width="1" src="https://www.facebook.com/tr?id={{ . }}&ev=PageView" style="display:none"/>
{{ end }}

0 comments on commit 0be7622

Please sign in to comment.