=== Background
While working on {T350497} Abstract Wikipedia team suggested to add `activity_session` as a new contextual attribute to be able to manage user activity sessions (to distinguish it from the `user_session` one, we have to keep in mind that `activity_session` has an independent value for sessions opened in different instances in the same browser).
We'd need to add it as a new attribute to the Metrics Platform JS client library (it's a web-based specific attribute).
=== AC
[] `activity_session` contextual attribute has been added to the [[ https://gerrit.wikimedia.org/r/plugins/gitiles/schemas/event/secondary/+/refs/heads/master/jsonschema/analytics/product_metrics/web/base | web base schema ]]
[] `activity_session` attribute has been added to the Metrics Platform JS client library (+ the EventLogging work that has to be done in the [[https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/EventLogging/+/refs/heads/master/includes/MetricsPlatform/ContextAttributesFactory.php|ContextAttributeFactory]])
[] (Bonus) Take the opportunity to reduce the complexity of the integration between JS client library and EventLogging (in the same way it's already [[https://gitlab.wikimedia.org/repos/data-engineering/metrics-platform/-/blob/main/php/src/Integration.php?ref_type=heads|done for the PHP client library]])
=== Notes
- `activity_session`field in datahub: https://datahub.wikimedia.org/glossaryTerm/urn:li:glossaryTerm:0f6b8770-8db9-4eb5-b205-4225daf5bb1b/Documentation?is_lineage_mode=false