Skip to content

Tracking links with nested SVGs #2

@smiska

Description

@smiska

If you create a link (anchor tag) in your html and set the necessary "data-elementTrackId" attribute, and nest an svg inside the link (usual use case with social media icons), then the tracking breaks, as the event.target is set to the svg, and svg does not allow event bubbling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions