javascript - Mixpanel img href tracking not working -


i've hyperlink image i'd tracked mixpanel, it's not seemed picked mixpanel.

here html

<div class = "discounts">         <a href="http://www.google.com" target="_blank"><img src="/static/m1/images/google.png" alt="google"></a>     </div> 

here mixpanel js

<script type="text/javascript">     mixpanel.track_links(".discounts a", "google logo", {"referrer": document.referrer}); </script> 

i've no idea why event not getting registered on mixpanel.

please help.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -