analytics.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. ?>
  3. <amp-analytics id="analytics1" type="googleanalytics"><script type="application/json">{
  4. "vars": {
  5. "account": "UA-21345164-1"
  6. },
  7. "triggers": {
  8. "trackPageview": {
  9. "on": "visible",
  10. "request": "pageview"
  11. }
  12. }
  13. }</script></amp-analytics>
  14. <amp-analytics type="metrika"><script type="application/json">{
  15. "vars": {
  16. "counterId": "34950850"
  17. },
  18. "triggers": {
  19. "halfScroll": {
  20. "on": "scroll",
  21. "scrollSpec": {
  22. "verticalBoundaries": [50]
  23. },
  24. "request": "reachGoal",
  25. "vars": {
  26. "goalId": "halfScrollGoal"
  27. }
  28. },
  29. "defaultPageview": {
  30. "on": "visible",
  31. "request": "pageview"
  32. }
  33. }
  34. }</script></amp-analytics>
  35. <amp-analytics id="analytics_liveinternet">
  36. <script type="application/json">{
  37. "requests": {
  38. "pageview": "https://counter.yadro.ru/hit;amicru?u${ampdocUrl};r${documentReferrer};s${screenWidth}*${screenHeight}*32;h${title};${random}"
  39. },
  40. "triggers": {
  41. "track pageview": {
  42. "on": "visible",
  43. "request": "pageview"
  44. }
  45. }
  46. }</script></amp-analytics>
  47. <amp-analytics config="https://top-fwz1.mail.ru/amp-analytics.config.json">
  48. <script type="application/json">
  49. {
  50. "vars": {
  51. "id": "55851"
  52. }
  53. }
  54. </script>
  55. </amp-analytics>