{% extends "base_page.html" %} {% set omit_admin_link = true %} {% set ga_connected = user_settings.ga_refresh_token %} {% block pagetitle %}Admin Home{% endblock %} {% block bodytitle %}Google Analytics superProxy{% endblock %} {% block content %}

The Google Analytics superProxy allows you to publicly share your Google Analytics reporting data. Use it to power your own custom dashboards and widgets, transform responses to various formats, manage your quota efficiently, and much more. Visit the google-analytics-super-proxy repo on GitHub for additional information.

{% if is_admin %}

Manage Users

{% endif %} {% if ga_connected %}

Create Query

Google Analytics access is authorized. Revoke Access

{% else %}

Authorize Access

{% endif %}
{% if not ga_connected %}

Authorize access to get started and create a new query.

{% endif %} {% for api_query in api_queries %} {# Set API Query status formatting #} {% if api_query.is_active %} {% set query_status = 'Enabled' %} {% set query_status_id = 'query_enabled' %} {% else %} {% set query_status = 'Disabled' %} {% set query_status_id = 'query_disabled' %} {% endif %} {# Set Schedule Status Formatting #} {% if api_query.is_scheduled %} {% set scheduling_status = 'Running' %} {% set scheduling_id = 'scheduling_running' %} {% else %} {% set scheduling_status = 'Paused' %} {% set scheduling_id = 'scheduling_paused' %} {% endif %} {% if loop.first %}

Queries

{% if is_admin %}{% endif %} {% endif %} {# First item in loop #} {% if is_admin %} {% endif %} {% endif %} {% if loop.last %}
Name Public Endpoint Endpoint Status Scheduling Status Refreshed Requested Request Count ErrorsOwner
{{ api_query.name }} {{ query_status }} {{ scheduling_status }} {{ api_query.modified_timedelta }} {{ api_query.last_request_timedelta }} {{ api_query.request_count }} {{ api_query.error_count }} Manage 
{% endif %} {# Last item in loop #} {% else %} {% if ga_connected %}

To get started click on Create Query

{% endif %} {% endfor %} {% endblock %}