We did this and we can pull the unread notification count from Discourse to our other site without problems.
The issue we are facing is that now the numbers for the bubbles are not the same on the other site and discourse.
For the blue bubbles (notifications) once a user opens the drop down in discourse the counter is reset to 0, even if he doesnt open the notifications.
On our other website however the notifications are still counted as unread. So it might still display X unread notifications on the other site, while on Discourse the counter is reset to 0.
This is quite confusing for users. Is there any way to pull not the number of unread notifications, but the number displayed in the blue bubble on Discourse (which gets set to 0 when a user opens the notification drop down)?