Hi I'm adding my GA script code and its crashing. I'm using Flask framework V3.6. and This is the code I've added in my flask_app.py file . Please advice how can I add GA without crashing the site.
return '''
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-#######-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-#######-1');
</script>
</head>
<body>
{errors}
[edited by admin: code formatting]