Implementing Badges for Books

Edited

Implementing the badges for books with ISBNs

mplementing badges for books is as simple as any of our other badges. Technical materials with instructions for embedding badges can be found here.

First, add this line of code anywhere on your HTML page:

<script type='text/javascript' src='https://embed.altmetric.com/assets/embed.js'></script>

Then, just add the <div> element specifying an ISBN wherever you want a badge to appear.

The data-isbn attribute can contain a 10 or 13 digit ISBN. The book badge is generated if Altmetric has attention records associated with that ISBN. The badge will generate whether or not the hyphens are included in the ISBN, for example:

<div class='altmetric-embed' data-badge-type='donut' data-isbn='978-0-415-71896-7'></div>

Implementing the badges for books with other identifiers

Badges for books with other identifiers (DOIs, PMIDs etc.) can be implemented the same way as badges for other scholarly outputs, with no <div> amendment required. As with other badges, you can customize the size and badge type.

You can find more information about Altmetric for books here and if you would like to add the badges for books on your content, please contact us.