Social Media Sharing

Using the provided Zephyr code and parameters, you can easily produce ‘share’ links to popular social media services – links either to share individual content items or to share your entire email as a Sailthru hosted page.

Generate Share Links for Content Items in Email

By placing a single line of Zephyr code in your template, you can make any content item or product shareable on social media.

The code examples below will return the applicable share URLs, so you should include them as the href value for any share links. For example:

<a href="{{social_share()}}">Share This!</a>

Facebook (Share)

The Code:

{{social_share('fbshare', 'http://blog.example.com/post/12345/')}}

{{social_share('fbshare', content[0].url)}}

Clicking the link provides your users a Facebook share option, with the URL of the content pre-populated.

Facebook (Like)

The Code:

{{social_share('fblike','http://blog.sailthru.com/post/25024817166/getting-social-with-sailthru')}}

{{social_share('fblike', content[0].url)}}

Clicking the link provides a popup box for your users to ‘like’ a specific article on Facebook.

Twitter Share

The Code:

{{social_share('twitter','http://blog.sailthru.com/post/25024817166/getting-social-with-sailthru')}}

{{social_share('twitter',content[0].url)}}

Clicking the link pre-populates a tweet with a link to your product or page.

Pinterest

The Code:

{{social_share('pinterest', 'http://example.com/item-url',
'Description Here', 'http://example.com/media-url.png')}}

{{social_share('pinterest',content[0].url,'A description',content[0].image)}}

Clicking the link allows easy sharing of your content on Pinterest.

Tumblr

The Code:

{{social_share('tumblr','http://blog.sailthru.com/post/25024817166/getting-social-with-sailthru')}}

{{social_share('tumblr',content[0].url)}}

Clicking the link provides a quick menu for sharing on Tumblr.

Public Share Links for Entire Email as Sailthru Hosted Page

Quickly generate a link to a public version of your newsletter appropriate for social sharing. It won’t contain any user-specific information or links.

Note that this feature only works for Campaign sends, not Transactional sends.

The code examples below should be set as the href value for your links, for example:

<a href="{{public_share()}}">Share This!</a>

Facebook (Share)

The Code:

{{public_share('fbshare')}}

Clicking the link provides your users the option to Facebook share your entire email.

Facebook (Like)

The Code:

{{public_share('fblike')}}

Clicking the link provides a popup box for your users to ‘like’ your entire email on Facebook.

Twitter Share

The Code:

{{public_share('twitter','Check out this campaign from @sailthru !')}}

Clicking the link pre-populates a tweet with a link to your campaign.

Shareable URL

The Code:

{{public_share('url')}}

Creates a public link for your campaign using your Link Domain.

Note: Contrary to campaign emails, transactional emails cannot become publicly accessible, so they do not have a public version to link to. As a result, when test sending from the template editor, these links will display as links but will not be clickable. To test send with clickable links, build a campaign and test send from the campaign editor.
Top