Add participant name to page title for Matomo tracking
This commit is contained in:
@@ -167,8 +167,9 @@ if (isProduction) {
|
||||
// Insert OG tags before </head>
|
||||
html = html.replace('</head>', `${ogTags}</head>`);
|
||||
|
||||
// Update title
|
||||
html = html.replace(/<title>.*?<\/title>/, `<title>${title} - Activiteiten Inventaris</title>`);
|
||||
// Update title - include participant name for Matomo tracking
|
||||
const pageTitle = `${title} - ${participant.name}`;
|
||||
html = html.replace(/<title>.*?<\/title>/, `<title>${pageTitle}</title>`);
|
||||
|
||||
res.send(html);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user