Content types
5 min
getting started a subset of content aware events are based on the \<font color="#3b9f0f">content type\</font> of the affected content these events are documented with their tracking key templates at action events docid 8rra4o7vzdaw13y joqek and view events docid\ mixe5 ijkbr47eummdyga , but not with their possible occurrences a tracking key template itself includes a placeholder for the \<font color="#3b9f0f">content type\</font> the \<font color="#3b9f0f">content type\</font> is determined at runtime (e g in the app) and used instead of the placeholder in the respective tracking key template the \<font color="#3b9f0f">content types\</font> are described in the following paragraph content types docid\ tz lfyagszxfbnspzmiwq an example for finding and configuring a corresponding event is described in the paragraph content type based event docid\ tz lfyagszxfbnspzmiwq content types the content type can have the following values \<font color="#2166ae">issue\</font> \<font color="#2166ae">post\</font> \<font color="#2166ae">bundle\</font> all content that is available in an app, for example, is assigned to one of these \<font color="#3b9f0f">content types\</font> the \<font color="#3b9f0f">content types\</font> are passed for the placeholders in the tracking key template uppercased before they are used for tracking for example, " \<font color="#2166ae">issue\</font> " becomes " \<font color="#3b9f0f">issue\</font> " content type based event in order to configure a \<font color="#3b9f0f">content type\</font> based event, three steps are necessary what usecase to track and how to find your event how to find which \<font color="#3b9f0f">content type\</font> your content has how to create a corresponding entry in your tracking config json example step 1 what usecase to track and how to find your event as an example, a user's tap on the bookmark button of an issue in the storefront of an app should be tracked this is an action event and the corresponding event documentation can be found here docid 8rra4o7vzdaw13y joqek the event consists of the following tracking key template storefront < \<font color="#3b9f0f">content type\</font> > bookmark add clicked step 2 how to find which \<font color="#3b9f0f">content type\</font> your content has this step depends on how your content comes to your app for this example we assume that the user taps on bookmark button for an issue so that case results in a \<font color="#3b9f0f">content type\</font> " \<font color="#3b9f0f">issue\</font> " step 3 how to create a corresponding entry in your tracking config json now we simply replace the placeholder " \<font color="#3b9f0f">content type\</font> " within the tracking key template by " \<font color="#3b9f0f">issue\</font> " and then get the final tracking key storefront issue bookmark add clicked now compose your event configuration and add it to your tracking config json so your event configuration may look as follows code sample "storefront issue bookmark add clicked" { "templates" { "action" "issue bookmark add clicked" }, "parameters" { "view" "{{view}}", "issue id" "{{issue id}}", "issue name" "{{issue name}}", "issue categories" "{{issue categories}}", "issue tags" "{{issue tags}}", "issue purchasable" "{{issue purchasable}}", "issue purchased" "{{issue purchased}}", "issue product id" "{{issue product id}}", "publication id" "{{publication id}}", "publication name" "{{publication name}}" } } note the code sample above is used for firebase depending on your tracking service that configuration may differ