Hubspot Embed Code

Hubspot's landing page builder strips out the default Spiffy Checkout embed code, so you will need to use this code below.

Be sure to edit the Checkout URL at the top of the code below – adding your own Spiffy Checkout URL – and change the "yourSpiffySubdomain" at the end of the code to match your URL as well.

<div class="spiffy-checkout-wrap" data-url="https://yourcompany.spiffy.co/checkout/personal-brand-accelerator">&nbsp;</div>
<script>
"use strict";!function(t,e){var i=e.spiffy=e.spiffy||[];if(!i.init){
if(i.invoked)return void(e.console&&console.error&&console.warn("Spiffy Elements included twice."))
;i.invoked=!0,i.methods=["identify","config","reset","debug","off","on"],i.factory=function(t){
return function(){var e=Array.prototype.slice.call(arguments);return e.unshift(t),i.push(e),i}},
i.methods.forEach(function(t){spiffy[t]=i.factory(t)}),i.load=function(e){if(!spiffy.ACCOUNT){
spiffy.ACCOUNT=e;var i=t.createElement("script");i.type="text/javascript",i.async=!0,
i.crossorigin="anonymous",i.src="https://js.static.spiffy.co/spiffy.js?a="+e
;var n=t.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}}}}(document,window),
spiffy.SNIPPET_VERSION="1.0.2";
 var els = document.getElementsByClassName('spiffy-checkout-wrap')
     for (var i = 0; i < els.length; i++) { 
        var url = els[i].getAttribute("data-url")
        var chEl = document.createElement('spiffy-checkout')
        chEl.setAttribute('url', url)
        els[i].append(chEl)
     }
spiffy.load("yourSpiffySubdomain");
</script>