If you’re trying to send the data that is associated with a Discourse event, you might be able to use the approach that’s outlined in this post: Integrate Google Tag Manager with Google Analytics - #44.
It should work if you’re trying to catch any of the following events:
post:createdtopic-notifications-button:changedtopic:createdpage:bookmark-post-toggledpage:like-toggled