I only want to display analytics on prod
continuous-integration/drone/push Build is failing Details

drafts
Nick Dumas 5 months ago
parent 6be29c485c
commit ef8c2e26f4

@ -1 +1,4 @@
<script defer data-domain="{{ index $.Site.Params.AnalyticsURL (urls.AbsURL "/")}}" src="https://analytics.ndumas.com/js/script.js"></script> {{ $baseURL = (urls.AbsURL "/") }}
i{{ if eq $baseURL "https://blog.ndumas.com" }}
<script defer data-domain="blog.ndumas.com" src="https://analytics.ndumas.com/js/script.js"></script>
{{ end }}

Loading…
Cancel
Save