HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

encodeTrackingLinks

Converts all links found in the given content to tracking links methods.

The mailing is not altered in any way. See also decodeTrackingLinks.

Type: String

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
contentStringThe content of the mailing (HTML code or text).
mimeTypeStringMIME type of the mailing (text/plain or text/html)

The content will be treated as this MIME type.

Return values

Content with all links replaced by their corresponding tracking links

Code structure

String encodeTrackingLinks(String sessionId, long mailingId, String content, String mimeType)

What’s Next
Did this page help you?