Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
🔒️ Fix a security risk
Browse files Browse the repository at this point in the history
  • Loading branch information
Thecode764 committed Jun 8, 2024
1 parent 16503e9 commit b36d3a4
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions mirror/directory-lister/app/views/components/analytics/google.twig
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config("google_analytics_id") }}"></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id={{ config('google_analytics_id') }}"
></script>

<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
{% if config('google_analytics_id', false) %}
gtag('config', '{{ config("google_analytics_id") }}');
{% endif %}
{% if config('google_analytics_id', false) %}
gtag('config', '{{ config("google_analytics_id") }}');
{% endif %}
</script>

0 comments on commit b36d3a4

Please sign in to comment.