<commit_before>Upgrade Instructions
====================

## Using the Google Analytics dashboard

The Google Analytics dashboard depends on three parameters added in app/config/parameters.yml. Because these parameters are injected, there is no way to catch an exception if they are not present. This is a BC breaking change, and can be fixed be just adding the three parameters and default values '' to parameters.yml.

To upgrade, first pull in the new version of all bundles, then add these parameters:

    google.api.client_id: ''
    google.api.client_secret: ''
    google.api.client_secret: ''

Now you can run the app without any errors, follow the documentation (DashboardBundle/resources/doc/SetupAnalyticsDashboard.md) to configure the dashboard.<commit_msg>Added upgrade message<commit_after>Upgrade Instructions
====================

## Using the Google Analytics dashboard

The Google Analytics dashboard depends on three parameters added in app/config/parameters.yml. Because these parameters are injected, there is no way to catch an exception if they are not present. This is a BC breaking change, and can be fixed be just adding the three parameters and default values '' to parameters.yml.

To upgrade, first pull in the new version of all bundles, then add these parameters:

    google.api.client_id: ''
    google.api.client_secret: ''
    google.api.client_secret: ''

Now you can run the app without any errors, follow the documentation (DashboardBundle/resources/doc/SetupAnalyticsDashboard.md) to configure the dashboard.


## Upgrading to multi-config branch

Because of the changes with the multi-config setup, you'll need to flush your database and refill it.

    app/console doctrine:schema:update --force
    app/console kuma:dashboard:widget:googleanalytics:config:flush
    app/console kuma:dashboard:collect
{'fraction_non_alphanumeric': 0.07867607162235486, 'fraction_numerical': 0.0, 'mean_word_length': 4.7625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '588995', 'n_tokens_mistral': 461, 'n_tokens_neox': 441, 'n_words': 213}