SOLVED: How can I add custom HTML <div> and .js script to a page?

I’m sure this is extremely basic, as I can do it on in a custom HTML or Wordpress site easily, but…

I’m trying to add a snippet to a page that embeds a Kingsumo giveaway. The snippet is:

<div id="kingsumo-embed" data-url="https://kingsumo.com/g/qfjq0n/rude-tech-effects-august-giveaway"></div>
<script src="https://kingsumo.com/js/embed.js"></script>

I tried this by adding a Custom Liquid block in the page builder and pasting that snippet in the code block, but no luck.

What is the (I’m sure extremely basic) thing I’m doing wrong? I’m brand new to liquid.


SOLUTION: I was doing it correctly, but the preview wasn’t generating. Save the page (this will publish the change, so be quick!), refresh, then try the preview again. If you have issues, revert the change, save again, and check your code.