SendGrid overrides not working
Hello,
I'm trying to remove the unsubscribe link present in every email sent by SendGrid.
SendGrid allows this by setting a flag "tracking_settings.subscription_tracking.enabled=false" - as seen here: https://docs.sendgrid.com/api-reference/mail-send/mail-send
This works when using directly the SendGrid SDK but not through Novu.
My code (NodeJs):
await this.novu.trigger(triggerId, {
to: subscribers,
payload: payload,
overrides: {
sendgrid: {
tracking_settings: {
subscription_tracking: {
enable: false
}
}
}
}
});
The email is sent but the overrides don't work, meaning the unsubscription link is still present
6 Replies
Hi @Laser
We have not added provider level overrides
oh I see, is it on the roadmap?
Not currently,
But you can add as an idea here
https://roadmap.novu.co/roadmap
FYI for anyone having the same issue, the workaround I've applied:
SendGrid allows to place the unsubscribe link anywhere in your email if you provide a special tag that you can configure here: https://app.sendgrid.com/settings/tracking
Let's say that your tag is named "UNSUB_LINK", then you can add this in your Novu template:
<p style="display: none">Unsubscribe <a href=”UNSUB_LINK”> here</a></p>
This makes the unsubscribe button present, but invisible which solves it for our usecaseThanks for sharing the workaround for this issue @Laser