新しいドキュメントサイトへようこそ。これまで日本語で公開されていた記事は、本サイトでもご利用いただけます。サイトをご利用の際に、ブックマークを新しいURLに更新してください。日本語版がない記事は、英語版をご利用ください。日本語コンテンツは今後も引き続き更新していきます。

Use Custom Event API

Prev Next
This content is currently unavailable in Ja - 日本語. You are viewing the default (English) version.

This article explains how to use the Custom Event API.

Overview

Gainsight PX Web SDK supports the ability to send custom events via API. Trigger an API call to create a custom event using the name for the custom event as well as properties/values for that event.

The following data types are supported:

  • string

  • number

  • boolean

  • datetime (ISO 8601 UTC date and time)

  • nested objects that are saved as a string

Here is an example call:

// Tracking examples with event properties

aptrinsic('track', 'Video', {"name":"Welcome Video","Category":"Onboarding","Length" :5000 ,"Launched" : true , "Launched date":"2018-03-08T18:11:00Z" }); 

// Track search
aptrinsic('track', 'Search', {"terms":"profile setting how-to","results":10,"Category":"Admin"}); 

//

Also, in the example above the custom event includes property/values for the custom event (name, Audience size, Launched, etc), your custom event would, of course, have properties specific to your custom event.

Note:

Custom Event properties are case insensitive. For example, the event property of name can be sent as "Name" or "name".

Custom Event Limits

For information on the custom event limits, refer to the Gainsight PX Package Overview article.