{% extends "base_query_page.html" %} {% set ga_connected = user_settings.ga_refresh_token %} {% block pagetitle %}Create Query{% endblock %} {% block bodytitle %}Create Query{% endblock %} {% block head %} {% endblock %} {% block api_query_content %} {% if ga_connected %}

Setup your query

 
  (1 hour = 3600, 1 day = 86400)


Supported date parameters are {today} and {Ndaysago}.
Relative dates are resolved to actual dates during query execution and are currently configured to use the {{ timezone|capitalize }} timezone.

E.g. A query for the last 7 days would use the following start and end dates:
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A12345&start-date={6daysago}&end-date={today}

Tip: Use the Google Analytics Query Explorer to build a valid Query URI.

{% if test_response %}

Test Response Content

{{ test_response }}
{% endif %}
{% endif %} {# New query box #} {% endblock %}