Mixpanel img href tracking not working

I've a hyperlink image that I'd like to be tracked by Mixpanel, but it's not seemed to be picked up by Mixpanel.

Here is the html

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

Here is the mixpanel js

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

I've no idea why the event is not getting registered on Mixpanel.

Please help.

Answers:

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.