def visitors_by_locale(start_date, end_date):
    visits_by_locale = {}
    request = _build_request()

    @retry_503
    def _make_request():
        return request.get(
            ids='ga:' + profile_id,
            start_date=str(start_date),
            end_date=str(end_date),
            metrics='ga:visitors',
            dimensions='ga:pagePathLevel1').execute()

    results = _make_request()

    for result in results['rows']:
        path = result[0][1:-1]  # Strip leading and trailing slash.
        visitors = int(result[1])
        if path in settings.SUMO_LANGUAGES:
            visits_by_locale[path] = visitors

    return visits_by_locale
Return the number of unique visits by locale in a given date range.
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/googleanalytics.py/visitors_by_locale