Skip to content

Plugins should be required to publish the mappings. #588

@dailytabs

Description

@dailytabs

Matomo (Piwik) uses:
trackEvent(category, action, [name], [value])
Angulartics uses:
$analytics.eventTrack('eventName', { param1: 'param1-value', param2: 'param2-value', ... })

How do they map to each other? The angulartics-piwik github page doesn't tell me. I couldn't find it anywhere. I had to figure it out myself by testing it out.

I started by assuming Angulartics' required 'eventName' was Matomo's optional name. This was wrong. The actual mappings from Matomo to Angulartics are:

required category -> optional parameter
required action   -> required eventName
optional name     -> optional parameter

Can't you just have (require) the plugin developers add the mapping to their documentation?

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

    Issue actions