Skip to content

Commit

Permalink
ignore facebook traffic in tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Sep 23, 2024
1 parent 6d1ff97 commit 48e2008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/nginx-goodbot200.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if ($uri = "/_tracking") {
set $botstracking 1;
}

if ($http_user_agent ~ 'Googlebot/|Y!J|Yeti|Bytespider|Applebot|HeadlessChrome') {
if ($http_user_agent ~ 'Googlebot/|Y!J|Yeti|Bytespider|Applebot|HeadlessChrome|facebook') {
set $botstracking "${botstracking}1";
}

Expand Down

0 comments on commit 48e2008

Please sign in to comment.