May 18, 2018 12:00 pm

A new product badge for Microsoft Store applications

By / Principal Software Engineering Lead, Microsoft Universal Store Team

Applications with new web badge for Microsoft Store products.

As many of you know, building quality apps is quite a commitment and investment in time. Once your app is in the Store, the next challenge is getting the word out about your new title and driving traffic to your product. Today, we’d like to announce a new tool for marketing your apps in your own blogs and websites. We’d like to introduce our new web badge for Microsoft Store products.

The new badge will render in your own website pulling localized logo, pricing (including sale pricing!), ratings and artwork directly from the store catalog. To render this badge for 8 Zip simply embed this script using its Store Id (9wzdncrfhwb8). Please note you must add the Id in two places in the badge script, the “class=” and inside the “mspb-“.

<div id="mspb-nc9jl2ngc1i" class="9wzdncrfhwb8"></div>
<script src=""></script>
mspb('9wzdncrfhwb8', function(badge) {
document.getElementById('mspb-nc9jl2ngc1i').innerHTML = badge;

The button click on the badge will direct your customers to the proper Product Description Page where they make the actual purchase. You can add multiple badges to any single page, just make sure they all use a unique div Id, as shown above.

To see the badge in action, check out XBOX’s @majornelson ( who is using the badge to promote Xbox content on his blog.

Example post here:

That’s it! Feel free to promote your apps and games on your own sites.

Updated July 11, 2018 9:34 am

Join the conversation

  1. I like the new batch, but I rather see the ‘Get it now’ button placed at the right of the price. Now it adds some unnecessary space at the bottom of the badge when squared app images are shown.

    • Hi Dennis,
      We’re updating the design for the badge again soon. I’ll make sure the design team looks at this.

    • Hi Tsutomu,
      mspb- stands for Microsoft Product Badge. This exists in case you want to have multiple badges on a single page. This value must be unique so that the proper product data can be bound from our catalog. Please let me know if you have any other questions.

        • You could definitely do that if you like! We didn’t reuse the app store ID because some may want to have multiple badges (with the same app id) on a page. Resulting in elements with duplicate DOM ids.