Innkeepr
Home
  • Home
    • Welcome to Innkeepr
    • Getting Started
  • Guides
    • A Basic Installation
    • Server-Side Installation
  • Connections
    • Overview
    • The Innkeepr Spec
      • Spec: Identify
      • Spec: Track
      • Spec: Ecommerce Events
    • Sources Catalog
      • Innkeepr.js
      • Google Ads
      • Google Analytics 4
      • Meta Ads
      • Shopify
      • TikTok Ads
  • References
    • Audiences
    • Events
      • Standard events
      • Custom events
  • Support
    • Resources
      • Cookie Consent
      • Data Protection Statement
    • FAQ
    • Contact
Powered by GitBook
On this page
  1. References
  2. Events

Custom events

PreviousStandard eventsNextResources

Last updated 11 months ago

Innkeepr has open endpoint to log events of your users journey and it's called the 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.

track