sendgrid package moved @sendgrid so its api has changed.
before in sendgrid package there was clickTracking package to track the users who clicked on the links.
clickTracking function in sendgrid:
function ClickTracking(enable, enable_text) {
this.enable = enable;
this.enable_text = enable_text;
this.setEnable = function(enable) {
this.enable = enable;
};
this.getEnable = function() {
return this.enable;
};
this.setEnableText = function(enable_text) {
this.enable_text = enable_text;
};
this.getEnableText = function() {
return this.enable_text;
};
this.toJSON = function() {
var json = {
enable: this.getEnable(),
enable_text: this.getEnableText(),
};
return json;
};
return this;
}
However in @sendgrid there is no clickTracking function. so how can I implement code to keep tracking links inside my emails with @sendgrid package.