Hi @faiezmaaloul,
Thanks for using our plugins.
We have tested your site, and it seems the GTM script is injected properly, we recommend to remove the “async” from the script and check the implementation again.
If you have autoptimize plugin installed, you can try add the main,js to the exclude section, but it seem the autoptimize is not installed on the current site.
Instead of this:
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-Y\">
Try this one:
<script src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-Y\">
Hope this helps
Hi,
Thank you for your answer but the problem is not solved
Faïez
Hi @faiezmaaloul,
Could you please send us more details about the issue?
We have a section in the FAQ section related the issues like repoted:
Pasted code is not visible when view-source page is viewed.
Our plugin loads the script with Javascript, and that’s why you can’t find it in the view-source page.
You can use the developer console in Chrome browser (Inspect Element feature) and find the scripts.
You can check if the Google Tag Manager script working properly by enabling the preview on your GTM account, and refresh the page.
Hope this helps
Hello,
You are right
In fact, I looked for the tag in the script in the source-view page. that’s why I did not find it 🙂
Thank you
Faïez