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: Setup Google Tag Manager for Analytics.
It should work if you’re trying to catch any of the following events:
post:created
topic-notifications-button:changed
topic:created
page:bookmark-post-toggled
page:like-toggled