Skip to content

Commit

Permalink
Update google_analytics.html (#27226)
Browse files Browse the repository at this point in the history
fix bug #27225 - Tracking User Activity Issue: Google Analytics tag version is not up-to-date
#27225
  • Loading branch information
oleg-ruban authored Oct 27, 2022
1 parent 55f8a63 commit 5e6cec8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions airflow/www/templates/analytics/google_analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
under the License.
#}

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ analytics_id }}"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

ga('create', '{{ analytics_id }}', 'auto');
ga('send', 'pageview');
gtag('config', '{{ analytics_id }}');
</script>

0 comments on commit 5e6cec8

Please sign in to comment.