Category Archives: How to insert a JavaScript widget in Kindle book description

Free on Amazon: How to Embed Social Share Buttons in Your Kindle Book Pages

An exciting new book from M. Eigh, FREE for you.

Hi guys,

M. Eigh has just released a new book, titled How to Embed Social Share Buttons in Your Kindle Book Pages. To show my heartfelt appreciation for your purchase of my book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description, I’m offering this book free to you.

The book is here: http://amzn.to/18xrEHq. It will be free for two days, starting midnight Pacific Sunday till midnight Pacific Monday.

I know we live in a viral society and Amazon does not offer a mechanism for me to control who can enjoy the free download, so some people who have not purchased “Secret” will enjoy the free download too. So you might as well do your friends a favor and let them know.

But rest assured that this book is by no means going to devalue the “Secret” book you have bought. That is still and will always be the bible of Kindle book description, forever the holy grail.

So, don’t miss the free download. And if you have enjoyed my books and benefited form the know-how’s in it, please post a review on the book’s Amazon pages. One good turn deserves another, from an Indie to another Indie.

Cheers,

M. Eigh

http://m.eigh.com

Copyright © 2013 M. Eigh, All rights reserved.

unsubscribe from this list    update subscription preferences

Amazon KDP Authors Getting Fancy with their Kindle Book Pages

The following is a list of real Amazon KDP authors who implemented the technology introduced in my book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description. This is a short list that reflect only the use cases I know of. As the book gets more popular day by day, I am sure I will get to know more wonderful and creative implementations. If you have done yours, please let me know your page URL. Or if you know someone has done it and does not mind my listing the book page, please let me know the URL too. You can drop me a line right there at my book page at http://amzn.to/1evdevT. (Well, embedding a opt-in or contact us form on your book page is part of the trade secret revealed in that book.)

A Secret about Author Central KDP Support Does Not Want You to Know

If your current Author Central account is not with Amazon.com, but with one of the following instead:

  • Amazon.co.uk
  • Amazon.in
  • Amazon.de
  • Amazon.fr
  • Amazon.es
  • Amazon.it
  • Amazon.co.jp
  • Amazon.com.br
  • Amazon.ca
  • Amazon.com.mx

You should immediately open another Author Central account with Amazon.com to gain the full  range of editing access to your books’ details. An Author Central account established with Amazon.com allows you to have up to three noms de plume. Different noms de plume come handy when you write books that cross categories or genre drastically. For example, if you are quite established on political science but all of a sudden want to try your hand on paranormal romance, you are probably better off publishing your experimental romance under a different name than the one that appears on your political science books, lest you startle your readers and lose their loyalty.

However, the more important advantage you gain with an Author Central account with Amazon.com is the access to edit the descriptive details of all your books affiliated with all your noms de plume. Seeing is believing. The following screenshot comparison, courtesy of UK-based author Mr. Philip Henly, should be able to convince you:

The first screenshot shows the book detail interface when Phlip logs into his Author Central account with Amazon.co.uk:

authorcentral_uk

There does not appear anything editable there.

The second screenshot shows you what Philip gets when he log into his Author Central account with Amazon.com. He gets tabs of editing interface: Editorial Reviews, Book Details and Book Extras, each of which presents multiple editable fields.

authorcentral_us_kindle

Last but not least, you get separate three-tab editing access to a different edition (a.k.a., format. such as paperback or audio,) as shown in the third screenshot:

authorcentral_us

You can do wonders with these three editing tabs. (For details on that, check out my latest popular book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description.)

So if your KDP home base is not Amazon.com, start by opening an Author Central account with Amazon.com.

So do yourself a favor, open up an Author Central account with Amazon.com today. And if you are serious about taking advantage of this secret tunnel to book marketing, read KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description.

Why Indie Authors Should Still Do KDP Select Free Promo

I truly believe that nobody can twist the arms of those who are not willing to pay for ebooks to actually pay for your ebooks. Those people will always hunt for freebies. And if the freebies are NOT available, they will check Torrent and download the pirated copies free anyway. It happened with many of my books.

With those free-loaders and hoarders, you can’t win. But the point of KDP Select is to build a lot of affiliation. If a book of yours does not sell and you do not promote it through KDP Select promo, it will just be sitting there pretty by itself. Very few people will ever stumble on it since it will not pop up in any category ranking (Amazon only list the top 100 best sellers of each category.)

On the contrary, when your book takes a ride on a KDP freebie promo, it builds extensive, random affiliation, such as “Buyers who viewed Joyland also viewed [insert your book title here]” or “Buyers who have purchased Fifty Shades of Grey also bought [insert your book title here]” (since free downloads are considered “Amazon verified purchase” in Amazon’s book.)

The rest is statistics. If one out of one hundred of those random affiliation brings you one sale after the promo and you have had three hundred free download, you will sell three copies. Math will never disappoint you. That’s why you want more people to download your book when it is free. In this hypothetical example of one to one hundred sales to freebies ration, three thousand downloads will give you 30 sales.

Of course, you can do a lot to maximize the return of these free downloads, particularly during the downloaders’ visits to your book page.

I wrote a book recently to discuss the wonderful and effective things you could do to retain the visitors’ attention and also sell them your non-freebie title, or at least to try the free samples.

Take a glance of my book on this subject to see if it can be of any value to you: http://amzn.to/1evdevT.

How to Embed a Facebook Post Box in Your Kindle Book Description

View a live demo here.

Now I will walk you through the steps of getting your Facebook Post box, which pertains to one specific post of yours, embedded in Kindle book description. The type or types of the Facebook box(es) you choose to embed in your book description is of no importance to our discussion in this chapter.

a)      Visit Facebook’s social plugin page at https://developers.facebook.com/docs/plugins/. From the left nave choose “Embedded posts.”

fb_embedded_post

b)      Once I supply my Facebook post’s URL, the widget becomes live:

supply_fb_post_url

c)      Click on the “Get Code” and you will be presented with the code block. Make sure that the HTML5 tab is active. Other formats work as well but for the purpose of embedding the widget into Amazon’s book field, HTML5 is the most suitable:

fb_widget_code

You have probably noticed that Facebook’s widget code, just like that of Twitter, features simple HTML but fairly convoluted Javascript:

<div class=”fb-post” data-href=” //www.facebook.com/by.m.eigh/posts/224182587738322″></div>
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/all.js#xfbml=1″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
Once again, we are forced to interpret and re-write the code. For a detailed discussion on how such Javascript should be rewritten, please refer to Chapter Twelve of my book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description.

From here on we just need to follow the same procedure detailed in Chapter Five of my book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description. And voila, we have the Facebook Post Box in a book field:

fb_box_live

Let me also point it out to you: Every step of the way throughout the above process, I have to vigilantly strip off the “http:” or “https:” part of a URLs referenced in the widgets’ code block. By default, all the URLs in the code block you obtain from Twitter or Facebook contains such strings. Do not forget to strip them off, or else your widget cannot be rendered in your book page.

For a more in-depth explanation this unique deal-breaker, please read my book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description.

How to Embed a Tweet Box in Your Kindle Book Description

View a live demo here.

Now I will walk you through the steps of getting your Tweet box embedded in Kindle book description.

a) The first step is to obtain the block of HTML and Javascript code that comes from your Twitter account. After you log into your Twitter account, browse to https://twitter.com/settings/widgets and you will get to option to create your own widget:

create_twitter_widgets

b) You will have choices to create different kinds of widgets but that is completely out of scope with this book. For demonstration purposes, I will use the “Tweets by M. Eigh (@m_eigh)” widget I have already created for myself. Once you click on “Edit,” you will be able to see how the widget looks and copy its code:

twitter_widget_editor

c) For my Tweet box I get the following code:

<a class=”twitter-timeline” href=”https://twitter.com/m_eigh” data-widget-id=”289132321204998144″>Tweets by @m_eigh</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http':’https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);</script>

This is when things get tricky. In general, all HTML block of any social media widget must be treated verbatim when you input them into KDP book field. On the contrary, all Javascript block cannot be treated verbatim. In fact, almost all of them must be rewritten. It is an interpretative re-write in principle. And there is no cheat sheet or formula to follow. You either know how to read Javascript and replace the highlighted block with a more straightforward, Amazon book field friendly Javascript equivalent, or you just have to work with someone who knows Javascript well enough to get it done.
The most often used re-write are fairly simple and elaborated in my book KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description.

After the rewrite, all I need to do is follow the steps outlined in Chapter Five of KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description. to input the code block into a book field.

Voila, there I have my Tweet box live on Amazon:

tweet_box

Frequently Asked Questions about KDP’s Best-Kept Secret Revealed (FAQ)

Concern from the authors… Will Amazon soon declare these options unacceptable and pull the books because people are being led off their site? Does the embedded elements keep them on Amazon or open the vids up on another page? If they are are embedded right on Amazon as you suggest that would be excellent!

Well, they have such concerns because they’ve never read the book.

The empire of Amazon is set up that way in terms of the vast infrastructure and inter-server data handshake. The underlying architecture is what renders this possible. You think it is a light switch they can just flip?

Plus, this is a free country. Why do people think like terrorized North Koreans and are eager to exercise self-censorship? I don’t get it.

And 99.999% of the authors who enhance their book description have ZERO intention of siphon off Amazon’s traffic. Amazon has the most targeted traffic for books and authors want to sell them their books, not to drag them to their narcissistic WordPress rambling.

And of course, a few doosebags may be crazy enough to embed a disguised hyperlink to lead people to their offering of cheap Viagra. But the percentage of doosebags will remain roughly the same, regardless of whether they actually utilize the methods I invented or not. I mean, they can put their phone # there for people to call, for that matter.

The constitution gives us the freedom of assembly. My commercial relationship and transaction with my readers are strictly by Amazon’s book. Outside that, I can choose to socialize and interact a little more with my readers. No corporate tyranny can scare me into not doing that.

And on a technological ground, how does Amazon identify book description entered with my methods vs the conventional? There is virtually no discernible difference. All description are blocks of character strings stored as bits on hard disks.

I’m simply following the Web’s golden rule of 3-15 — that nothing should take more than 3 clicks to open and more than 15 seconds to load. If you put your Facebook fan page’s url in a plain text description and expect a prospective reader to click to select the unlinked URL, right-click and copy, then paste into a Web browser address bar and hit enter, I’d say “fat chance!” Unless you’re Suzanne Collins and your readers are eager to talk Hunger Games with you. Me? I put my Facebook box right there and if they want to post a message to me, it’s one easy click.

The same rule applies to your YouTube trailer video. You can repeat the URL in plain text ten times and nobody will ever bother to go there. But if you have the video right there with a Play arrow, 6 of out of 10 people WILL actually start the playing. 2 or 3 may actually watch it to the end.

So more sales as a result. More monetary homage to Amazon’s corporate coffers. If we live in perfect world, I’d be tempted to expect a fan letter from Jeff Bezos.

There is a great, but little-known Japanese proverb I’d like to introduce to you: Tomorrow’s wind will blow tomorrow. (明日は明日の風が吹く) Make hay while the sun shines. Why bother guessing which way the wind is gonna blow tomorrow?

But one thing is clear: those who have acquired the know-how from my book can do so much more than those who haven’t. It’s that simple. And if your book’s sale could use some improvement, getting the know-how from this book is the least you could do for your brainchild.

There is also a Chinese proverb I’d like to share: The rules are always designed to forgive the mass (法不责众). I’ll spare no effort to market this method to a celebrity author or two, as soon as I can manage, if that makes some authors feel better.

Come on enjoy the ride, authors. Success is never permanent. Your book’s ranking on Amazon changes everyday. But this humble $10 investment may just bring you that joy we all crave as authors — that someone not only buys your book, he also drops you a note about something on the book page that has delivered the fatal attraction to his brain. And that feedback is invaluable to you. It’s worth so much more than the $2.99 you are charging for your book, because it lets you know the things you have done right with your book description. And that same gentleman may well loses his impulse to give you his thought of the moment, if he has to Google you, browse to your blog, click on the contact tab and fill out a form just to send you that love note. That is just a lot to ask from a stranger.

The know-hows in my book enables you to make it super easy for your prospective readers to read your mind, see your passion and beauty and, ultimately, reach out to you. After all, you can never improve if you do not hear from the real average readers.

Can KDP shut down my account for adding these features?

Not for the sake of using the unique method I discovered, or invented.

There is not a single thing illicit in the method. No security exploits, no rogue 3rd party tools to circumvent Amazon’s routine interface. What you will enter into the Book Description field goes through Amazon’s routine scrutiny.

Prior to this book, I’ve sold this secret on Craigslist and SEOClerks to a few Kindle authors at $25 to $30 a pop. So at $9.99 it is a bargain. You will get that money back for sure.

You will only be banned if you use it to sell things illegal or against Amazon’s terms and conditions. But then again, one can do that without this method.

You will love it. Putting a carousel to put all your books in the buyers face alone is already worth it.

I tried to insert an image in html in my description and also used the <h2> to get the Orange text. When I did it in Author Central it showed up with the img etc but then I went on to the actual page and all that had gone -just plain text and no image. What’s going on?

There are three usual suspects that may cause this to happen.

  1. You were not editing the description fields of the Kindle format of your book. This is emphasized in the Book. The technique only works with the Kindle version.
  2. You were not entering your description text into the Composite tab of the Rich Text Editor in AuthorCentral. As emphasized in the book, description should not be entered into the “HTML” tab. (I know, a bit contrarian.)
  3. You missed a crucial step called “double encoding”. Before you put the block of code in the AuthorCentral (Kindle format version) editor, you need to double encode the block of code, then click on “Preview” (that’s when you see HTML code) and finally save.

For example, if you have this in your block:

<img alt=”” src=”//smartpix.eu/Bilder/Ingeautorenpickl.jpg”>

It gets double-encoded first and becomes as follows:

&lt;img alt=&quot;&quot; src=&quot;//smartpix.eu/Bilder/Ingeautorenpickl.jpg&quot;&gt;

You then input the above block of raw string and click on the Preview button, it will become HTML again as follows:

<img alt=”” src=”//smartpix.eu/Bilder/Ingeautorenpickl.jpg”>

And it’s ready to save. Just watch out for line breaks.

So remember: Kindle version only, enter into the Composite tab and always double encode.

I’m a little apprehensive to try. I have two published books on Amazon. Is it possible to go in and redo their description? I also have another one coming out in a few weeks.

You can update your book description as often as you want. In fact, you do not need any tools. You do not go through any secret backdoor. You are interacting with Amazon’s business-as-usual interface.

Purchasing the book entitles you the use of my methods for you as one author (or legal entity.) If you have 17 titles under three different nom de plumes, you are permitted to update those 17 titles as often as you want.

Give it a shot. And grab me after you read it, if you need some hand-holding.

I’ve got an email from a well-known internet marketing guru telling me to buy this book without a second thought. Did you set it up?

Nope. I may purchase some ads if I can afford them, but I will never pay someone to recommend my book. I owe a great deal of gratitude to people who recommend this book in their emails and blogs. They have done what I could not have myself. Here’s an example of a recommendation from Mr. Martin Kerrigan:

Two things today.

First KDP’s Best Kept Secret. We all know what goes into your Kindle book description. Words. Targeted words designed to invoke a response.

WRONG!

Check this out:

http://amzn.to/1evdevT

Amazing! Videos. Widgets. Images. An iframe showing all your books scrolling past. An opt-in form! Facebook. Twitter. Support via email, skype, phone or drums. $10!

I bought this without a second thought. Love it.

http://amzn.to/1evdevT

Marcus, I’m fascinated by this but I’m not very computer savvy. Is it possible for someone like me to actually do these things?

The answer is an absolute, resounding yes. One Canadian writer just did this one minute ago — dropping her YouTube video in the description: http://amzn.to/15eGWDN

I know she’s not a professional writer (not yet, one never knows.) But her profession has nothing to do with computer coding.

You should also read Maria Elizabeth Romana’s very fair review on the book. Only someone who has read my book and made efforts to put the book to a real life test can write a review as good as hers. She hits the nail on the head. Her review is good because it confirms that the know-how’s in my book are guaranteed to work; also because — by the same token — it issues fair warning to people who are not techies that the burden of proof falls partly on the readers too. For your convenience, I’ve quoted her review as follows:

★★★★★ 5.0 out of 5 stars A Promise Delivered, September 24, 2013
Amazon Verified Purchase(What’s this?)
This review is from: KDP’s Best-Kept Secret Revealed: How to Embed Videos and Widgets in Your Book Description (Kindle Edition)

I stumbled upon this book while searching for ways to enhance my books’ descriptions, and what a find it was! I was so frustrated with the KDP and Author Central description systems, because I could never get even basic formatting to come out looking the way I wanted it to. This book was my answer.

Using the information in it, I was able to re-create the book pages for my series and am finally happy with how they look. That said, I must warn you, it was no mean feat. It took me the better part of two days to read through and apply the material, and that was only utilizing the basic techniques; I did not include any forms or video or social media widgets or any of the more advanced topics. The result is a simple, attractive, and compelling sales page, laid out and formatted just as I wanted (see it here: Little Miss Straight Lace, Book One of The Unbreakable Series (Mystery Romance Suspense)).

I was able to do this, because this book is exceptionally well-written and organized. Mr. Eigh doesn’t just talk about what’s possible or give you a bunch of links or fluff. He takes you step-by-step through the process using screenshots, examples, and clearly written text to make the process as simple as it can be. There is a lot of techno-mumbo-jumbo involved, so expect to spend some time reading, experimenting, and testing, as I did, to get quality results. If you are up to the challenge and willing to invest the time, Mr. Eigh’s book will be your roadmap to a winning Kindle sales page.

If you know how to copy and paste and know how to follow instruction, you can get it done.

Plus I am good with my promise of a 1st time walk-through. People are normally pretty proud of themselves and plus my book is super descriptive and clear on steps, so far only two people indicated they would like help.

All I ask you is to please read through it. And if you are not comfortable doing it alone for the first time, just grab me for a walk-through.

And once you read it, you will know that I did thorough analysis on Amazon’s infrastructure and inter-server communication mechanism. This is not a street vendor’s trickery. It’s based on profound science and Amazon’s system is actually configured to support it.

I mean, come on, just to give your prospective readers a book trailer video to watch will enhance their impression of you as an author by many folds.

My HTML book description block has 8000 characters and is 4000 over Amazon’s limit of description field. Is there a way to shorten the html text?

The short answer is there is no “compression” mechanism to cut done on the HTML block. The long answer is you can try the following “alternatives” to try to fit the block into the field. I hope you may find at least one of them work for you:
  1. If the excessive HTML’s come from your descriptive text, not script, inline CSS code or necessary tags such as <a href=””> etc, consider use an iframe. That way all the character count that count against the quota is the <iframe></iframe> block, while you supply the src attribute with an external URL that has your description text block.
  2. If you have excessive inline CSS, such as <font> style=”” etc, consider centralize them in a external .css file and use a <link> or <style> reference. But the saving there may not be that dramatic.
  3. If a large part of your code block consists of pure script references or snippets, consider moving those elements out of your description field and into field such as “From the Author,” “About the Author.” The reason is they get aggregated into the same book page so your script or CSS will function as usual. But pertinent to this point, I am actually not 100% sure you have those fields in your Author Central in Amazon.co.uk.
  4. Exercise economy in your JavaScript and CSS references. For Javascript, simply reference like <script src=””></script> and css just <style src=””></style>. It’s not very pretty but we are not in this for a beauty pageant. We are doing it to sell books.
  5. If you know JavaScript well, you can actually construct your entire book description as a skeletal page full of empty <span id=”1″> and <span id=”2″> etc. Then you use generic JavaScript’s document.getElementById(‘1′).innerHTML = “” or jQuery’s $(‘#1′).html(”) to write the actual html onto the screen.
So the conclusion is you can always fit your block into the field. But every road leads to Rome. You may just have to experiment it a bit to find the perfect solution.

Will this work for Amazon.de (Germany) I know that some things about book description are different than in Amazon.com

It does for certain.

Here are samples of book descriptions on Amazon.de:

http://m.eigh.com/amazon-kdp-authors-getting-fancy-with-their-kindle-book-pages/

You can tell by the authors names (Ingeborg and Hans)

Here’s the key step you must take to make it work:

http://m.eigh.com/a-secret-about-author-central-kdp-support-does-not-want-you-to-know/

Please go ahead and purchase the book. Rest assured it would work. May just be the best $10 you’ve ever spent!