mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 03:58:27 +08:00
Feature - Added Optional Google Analytics tag for Status Page.
This commit is contained in:
@@ -69,6 +69,7 @@ class Database {
|
||||
"patch-ping-packet-size.sql": true,
|
||||
"patch-maintenance-table2.sql": true,
|
||||
"patch-add-gamedig-monitor.sql": true,
|
||||
"patch-add-google-analytics-status-page-tag.sql": true
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -225,6 +225,7 @@ class StatusPage extends BeanModel {
|
||||
customCSS: this.custom_css,
|
||||
footerText: this.footer_text,
|
||||
showPoweredBy: !!this.show_powered_by,
|
||||
googleAnalyticsId: this.google_analytics_tag_id
|
||||
};
|
||||
}
|
||||
|
||||
@@ -245,6 +246,7 @@ class StatusPage extends BeanModel {
|
||||
customCSS: this.custom_css,
|
||||
footerText: this.footer_text,
|
||||
showPoweredBy: !!this.show_powered_by,
|
||||
googleAnalyticsId: this.google_analytics_tag_id
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -163,6 +163,7 @@ module.exports.statusPageSocketHandler = (socket) => {
|
||||
statusPage.custom_css = config.customCSS;
|
||||
statusPage.show_powered_by = config.showPoweredBy;
|
||||
statusPage.modified_date = R.isoDateTime();
|
||||
statusPage.google_analytics_tag_id = config.googleAnalyticsId;
|
||||
|
||||
await R.store(statusPage);
|
||||
|
||||
|
Reference in New Issue
Block a user