SRGSSR / pillarbox-documentation

Technical cross-platform documentation for Pillarbox
3 stars 0 forks source link

Add custom analytics label support? #31

Closed defagos closed 11 months ago

defagos commented 12 months ago

As a developer Integrating Pillarbox I need to be able to send custom labels globally, in page views, events or streaming events, depending on what data analysts require.

As a Play developer I namely am currently sending:

Acceptance criteria

Tasks

defagos commented 12 months ago

This topic was discussed with @waliid and @StaehliJ. A few outputs:

For the moment the best is maybe to not implement anything until the needs describe above are encountered again (because when apps really start integrating Pillarbox these needs might not actually exist anymore).

defagos commented 11 months ago

As discussed again with @waliid and @StaehliJ following recent developments:

We also learned from @pyby85 that several SRG SSR apps use some of the optional fields listed on this page. Therefore:

No such requirements exist for stream events. We are already sending mandatory labels listed on this page, either directly (generated by the player, e.g. position) or indirectly (received from the IL, e.g. URN).

Regarding the shape of the API itself, and given the fact that data for both services diverges, we will likely adopt an approach with custom data structures, one for comScore, the other for Commanders Act.

defagos commented 11 months ago

Done in https://github.com/SRGSSR/pillarbox-documentation/issues/31 and https://github.com/SRGSSR/pillarbox-android/issues/182.