Google Books Preview Woocommerce snippet

I am trying to insert a Google Books Preview pop-up on Woocommerce product pages. The code Google provide is:

<script type="text/javascript" src="//books.google.com/books/previewlib.js"></script>
<script type="text/javascript">
GBS_insertPreviewButtonPopup('ISBN:XXXXXXXXXXX');
</script>

This code embeds a button which when clicked will open a pop-up preview of the relevant book. XXXXXXXXXXX has to be replaced with the product SKU, all of which are book ISBN numbers on this site. The placement would use a hook such as woocommerce_product_meta_end or woocommerce_after_single_product_summary.

I’ve tried creating a Code Snippet by adapting answers given in previous requests, but none of them seem to aim to just embed this button (there is one request for a shortcode – that is not what I need). And my attempts to use php to echo the sku in place of XXXXXXXXXXX have failed as my coding ability is limited.

Can anybody suggest how to achieve what I want?