Skip to content

Commit

Permalink
Add user authentication state to data layer
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatcherK committed Jan 15, 2024
1 parent b9f5a32 commit 2464e13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions di_website/templates/layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NH32T6V"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script src="{% static 'js/admin_user.js' %}" type="application/javascript"
defer
data-user="{{ request.user.is_authenticated }}"></script>
{% wagtailuserbar %}
<div class="ui-base">
{% cookie_notice %}
Expand Down

0 comments on commit 2464e13

Please sign in to comment.