Skip to content

Commit

Permalink
Only run Posthog in preprod (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEtchells committed Jul 17, 2024
1 parent 8b897d7 commit e933b5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions django_app/redbox_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
<script defer
event-environment="{{environment}}"
data-domain="redbox-dev.ai.cabinetoffice.gov.uk" src="https://plausible.io/js/script.pageview-props.tagged-events.outbound-links.file-downloads.local.js"></script>

<script type="module" src="{{ static('js/posthog.js') }}"></script>

{% elif environment | lower == "prod" %}
<script defer
data-domain="redbox.ai.cabinetoffice.gov.uk" src="https://plausible.io/js/script.pageview-props.tagged-events.outbound-links.file-downloads.js"></script>
{% endif %}

{% if environment | lower == "preprod" %}
<script type="module" src="{{ static('js/posthog.js') }}"></script>
{% endif %}

</head>

<body class="govuk-template__body">
Expand Down

0 comments on commit e933b5d

Please sign in to comment.