You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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.
The text was updated successfully, but these errors were encountered:
cardoni
changed the title
track_links cannot select via a data-attribute DOM query
bug: track_links cannot select via a data-attribute DOM query
Dec 10, 2015
Had a similar problem recently. Looks like this is because the regex for making the attribute match uses (\w+) to select the attribute name. If it used ([\w\-]+) then attributes with dashes would work.
Given a link of the form:
I cannot successfully get
mixpanel.track_links
to work, via this:"[data-download-link]"
is a valid DOM query string, however.The text was updated successfully, but these errors were encountered: