Index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:layout name="Backend/Default" />
  4. <f:section name="content">
  5. <div class="ot-be-module ot-stats">
  6. <h1><f:translate key="stats"/></h1>
  7. <div id="matomoFilters">
  8. <span><f:translate key="period"/>: </span>
  9. <f:form action="index">
  10. <f:form.select class="form-control"
  11. name="period"
  12. options="{week: '{f:translate(key: \'last_week\')}',
  13. month: '{f:translate(key: \'last_month\')}',
  14. year: '{f:translate(key: \'last_year\')}'}"
  15. value="{period}">
  16. </f:form.select>
  17. <f:comment><!--
  18. Important: if the cache is not disabled,
  19. then the results won't be updated even after submitting this form
  20. --></f:comment>
  21. <input type="hidden"
  22. name="no_cache"
  23. value="1">
  24. <f:form.button type="submit" class="ot-btn">
  25. <f:translate key="refresh"/>
  26. </f:form.button>
  27. </f:form>
  28. </div>
  29. <div id="matomoReport">
  30. <div class="reportSection">
  31. <f:comment><!-- Real time visits--></f:comment>
  32. <f:render partial="ReportCard"
  33. arguments="{title: '{f:translate(key: \'real_time_visits\')}', id: 'realTimeVisits',
  34. module: 'Live', action: 'widget',
  35. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  36. <div class="reportSubSection">
  37. <f:comment><!-- Last visits graph--></f:comment>
  38. <f:render partial="ReportCard"
  39. arguments="{title: '{f:translate(key: \'last_visits_graph\')}', id: 'lastVisitsGraph',
  40. module: 'VisitsSummary', action: 'getEvolutionGraph',
  41. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  42. <f:comment><!-- Visits Summary --></f:comment>
  43. <f:render partial="ReportCard"
  44. arguments="{title: '{f:translate(key: \'visits_summary\')}', id: 'visitsSummary',
  45. module: 'VisitsSummary', action: 'get',
  46. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  47. </div>
  48. </div>
  49. <div class="reportSection">
  50. <f:comment><!-- By weekday --></f:comment>
  51. <f:render partial="ReportCard"
  52. arguments="{title: '{f:translate(key: \'visits_by_weekday\')}', id: 'visitsByWeekday',
  53. module: 'VisitTime', action: 'getByDayOfWeek',
  54. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  55. <f:comment><!-- By local hour --></f:comment>
  56. <f:render partial="ReportCard"
  57. arguments="{title: '{f:translate(key: \'visits_by_hour\')}', id: 'visitsByHour',
  58. module: 'VisitTime', action: 'getVisitInformationPerLocalTime',
  59. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  60. <f:comment><!-- Map --></f:comment>
  61. <f:render partial="ReportCard"
  62. arguments="{title: '{f:translate(key: \'visits_map\')}', id: 'visitsMap',
  63. module: 'UserCountryMap', action: 'visitorMap',
  64. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  65. </div>
  66. <div class="reportSection">
  67. <f:comment><!-- Refferers --></f:comment>
  68. <f:render partial="ReportCard"
  69. arguments="{title: '{f:translate(key: \'visits_referrers\')}', id: 'visitsRefferers',
  70. module: 'Referrers', action: 'getAll',
  71. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  72. <f:comment><!-- By web-browsers --></f:comment>
  73. <f:render partial="ReportCard"
  74. arguments="{title: '{f:translate(key: \'get_browsers\')}', id: 'getBrowsers',
  75. module: 'Referrers', action: 'getAll',
  76. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  77. </div>
  78. <div class="reportSection">
  79. <f:comment><!-- By page --></f:comment>
  80. <f:render partial="ReportCard"
  81. arguments="{title: '{f:translate(key: \'visits_by_page\')}', id: 'visitsByPage',
  82. module: 'Actions', action: 'getPageUrls', width: '1028',
  83. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  84. </div>
  85. <div class="reportSection">
  86. <f:comment><!-- By entry page --></f:comment>
  87. <f:render partial="ReportCard"
  88. arguments="{title: '{f:translate(key: \'visitors_entry_points\')}', id: 'visitorsEntryPoints',
  89. module: 'Actions', action: 'getEntryPageUrls',
  90. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  91. <f:comment><!-- By visits duration --></f:comment>
  92. <f:render partial="ReportCard"
  93. arguments="{title: '{f:translate(key: \'visits_by_duration\')}', id: 'visitsByDuration',
  94. module: 'VisitorInterest', action: 'getNumberOfVisitsPerVisitDuration',
  95. matomoSiteId: matomoSiteId, matomoToken: matomoToken, period: period}"/>
  96. </div>
  97. <div class="reportFooter">
  98. <f:link.action
  99. action="askForDeactivationConfirmation"
  100. title="select"
  101. id="disableLink"
  102. class="warning"
  103. >
  104. <f:translate key="disable_monitoring"/>
  105. </f:link.action>
  106. </div>
  107. </div>
  108. </div>
  109. </f:section>