How to track events and send them to GTM, Facebook or others?

AI-generated summary

The discussion revolves around tracking events on a front-end site, such as user registration and engagement, for analytics and conversion measurement. agmontpetit is seeking the best method for tracking these events to send them to tools like Google Tag Manager (GTM), Facebook Pixel, or others.

Specifically, agmontpetit is struggling to track:

  • Account creation: as users coming from Google/FB oAuth registration do not see the /u/account-created page.
  • Post creation: can be tracked using the topic:created AppEvent.
  • Liking a post: was initially unclear, but simon suggested using the page:like-toggled event.

Despite finding a solution for post creation and liking, agmontpetit and steven.surdiacourt are still seeking a reliable method for tracking signups.

I’m wondering what would be the best way to track events happening on the (front-end) site such as user registration or engagement (for example, post creation or liked post). Tracking such events is fundamental for analytics, conversion measurement or simply in order to build audiences, as it is widely used by tools like Google Analytics, Google Tag Manager or Facebook Pixel.

The question seems to have been asked many times before (here or here), but I couldn’t find a convincing answer. I’m asking this again in case something has changed, or someone more experienced comes across my question.

Let’s go through a few examples.

Account creation

It does not seem to suffice tracking URLs such as /u/account-created, as this would miss users coming from Google/FB oAuth registration (they don’t get to see that page). What would be the best alternative here?

Post creation

It seems one can use an AppEvent (topic:created) in order to trigger those events.

Liking a post

This seems the hardest as I couldn’t find any AppEvent trigger nor there is a specific URL to track like in the case of account creation.

For tracking posts created and likes, have a look at the code in this post: Integrate Google Tag Manager with Google Analytics - #44.

Excellent! Wasn’t aware of the page:like-toggled event.

Now I just need to figure out how to properly track signups.

Did you ever figure this out? I would be interested in this as well.