Skip to content

Commit

Permalink
remove analytics include; it is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
cantsin committed Jun 12, 2024
1 parent d9484ad commit bd07580
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
15 changes: 0 additions & 15 deletions _includes/analytics.html

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
<head>
{% include "meta.html" %}
{% include "styles.html" %}
{% comment %}
Removing this include because it conflicts with (duplicates) "scripts.html",
included in many places.
{% if site.google-analytics.ua or site.dap.agency %}
{% include "analytics.html" %}
{% endif %}
{% endcomment %}
</head>
<body class="{{ layout.class }} {{ page.class }} {% if site.site_width %}site-{{ site.site_width }}{% endif %}">

Expand Down Expand Up @@ -38,8 +31,6 @@ <h2 class="font-heading-xl margin-top-0 tablet:margin-bottom-0">{{ page.tagline
{% endif %}

{% include "footer.html" %}

{% include "scripts.html" %}

</body>
</html>
5 changes: 1 addition & 4 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

<!-- Digital Analytics Program roll-up, see https://analytics.usa.gov for data -->
{% if site.dap.agency %}
<script
id="_fed_an_ua_tag"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency={{ site.dap.agency }}{% if site.dap.subagency %}&subagency={{ site.dap.subagency }}{% endif %}"
></script>
<script id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency={{ site.dap.agency }}{% if site.dap.subagency %}&subagency={{ site.dap.subagency }}{% endif %}"></script>
{% endif %}

{% if site.google-analytics.ua %}
Expand Down

0 comments on commit bd07580

Please sign in to comment.