title: Problems with mixpanel and a tags
body: <p>So I have the following line of code</p>
  
  <pre><code>&lt;a href="/creator/"&gt;&lt;button onclick='mixpanel.track("Get Started Clicked")'&gt;Get started&lt;/button&gt;&lt;/a&gt;
  </code></pre>
  
  <p>But while it goes to the link it never manages to send the event to mixpanel. I've tried a few tests, mainly putting in a different function such as</p>
  
  <pre><code>&lt;a href="/creator/"&gt;&lt;button onclick='console.log("Button clicked")'&gt;Get started&lt;/button&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Which works. I've even tried variants such as</p>
  
  <pre><code>&lt;button onclick='mixpanel.track("Get Started Clicked");window.location="/creator/"'&gt;Get started&lt;/button&gt;
  </code></pre>
  
  <p>Which still doesn't work. The only time I've gotten the event to be tracked was when it was JUST the mixpanel call and no page change. Does anyone know why this might be the case? How to fix it?</p>