Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Analytics
English French
English French

How do I populate Goal Type values using tags?

In Piano Analytics, you can populate the Goal Type property (property key: goal_type) directly from your tagging to identify the events that correspond to a goal completion.

Historically, goals were declared by defining a goal page (with a primary or secondary type) and then receiving a hit containing a page load. This approach is no longer required: any event type (page view, click, or custom event) can be considered a goal as long as it carries the goal_type property.

The Goal Type property enables users to declare a wider variety of objectives.

Tagging goal types

To populate the Goal Type property directly from the tag, make sure that:

  • You are using a recent version of the Piano Analytics SDK.

  • You are using the custom property setting method described in our developer documentation, with the following tag, taking care to edit the goal value:

pa.setProperty('goal_type', 'signup');

By adding this tag to your relevant events with objectives, you inform, for each event, the corresponding value for the Goal Type property.

If updating existing tags is not feasible, you can populate goal_type using a processing rule in the Data Management interface. Please refer to Declare a goal with Data Management

Last updated: