|
|
|
@ -54,14 +54,12 @@ class StatusPage extends BeanModel {
|
|
|
|
|
|
|
|
|
|
const head = $("head");
|
|
|
|
|
|
|
|
|
|
await StatusPage.getStatusPageData(statusPage).then( (page) => {
|
|
|
|
|
if (page.config?.googleAnalyticsId) {
|
|
|
|
|
let escapedGoogleAnalyticsScript = jsesc(googleAnalytics.getGoogleAnalyticsScript(page.config.googleAnalyticsId), {
|
|
|
|
|
"isScriptContext": true
|
|
|
|
|
});
|
|
|
|
|
head.append($(escapedGoogleAnalyticsScript));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (statusPage.googleAnalyticsTagId) {
|
|
|
|
|
let escapedGoogleAnalyticsScript = jsesc(googleAnalytics.getGoogleAnalyticsScript(statusPage.googleAnalyticsTagId), {
|
|
|
|
|
"isScriptContext": true
|
|
|
|
|
});
|
|
|
|
|
head.append($(escapedGoogleAnalyticsScript));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OG Meta Tags
|
|
|
|
|
head.append(`<meta property="og:title" content="${statusPage.title}" />`);
|
|
|
|
|