[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Google Analytics with eprints



Move at least the second <script> part inside the page. I would move
them at the bottom. This are official tips:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.google.com%2Fanalytics%2Fdevguides%2Fcollection%2Fanalyticsjs&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C912c760d802449eb154108d77e1455f3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Zv6DrnOra21nCx03zNGn3eyH8fMoopdE63F0re10l8M%3D&amp;reserved=0

but this is also good:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bounteous.com%2Finsights%2F2012%2F02%2F09%2Fwhere-should-google-analytics-tracking-code-be-placed%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C912c760d802449eb154108d77e1455f3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hQ%2Fc7ekpc1K0B9OtY1C7Xd5TGULu3V3J96Tteb5DAMs%3D&amp;reserved=0


Il 11/12/19 08:12, zulkarnain via Eprints-tech ha scritto:
> Hi all,
>
> Does anyone use google analytics on eprints 3.4.1? I copied and paste
> this code below into the <HEAD> of every web page that I want to track
> but not working. Any help would be greatly appreciated.
>
> <!-- Global site tag (gtag.js) - Google Analytics -->
> <script async
> src="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.googletagmanager.com%2Fgtag%2Fjs%3Fid%3DUA-XXXXXXXXX-1&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C912c760d802449eb154108d77e1455f3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Pr4WNuOrJklTCoE40YN%2FLxmEUw5%2BRb9t6GepTGt7UPk%3D&amp;reserved=0";></script>
> <script>
> ? window.dataLayer = window.dataLayer || [];
> ? function gtag(){dataLayer.push(arguments);}
> ? gtag('js', new Date());
>
> ? gtag('config', 'UA-XXXXXXXXX-1');
> </script>
>
> Regards,
> Zul
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C912c760d802449eb154108d77e1455f3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=sGGb6AyF5qZVMocafOp93ToIwdWFNv%2FLYWc%2FFXqIjps%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C912c760d802449eb154108d77e1455f3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=chSo2uIJ7wtaXOzR2NARYiLSzBFnpVkd46ohZTyVi1M%3D&amp;reserved=0
> *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C912c760d802449eb154108d77e1455f3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ZZbt3fkepKZ07AFoujPo9axN5TIYUDp3EKWY5sPVmEA%3D&amp;reserved=0