Home Resources Blog

Since we introduced <tweet> tags as part of our social sharing update, they’ve featured in roughly 50 million emails and prompted countless tweets. However, while these tags are great for sharing the webversion of your campaign over Twitter, how about instances when you want to share a specific link to a blog post or landing page?

The good news is that it’s easy to add ‘tweet this’ links to your email, with no Javascript required. Here’s the code using Twitter’s “tweet button” format:

.codeblock {
background: #ededed;

Tweet This button

Here’s the same using Web Intents (soon to supersede “tweet buttons”):

Tweet This button

Example: Tweet this! (a tweet box will open in a new window)

Note that you can edit the values of text, via and related. Just like in our <tweet> template tags, the latter two are optional.

A nice touch is that Twitter shortens all included links, using their URL shortener. However, keep in mind that while clicks on ‘tweet this’ links are tracked in your campaign reports, they won’t show up as shares in ‘Social Sharing & Forwards’ reports. To count shares and clicks, you will have to use a 3rd-party service like bit.ly.

Why not use the buttons supplied by Twitter?

The problem with buttons and links built in Twitter’s button generators is that they require Javascript, in part so you can do fancy things like feature a tweet counter on your site. While this is fine on the web, Javascript is either stripped, or disabled in most email clients, resulting in ‘tweet this’ links that just don’t work (or worse, trigger security warnings). For this reason, we flag any HTML code containing Javascript upon import to the app.

Hopefully this post will help the folks out there who have wanted to add ‘tweet this’ links and buttons to their email campaigns.

  • julesj

    I think i read somewhere that this /share thing is going to disappear in the near future.
    Twitter now wants you to use their /intent/ methods. eg; https://twitter.com/intent/tweet?url=http://campaignmonitor.com

  • Ros Hodgekiss

    Thank you for the update, julesj – you’re right about Twitter wanting to encourage using Web Intents. A date hasn’t been set for the transition, however I’ve updated the blog post to feature the Web Intents method, which works equally well in HTML emails.

  • Vicky Lalwani

    Thanks for this article Ros, it’s actually quite helpful.

    Fingers crossed they don’t make this disappear anytime soon.

  • Mary

    Thanks for posting this!

This blog provides general information and discussion about email marketing and related subjects. The content provided in this blog ("Content”), should not be construed as and is not intended to constitute financial, legal or tax advice. You should seek the advice of professionals prior to acting upon any information contained in the Content. All Content is provided strictly “as is” and we make no warranty or representation of any kind regarding the Content.
Straight to your inbox

Get the best email and digital marketing content delivered.

Join 250,000 in-the-know marketers and get the latest marketing tips, tactics, and news right in your inbox.


See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free