Custom Delivery

If you would prefer to handle delivery of your own products, you can set a redirect URL instead of uploading files from a product's edit page. This lets you redirect customers to a URL you choose after their successful purchase. Just scroll down to the Content section where you upload your files, select "Redirect to a URL after purchase" and type in whatever URL you'd like to direct your customers to.

For example, if you specify: https://www.example.com/ — all of your customers will be redirected there upon successful purchase, instead of seeing our download page.

The following information about the purchase is appended to the URL above. If your URL already includes a query string, we will add the information intelligently to not override them:

  • sale_id
  • product_id
  • product_permalink

You can use this feature to provide a "thank you" page for your customers, send them a link to a Zoom webinar registration URL, or use it in conjunction with Gumroad's 'Ping' feature to generate license keys or customize the product you provide in other ways.

Custom Delivery for Versions and Tiers

You can also provide a separate redirect URL for each Version (in case of classic digital products) and Tier (in case of Memberships). When a customer purchases a product, they will be redirected to the URL you've specified for the corresponding Version/Tier. 

Please note that you must choose the redirect method in the Content section before Versions as well for this to work. However, irrespective of the URL you mention in the Content section, the customers will only get redirected to the URL specified for their respective versions.

Custom Delivery in Overlays/Embeds

For better or worse, the Custom Delivery method will not redirect the customer if the purchase is from an Overlays or Embed. The overlay/embed is technically a sub-page on your page so ideally speaking we should not change the outer page when something happens in the inner page.

To make it work for overlay/embeds, you will have to use the post_message_name feature. Basically it gives you a hook to do something after a purchase happens in the overlay:

<script type="text/javascript">
  var gumroadSaleListener = function(ev) {
    if (ev.data && JSON.parse(ev.data).post_message_name == "sale") {
      document.getElementById("post-message-data").innerHTML = ev.data;
      // Do something else here...
    }
  };
  window.addEventListener("message", gumroadSaleListener, false);
</script>
	
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us