mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 15:09:23 +00:00
add google analytics
This commit is contained in:
@@ -18,6 +18,14 @@ def create_app(config_name=None):
|
||||
app.config.from_object(config[config_name])
|
||||
app.response_class = XMLResponse
|
||||
|
||||
# Add analytics
|
||||
from flask_analytics import Analytics
|
||||
from rsshub.google_analytics import ga_account
|
||||
|
||||
Analytics(app)
|
||||
app.config['ANALYTICS']['GOOGLE_CLASSIC_ANALYTICS']['ACCOUNT'] = ga_account
|
||||
app.config['ANALYTICS']['ENABLED'] = True
|
||||
|
||||
register_blueprints(app)
|
||||
register_extensions(app)
|
||||
register_errors(app)
|
||||
|
||||
Reference in New Issue
Block a user