--- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -8,160 +8,178 @@ Site usage - - - - - - - - - -
  • -

    Download

    -

    - Download as CSV
    -

    -
  • -
  • -

    Graph Legend

    -
    -
    (No graph loaded)
    + +
  • Site Analytics
  • +
  • Site-wide
  • +
    + +
    +
    +
    + +   Download as CSV + +

    Site Usage

    - - - - - -
    -

    Site Usage

    - ${usage_nav('Site-wide')} - - + +
    +
    +
    +
    + - - -
  • Languages
  • -
  • Country
  • - -
    -
    -
    - - ${month_selector(c.month, c.months, c.day)} -
    - - - - - - - - - - - - - -
    NameValueHistory
    ${name}${value} - - ${','.join([y for x,y in graph])} - -
    -
    -
    - ${rickshaw_graph(c.browser_versions_graph,'browser-versions',mode='stack')} -

    Note: Where a browser has a large number of versions, these have been grouped together.

    -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.browser_versions)} -
    -
    - ${rickshaw_graph(c.browsers_graph,'browsers',mode='stack')} -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.browsers)} -
    -
    - ${rickshaw_graph(c.os_graph,'os',mode='stack')} -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.os)} -
    -
    - ${rickshaw_graph(c.os_versions_graph,'os_versions',mode='stack')} -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.os_versions)} -
    -
    -

    Number of visits that were referred from social networks

    -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${social_table(c.social_referrer_totals)} -
    -
    - ${rickshaw_graph(c.social_networks_graph, 'social_networks',mode='stack')} -

    Percentage of visits that were referred from these social networks

    -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.social_networks, 'Visits')} -
    -
    - ${rickshaw_graph(c.languages_graph,'languages',mode='stack')} -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.languages)} -
    -
    - ${rickshaw_graph(c.country_graph,'country',mode='stack')} -
    - - ${month_selector(c.month, c.months, c.day)} -
    - ${stat_table(c.country)} -
    +
    +
    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    + + + + + + + + + + + + + +
    NameValueHistory
    ${name}${value} + + ${','.join([y for x,y in graph])} + +
    +
    +
    + ${rickshaw_graph(c.browser_versions_graph,'browser-versions',mode='stack')} +
    +

    Note: Where a browser has a large number of versions, these have been grouped together.

    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.browser_versions)} +
    +
    + ${rickshaw_graph(c.browsers_graph,'browsers',mode='stack')} +
    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.browsers)} +
    +
    + ${rickshaw_graph(c.os_graph,'os',mode='stack')} +
    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.os)} +
    +
    + ${rickshaw_graph(c.os_versions_graph,'os_versions',mode='stack')} +
    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.os_versions)} +
    +
    +

    Number of visits that were referred from social networks

    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    + ${social_table(c.social_referrer_totals)} +
    +
    + ${rickshaw_graph(c.social_networks_graph, 'social_networks',mode='stack')} +
    +

    Percentage of visits that were referred from these social networks

    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.social_networks, 'Visits')} +
    +
    + ${rickshaw_graph(c.languages_graph,'languages',mode='stack')} +
    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.languages)} +
    +
    + ${rickshaw_graph(c.country_graph,'country',mode='stack')} +
    +
    +

    Show stats table for:

    + ${month_selector(c.month, c.months, c.day)} +
    +
    + ${stat_table(c.country)} +
    +
    +
    -
    +
    +
    +
    @@ -171,17 +189,11 @@ CKAN.GA_Reports.bind_sparklines(); CKAN.GA_Reports.bind_sidebar(); CKAN.GA_Reports.bind_month_selector(); - if (!window.location.hash) { - window.location.hash='totals'; - } - else { - $(window).trigger('hashchange'); - } - }); + }); - +