From 0828ff75449139e538aeaacf97bbb23324d2084d Mon Sep 17 00:00:00 2001 From: hillerliao Date: Sun, 2 Jan 2022 22:13:53 +0800 Subject: [PATCH] add ga4 --- rsshub/__init__.py | 2 +- rsshub/templates/layout.html | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/rsshub/__init__.py b/rsshub/__init__.py index 6f48c21..b9febf3 100644 --- a/rsshub/__init__.py +++ b/rsshub/__init__.py @@ -23,7 +23,7 @@ def create_app(config_name=None): from rsshub.google_analytics import ga_account Analytics(app) - app.config['ANALYTICS']['GOOGLE_CLASSIC_ANALYTICS']['ACCOUNT'] = ga_account + app.config['ANALYTICS']['GOOGLE_UNIVERSAL_ANALYTICS']['ACCOUNT'] = ga_account app.config['ANALYTICS']['ENABLED'] = True register_blueprints(app) diff --git a/rsshub/templates/layout.html b/rsshub/templates/layout.html index bb4d370..f7aec6f 100644 --- a/rsshub/templates/layout.html +++ b/rsshub/templates/layout.html @@ -13,9 +13,44 @@ {% endblock styles %} {% endblock head %} {{ analytics }} + + + + + + + {% block nav %}