Track links on your website or third-party site with Account Engagement’s custom redirects. For example, you can track a link on your Twitter page or a banner ad on a third-party site. When a user clicks a link, a corresponding activity is created on their profile. Learn about custom redirects in Salesforce Help.
The API to access Custom Redirects follows the conventions described in Version 5 Overview.
Include the authentication header with every request. For information on how to authenticate, see Authentication.
Name of the object for identification in Account Engagement.
campaignId
Integer
Account Engagement Campaign related to this object.
destinationUrl
String
A fully qualified URL. The visitor who clicks the custom redirect will be directed to this location. E.g. https://example.com/content.html
Optional Editable Fields
Field
Type
Description
folderId
Integer
ID of the folder containing this object. Uses the asset type’s uncategorized folder if not specified on create.
trackerDomainId
Integer
ID of the tracker domain to use in the URL for this object. Uses the primary tracker domain for the account if not specified on create.
vanityUrlPath
String
Vanity URL path (excluding protocol and host). Must be unique for each tracker domain. E.g. /my-link. The value assumes empty (/) if not specified on create.
Optional Google Analytics Fields
The following fields are only available if a Google Analytics connector is present. For more information, see the Google Analytics documentation.
Field
Type
Description
gaSource
String
Campaign source
gaMedium
String
Campaign medium
gaTerm
String
Campaign keyword
gaContent
String
Campaign content
gaCampaign
String
Campaign ID
Read-Only Fields
Field
Type
Description
id
Integer
ID of the object.
salesforceId
String
Salesforce Id of the object.
vanityUrl
String
Fully qualified vanity URL. Includes tracker domain and vanityUrlPath. E.g. https://mytracked.example.com/my-link
url
String
Fully qualified tracked URL. Doesn’t include Vanity URL. E.g. https://mytracked.example.com/l/386175/2023-03-30/rnctj
trackedUrl
String
Fully qualified tracked URL if Vanity URL isn’t set, otherwise Vanity URL is returned.
bitlyIsPersonalized
Boolean
True if a custom Bitly URL was set.
bitlyShortUrl
String
If set, a fully qualified Bitly URL.
isDeleted
Boolean
True if the object is in the recycle bin in Account Engagement.
Tracker Domain object representing the tracker domain that was set on Create. See documentation for Tracker Domain for fields. A null value indicates that the object will use the default tracker domain for the account.
The fields in the response body and Location header are the same as the fields specified on the example request.
Custom Redirect Update
Updating a custom redirect follows the conventions described in the Version 5 Overview.
Custom Redirect Delete
Deleting a custom redirect follows the conventions described in the Version 5 Overview.
Custom Redirect Query
Retrieving a collection of custom redirects follows the conventions described in Version 5 Overview.
Sortable Fields
When executing a query, the following fields can be specified in the orderBy parameter. See the conventions for query described in the Version 5 Overview.
When executing a query, the following parameters can be used to filter the returned results. These parameters can be specified in the request along with any shared parameters defined in Version 5 Overview. When specifying more than one parameter, all parameters must match the record in order for it to be returned in the results.
Parameter
Description
id
Returns any custom redirects where ID is equal to the given integer value.
idList
Returns any custom redirects where ID is included in the given list of values.
idGreaterThan
Returns any custom redirects where ID is greater than the specified value, non-inclusive.
idGreaterThanOrEqualTo
Returns any custom redirects where ID is greater than or equal to the specified value.
idLessThan
Returns any custom redirects where ID is less than the specified value, non-inclusive.
idLessThanOrEqualTo
Returns any custom redirects where ID is less than or equal to the specified value.
deleted
Determines whether to return deleted records. The value can be false (default), true, or all.