I asked our programmer add code snippet for Google Analytics. I said that he done this, but on the page I can see code as on attached picture. There no ; sign, all in one line. I think statistic doesn`t work properly. Am I right?
I expected that code of GTM and Google Analytics snippet look like this:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PP....WB');</script>
<!-- End Google Tag Manager -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
// Google Analytics
gtag('config', 'G-RQ......5');
// Google Ads
gtag('config', 'AW-10.....25');
</script>
BUT. When I press F12 on the page I can see this:
<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","GTM-PPS98NWB"),gtag("config","G-RQC7HK6LC5"),gtag("config","AW-10780629925")</script>
This doesn`t work as for my opinion.