Hub, ABM Page and Embed Streams: Un-gating content for known user in my Marketing Automation Platform

Modified on Mon, 21 Nov, 2022 at 2:08 AM

Q. Can I un-gate content if I know the visitor?

A. The short answer is Yes. That said, Hushly won't know if a visitor is a contact in your MAP. If you know the visitor is a contact in your MAP, you can configure a javascript function, with your own custom logic, that tells Hushly if the visitor is a known MAP contact so that Hushly can un-gate the content for the visitor.   


JS Code:

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

If the result is set to ungated: true then the experience will be ungated. If the result is set to ungated: false then the experience will be gated.


How to insert the custom Javascript for Experiences

Method #1  Google Tag Manager

Google Tag Manager, is a great way to manage all the additional JavaScript, or "tags" and "tracking pixels" to your website without involving development resources.


You can configure the above JavaScript function by creating a Tag in Google Tag Manager. Make sure this tag triggers on all the web pages where the Hushly experiences are configured.


Method #2  Manual

Insert the above JavaScript function in the Hub: Branding > Head section, where the Hushly experiences are configured.

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