I've tried to use getElementByClassName('intercom-post') but its not good enough selector. Is there an api like Intercom('onShow', f()) for posts (not the messenger)?
Is the a way to know when a post is open?
Best answer by Evan P
Hey @noam, 👋 thanks for reaching out! I'm one of the Support Engineers here @ Intercom! 👍
This isn't currently possible using the Intercom Javascript API. We don't have a method that would work in a similar way to what you described. Potentially if you knew the conditions for showing a post you could then preemptively prepare for this post to show. As an example if my post shows when a user has xyz attribute. I can then check in my backend if my user has xyz attribute then I know when they show on a page with Intercom installed the post should show. I hope that makes sense.
I know this isn't the most ideal workaround so if you'd like I can pass this along as a feature request to the product team so that we can potentially see this in the future, How does that sound? Thanks! 😊
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.