Skip to content

Commit

Permalink
Improve analytics macros livedata UI xwikisas#42
Browse files Browse the repository at this point in the history
*
- Added support for hovering over the columns to get some info.
- Modified the macro for converting seconds into DD:HH::MM:SS to use jodatime
  • Loading branch information
Farcasut committed Oct 18, 2023
1 parent fa71df7 commit 2b2fd7a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ analytics.mostViewedPages.header.date=Date
analytics.mostViewedPages.header.emptyvalue=-
analytics.mostViewedPages.header.entryNbActions=No. of actions
analytics.mostViewedPages.header.exitRate=Exit rate
analytics.mostViewedPages.header.hits=Page views
analytics.mostViewedPages.header.pageTitle=Page title
analytics.mostViewedPages.header.timeSpent=Time spent(s)
analytics.mostViewedPages.header.hits=Views
analytics.mostViewedPages.header.pageTitle=Title
analytics.mostViewedPages.header.timeSpent=Time spent
analytics.mostViewedPages.header.visits=Unique visitors
analytics.mostViewedPages.header.year=Year
analytics.mostViewedPages.parameter.label.endDate=End time of the date interval used for this macro
Expand Down Expand Up @@ -134,6 +134,28 @@ analytics.config.checkConnection.success=Test connection succeeded!
## Livedata keys
analytics.livedata.action.rowEvolution.title=Row Evolution

## Descriptions
analytics.PagesFollowingASiteSearchJSON.header.clicked.hint=The number of times this page was visited after a visitor did a search on your website, and clicked on this page in the search results.
analytics.PagesFollowingASiteSearchJSON.header.destinationPage.hint
analytics.PagesFollowingASiteSearchJSON.header.loadTime.hint=Average time(in seconds) it takes from requesting a page until the page is fully rendered within the browser
analytics.PagesFollowingASiteSearchJSON.header.pageViews.hint=The number of times this page was visited.
analytics.mostViewedPages.header.bounceRate.hint=The percentage of visits that started on this page and left the website straight away.
analytics.mostViewedPages.header.entryNbActions.hint=The number of actions performed by the users.
analytics.mostViewedPages.header.exitRate.hint=The percentage of visits that left the website after viewing this page.
analytics.mostViewedPages.header.hits.hint=The number of times this page was visited.
analytics.mostViewedPages.header.timeSpent.hint=The time that the user has spent on the page.
analytics.mostViewedPages.header.visits.hint=The number of visits that included this page. If a page was viewed multiple times during one visit, it is only counted once.
analytics.searchCategories.header.searchResultsPages.hint=Visitors will search on your website, and sometimes click "next" to view more results. This is the average number of search results pages viewed for this keyword.
analytics.searchCategories.header.searches.hint=The number of visits that searched for this keyword on your website's search engine.
analytics.siteSearchKeywords.header.exitRate.hint=The percentage of visits that left the website after searching for this Keyword on your Site Search engine.
analytics.siteSearchKeywords.header.nbOfResultPages.hint=Visitors will search on your website, and sometimes click "next" to view more results this is the average number of search results pages viewed for this keyword.
analytics.siteSearchKeywords.header.searches.hint=The number of visits that searched for this keyword on your website's search engine.
analytics.softwareDevices.header.bounceRate.hint=The percentage of visits that only had a single pageview. This means that the visitor left the website directly from the entrance page.
analytics.softwareDevices.header.conversionRate.hint=The percentage of visits that triggered a goal conversion.
analytics.softwareDevices.header.nbOfActions.hint=The total number of actions performed by your visitors.
analytics.softwareDevices.header.timeSpent.hint=The time that the user have spent using a specific engine.
analytics.softwareDevices.header.visits.hint=If a vistor comes to your website for the first time or if they visit a page more than 30 minutes after their last page view, this will be recorded as new visit.

## Others
analytics.extension.name=Analytics Application (Pro)
analytics.extension.title=Analytics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@

#macro (getTime, $totalSeconds)
#if ($totalSeconds)
#set ($days = $totalSeconds / 86400)
#set ($hours = ($totalSeconds % 86400) / 3600)
#set ($minutes = (($totalSeconds % 86400) % 3600) / 60)
#set ($seconds = (($totalSeconds % 86400) % 3600) % 60)
#set ($duration = $xwiki.jodatime.getDuration($totalSeconds * 1000))
#set ($days = $duration.getStandardDays())
#set ($hours = $duration.getStandardHours() % 24)
#set ($minutes = $duration.getStandardMinutes() % 60)
#set ($seconds = $duration.getStandardSeconds() % 60)
#set ($paddedHours = "")
#set ($paddedMinutes = "")
#set ($paddedSeconds = "")
Expand Down

0 comments on commit 2b2fd7a

Please sign in to comment.