Custom events

Innkeepr has open endpoint to log events of your users journey and it's called the track call. It describes any arbitrary event that the user has triggered. Track can be used to log users events alongside any properties of your choice.

Here’s the payload of a typical track call with most common fields removed:

{
  "type": "track",
  "event": "User Registered",
  "properties": {
    "plan": "Pro Annual",
    "accountType" : "Facebook"
  }
}

And here’s the corresponding JavaScript event that would generate the above payload:

Innkeepr.track("User Registered", {
  plan: "Pro Annual",
  accountType: "Facebook"
});

Sending custom events

To implement custom conversion events within Google Tag Manager, you can use a custom JavaScript tag. Here's a sample code snippet for a User Registered event:

<script>
  Innkeepr.track("User Registered", {
    plan: "Pro Annual",
    accountType: "Facebook"
  });
</script>

Use this tag and configure it to trigger when a user successfully completes the registration process on your website. This way, the conversion event will be send to Innkeepr and is ready to be used to build audiences on top of accordingly.

Last updated