![]() |
| Resim yazısı ekle |
Merhaba, Blogunuza Google Analisytic kodu eklemek istediniz. Google analiystic üzerinden kodu aldınız ve blogger.com dan girişi yapıp tema düzenleme sayfasın açtınız html yapıda. </head> ın üzerine kodu yapıtırdığınıza şu şekilde hata verecektir. " Attribute name "async" associated with an element type "script" must be followed by the ' = ' character."
Çözüm: <script async src=' ile başlayan kodda async="async" gibi bir değişiklik yapmak. Google adsense de de aynı hata mevcutmuş. sizlerde böyle bir yol izleyebilkirsiniz.
Mevcut kod:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-108926156-1'></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-108926156-1');
</script>
Hata Giderilmiş hali:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async='async' src='https://www.googletagmanager.com/gtag/js?id=UA-108926156-1'></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-108926156-1');
</script>
Google Analisytic Attribute name "async" hatası
Google Analisytic Attribute name "async" çözümü
Google Adsense Attribute name "async" hatası
Google Adsense Attribute name "async" çözümü

0 on: "Attribute name "async" hatası | Çözüldü"