import csv


def get_analytics_account_properties_dict_from_csv(csv_file_path: str) -> dict:
    """
    We use this dict to gather the properties by accounts.

    :param csv_file_path: path to the CSV file where Google Analytics
    Properties have previously been dumped.
    :return: a dict representation of the Analytics Properties.
    """
    account_to_properties = {}
    with open(csv_file_path, "r") as csv_file:
        reader = csv.DictReader(csv_file)
        for row in reader:
            account = row["Account"]
            account_property = row["Properties"]
            if account not in account_to_properties and account_property != '':
                account_to_properties[account] = [account_property]
            elif account_property != '':
                account_to_properties[account].append(account_property)
    return account_to_properties