Struct sendgrid_api::settings_tracking::SettingsTracking
source · pub struct SettingsTracking {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl SettingsTracking
impl SettingsTracking
sourcepub async fn get_tracking_settings(
&self
) -> Result<Response<GetTrackingSettingsResponse>, ClientError>
pub async fn get_tracking_settings( &self ) -> Result<Response<GetTrackingSettingsResponse>, ClientError>
Retrieve Tracking Settings.
This function performs a GET
to the /tracking_settings
endpoint.
This endpoint allows you to retrieve a list of all tracking settings on your account.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn get_tracking_settings_click(
&self
) -> Result<Response<ClickTracking>, ClientError>
pub async fn get_tracking_settings_click( &self ) -> Result<Response<ClickTracking>, ClientError>
Retrieve Click Track Settings.
This function performs a GET
to the /tracking_settings/click
endpoint.
This endpoint allows you to retrieve your current click tracking setting.
Click Tracking overrides all the links and URLs in your emails and points them to either SendGrid’s servers or the domain with which you branded your link. When a customer clicks a link, SendGrid tracks those clicks.
Click tracking helps you understand how users are engaging with your communications. SendGrid can track up to 1000 links per email
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn patch_tracking_settings_click(
&self,
body: &PatchTrackingSettingsOpenRequest
) -> Result<Response<ClickTracking>, ClientError>
pub async fn patch_tracking_settings_click( &self, body: &PatchTrackingSettingsOpenRequest ) -> Result<Response<ClickTracking>, ClientError>
Update Click Tracking Settings.
This function performs a PATCH
to the /tracking_settings/click
endpoint.
This endpoint allows you to enable or disable your current click tracking setting.
Click Tracking overrides all the links and URLs in your emails and points them to either SendGrid’s servers or the domain with which you branded your link. When a customer clicks a link, SendGrid tracks those clicks.
Click tracking helps you understand how users are engaging with your communications. SendGrid can track up to 1000 links per email
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn get_tracking_settings_google_analytic(
&self
) -> Result<Response<GoogleAnalyticsSettings>, ClientError>
pub async fn get_tracking_settings_google_analytic( &self ) -> Result<Response<GoogleAnalyticsSettings>, ClientError>
Retrieve Google Analytics Settings.
This function performs a GET
to the /tracking_settings/google_analytics
endpoint.
This endpoint allows you to retrieve your current setting for Google Analytics.
Google Analytics helps you understand how users got to your site and what they’re doing there. For more information about using Google Analytics, please refer to Google’s URL Builder and their article on “Best Practices for Campaign Building”.
We default the settings to Google’s recommendations. For more information, see Google Analytics Demystified.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn patch_tracking_settings_google_analytics(
&self,
body: &GoogleAnalyticsSettings
) -> Result<Response<GoogleAnalyticsSettings>, ClientError>
pub async fn patch_tracking_settings_google_analytics( &self, body: &GoogleAnalyticsSettings ) -> Result<Response<GoogleAnalyticsSettings>, ClientError>
Update Google Analytics Settings.
This function performs a PATCH
to the /tracking_settings/google_analytics
endpoint.
This endpoint allows you to update your current setting for Google Analytics.
Google Analytics helps you understand how users got to your site and what they’re doing there. For more information about using Google Analytics, please refer to Google’s URL Builder and their article on “Best Practices for Campaign Building”.
We default the settings to Google’s recommendations. For more information, see Google Analytics Demystified.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn get_tracking_settings_open(
&self
) -> Result<Response<GetTrackingSettingsOpenResponse>, ClientError>
pub async fn get_tracking_settings_open( &self ) -> Result<Response<GetTrackingSettingsOpenResponse>, ClientError>
Get Open Tracking Settings.
This function performs a GET
to the /tracking_settings/open
endpoint.
This endpoint allows you to retrieve your current settings for open tracking.
Open Tracking adds an invisible image at the end of the email which can track email opens.
If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged.
These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn patch_tracking_settings_open(
&self,
body: &PatchTrackingSettingsOpenRequest
) -> Result<Response<GetTrackingSettingsOpenResponse>, ClientError>
pub async fn patch_tracking_settings_open( &self, body: &PatchTrackingSettingsOpenRequest ) -> Result<Response<GetTrackingSettingsOpenResponse>, ClientError>
Update Open Tracking Settings.
This function performs a PATCH
to the /tracking_settings/open
endpoint.
This endpoint allows you to update your current settings for open tracking.
Open Tracking adds an invisible image at the end of the email which can track email opens.
If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged.
These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn get_tracking_settings_subscription(
&self
) -> Result<Response<SubscriptionTrackingSettings>, ClientError>
pub async fn get_tracking_settings_subscription( &self ) -> Result<Response<SubscriptionTrackingSettings>, ClientError>
Retrieve Subscription Tracking Settings.
This function performs a GET
to the /tracking_settings/subscription
endpoint.
This endpoint allows you to retrieve your current settings for subscription tracking.
Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn patch_tracking_settings_subscription(
&self,
body: &SubscriptionTrackingSettings
) -> Result<Response<SubscriptionTrackingSettings>, ClientError>
pub async fn patch_tracking_settings_subscription( &self, body: &SubscriptionTrackingSettings ) -> Result<Response<SubscriptionTrackingSettings>, ClientError>
Update Subscription Tracking Settings.
This function performs a PATCH
to the /tracking_settings/subscription
endpoint.
This endpoint allows you to update your current settings for subscription tracking.
Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.