Sendgrid-nodejs: How to enable tracking settings?

Created on 19 Sep 2018  路  2Comments  路  Source: sendgrid/sendgrid-nodejs

Hello, I just started using this SDK and I saw on the USE CASES file: https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/mail/USE_CASES.md#kitchen-sink---an-example-with-all-settings-used

That there is an object called "trackingSettings", but on this file there is no example on how to use it:

trackingSettings: {},

Can someone give me some tip on how to configure this object to get "Open" and "Click" event tracking enabled?

unknown or a help wanted question

Most helpful comment

"trackingSettings": {
    "clickTracking": {
        "enable": true
    },
    "openTracking": {
        "enable": true
    },
    "subscriptionTracking": {
        "enable": true
    }
}

Done.

All 2 comments

"trackingSettings": {
    "clickTracking": {
        "enable": true
    },
    "openTracking": {
        "enable": true
    },
    "subscriptionTracking": {
        "enable": true
    }
}

Done.

Awesome! Would you mind creating a PR to update our documentation?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wooyah picture wooyah  路  4Comments

mikemaccana picture mikemaccana  路  4Comments

TobiahRex picture TobiahRex  路  3Comments

danielflippance picture danielflippance  路  4Comments

thinkingserious picture thinkingserious  路  4Comments