Enabling Anonymous download for Hubs - FAQ

Modified on Wed, 11 Dec at 3:06 AM

Q. Can I allow assets to be downloaded anonymously?

A.  The short answer is Yes, add the below Javascript to your hub that would allow all assets to be downloaded anonymously.


JS Code:

window.getHushlyConfig = function (callback) {
  let result ={ungated: true, anonymousDownload: true};
    console.log('Hub Result is:', result);
    callback(result);  
  };

How to insert the custom Javascript for a V2 Hub

Insert the JS Code in the Hub: Branding > JavaScript section. 

How to insert the custom Javascript for a V3 Hub

To insert a JS Code in a V3 Hub, Select the Hub > from the Hub left Nav > click Custom Code > Fill in the necessary fields > add the JS Code in the Code section and click Save.

Note: To read more on how to add custom codes, click on Adding Custom Code to your V3 Hub, 


Hub Runtime:

The below Registration Form is displayed when the Javascript is not inserted in the Hub.


When the JavaScript is added to your Hub this would allow the user to download the asset anonymously.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article