Skip to content

bug: track_links cannot select via a data-attribute DOM query #62

@cardoni

Description

@cardoni

Given a link of the form:

<a href="//somelink.com" data-download-link title="title here" target="_blank">
 some text here
</a>

I cannot successfully get mixpanel.track_links to work, via this:

mixpanel.track_links( "[data-download-link]", "Download Link Clicked" );

"[data-download-link]" is a valid DOM query string, however.

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