I would like to add an optional page for Google Analytics data, custom graphs and such to YCM extension, so that admins can have one place to quickly check what’s going on.
Since the Google Analytics API authentication uses OAuth 2.0, I need to save and update those keys, tokens, tracking ID’s and such inside the module configuration.
I guess option 1 would be the preferred way of doing this, if the user wants to have the optional statistics page.
Since all users can have different databases, I guess it’s better to let the users decide what kind of database to use in main configuration file. There also might be restrictions in those databases, it would make sense to let the user decide the name of the table in the module configuration.