{% extends "analytics/_layouts/settings" %} {% import "_includes/forms" as forms %} {% macro configWarning(setting, file) -%} {{ "This is being overridden by the {setting} config setting."|t({ setting: ''~setting~'' })|raw }} {%- endmacro %} {% from _self import configWarning %} {% set content %} {% if isOauthProviderConfigured %} {% if not oauthAccount %}
{{'You need to connect Craft to a Google account in order to get started.'|t}}
{% endif %} {% if token %} {% else %}{{"Getting errors trying to connect ?"|t}} {{"Check Google API key & secret in OAuth settings"|t}}.
{{"Connect to Google Analytics"|t}}
{% endif %} {% else %}{{'You are authenticated to Google Analytics with the following account'|t}} :
{{"Please connect again to Google Analytics"|t}}
{% else %}{{'Please fill API client id & secret for Analytics provider.'|t}}
{% endif %} {% endset %}