module.exports = { onPageRendered: async ({ html, file }) => { // Example: inject analytics script into each page const snippet = '\n'; return { html: html.replace('', `${snippet}`) }; } };