Skip to content

.mapping but for attributes #55

@jasonkarns

Description

@jasonkarns

The .mapping feature looks really awesome, but seems a bit hamstrung. As a consumer, I would expect to be able to map not only the event name (for a particular integration) but also the attributes for a given track call. For example, GTM is quite happy accepting a nested json structure of attributes; however, Optimizely cannot. So in order to send the "same" data to optimizely as GTM, the attribute structure must be mutated for one or the other (or both) of the integrations.

It would be fantastic if there were a feature like .mapping but for attributes as well. Has there been any thought about this type of feature in the past? Any recommended alternatives? As best as I can tell, it would be presently implemented as a per-integration option. But having the capability to define it for all integrations would be fantastic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jasonkarns

        Issue actions

          .mapping but for attributes · Issue #55 · segmentio/analytics.js-integration