Skip to content

Dynamically setting additional properties on route change #110

@lukahartwig

Description

@lukahartwig

Request / Idea

Allow meta.gtmAdditionalEventData to be dynamically resolved whenever router.afterEach is called. This could be done for example by allowing gtmAdditionalEventData to be a function or by adding a callback to the options that is called to resolve gtmAdditionalEventData.

Additional Context

Currently additional properties can be set on a per route basis with meta.gtmAdditionalEventData. I would like to read these properties from the vuex store when the route changes because the data changes over time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions