PostHog support (#313)

This commit is contained in:
Juan José Mata
2025-11-11 16:06:08 +01:00
committed by GitHub
parent c47a790ad9
commit fcf792b560
7 changed files with 36 additions and 0 deletions

View File

@@ -27,5 +27,9 @@
<link rel="apple-touch-icon" href="/logo-pwa.png">
<link rel="apple-touch-icon" sizes="512x512" href="/logo-pwa.png">
<% if Rails.env.production? && (posthog_config = Rails.configuration.x.posthog).try(:api_key).present? %>
<%= render "shared/posthog", posthog_api_key: posthog_config.api_key, posthog_host: posthog_config.host %>
<% end %>
<%= yield :head %>
</head>