:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
export const unsubscribeLinkToolCustomJs = `
unlayer.registerTool({
name: 'unsubscribe_link',
label: 'Unsubscribe',
icon: 'fa-hand-pointer',
supportedDisplayModes: ['email'],
position: 15,
options: {
unsubscribe_link: {
// Property Group
title: 'Unsubscribe link content',
position: 1,
collapsed: false,
options: {
unsubscribe_link_content: {
label: 'Content',
defaultValue: \`<div>Don't want to receive these emails? <a href="{{ unsubscribe_url }}">Unsubscribe</a></div>\`,
widget: 'rich_text',
},
},
},
},
values: {},
renderer: {
Viewer: unlayer.createViewer({
render(values) {
return \`\${values.unsubscribe_link_content}\`
},
}),
exporters: {
email: function (values) {
return \`\${values.unsubscribe_link_content}\`
},
},
},
})
`