title: How to integrate mixpanel with angular2
body: <p>In index.html I have added mixpanel code from <a href="https://mixpanel.com/help/reference/javascript" rel="noreferrer">https://mixpanel.com/help/reference/javascript</a>.</p>
  
  <p>In my</p>
  
  <pre><code>export class MixpanelService {
  
    constructor() {
      mixpanel.init("sdfsdf", '', "development");
    }
  
    public track() {
      mixpanel.track('click', {pageName:'login'})
    }
  }
  </code></pre>
  
  <p>Getting the following error:</p>
  
  <pre><code>Cannot find name 'mixpanel'.
     mixpanel.init("sdfsdf", '', "development");
  </code></pre>
  
  <p>Can somebody help me on this.</p>