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 tag multiple keywords for internal search?

When your internal search engine captures several keywords or criteria at once, you can send them to Piano Analytics in two ways. The method you choose determines whether you can later analyze each keyword on its own, or only as a single combined string.

Separate keywords with a character

With this solution, you separate the various keywords using a chosen character. In this way, multi-criteria is not really taken into account, in the sense that the double entry will be linked and criteria A and B cannot be studied separately.
It's up to you to make the following appear in the interface :

  • Criteria A - Criteria B

  • Criteria A | Criteria B

  • Criteria A _ Criteria B

Criteria A" is linked to "criteria B". On the other hand, you can filter on all A criteria by filtering on "contains A criteria", which will give you all corresponding searches (including all B criteria). The same applies to B criteria. To distinguish keywords, you'll need to reprocess the data using an external tool.

Please also note that, using this solution, you will be limited to a maximum of 255 characters in your string.

Using array string typing

To facilitate your future analyses, we recommend using and sending keywords in array string form. This way of sending data will enable you to centralize your keywords in a single property, but they will still appear separately on the interface, so you can perform analyses on one or more keywords if you wish.

To do this, you need to format your values in a certain way so that they are recognized by our tool :

  • Encapsulate all keywords in square brackets ([ and ]).

  • Each keyword must be individually encapsulated in quotation marks (").

  • Separate all keywords with commas (,).

Example :

["keyword1", "keyword2", "keyword3"]

Please note that you need to create a new Array string property in order to collect and analyze your data. To do so, please refer to this article : Create a property

Last updated: