?>

Mixpanel + Freshservice Integrations

Appy Pie Connect allows you to automate multiple workflows between Mixpanel and Freshservice

About Mixpanel

Mixpanel provides product analytics for understanding user behavior in apps & websites. Build better products faster with instant insights.

About Freshservice

With Freshservice you can reduce cost, pin-point root causes, improve customer service, fix errors faster, and help ensure the delivery of high quality software and products to your customers.

Freshservice Integrations
Freshservice Alternatives

Connect the apps you use everyday and find your productivity super-powers.

  • Zendesk Zendesk
  • Zoho Desk Zoho Desk
Connect Mixpanel + Freshservice in easier way

It's easy to connect Mixpanel + Freshservice without coding knowledge. Start creating your own business flow.

    Triggers
  • New Ticket

    Triggers when there is a new ticket is created in Freshservice.

  • New User

    Triggers when a new User is created.

  • Update Ticket

    Triggers when a Ticket is updated.

  • Update User

    Triggers when a user is updated.

    Actions
  • Create or Update Profile

    Create a new profile or update properties of an existing profile.

  • Track Event

    Send an Event to Mixpanel.

How Mixpanel & Freshservice Integrations Work

  1. Step 1: Choose Mixpanel as a trigger app and Select "Trigger" from the Triggers List.

    (30 seconds)

  2. Step 2: Authenticate Mixpanel with Appy Pie Connect.

    (10 seconds)

  3. Step 3: Select Freshservice as an action app.

    (30 seconds)

  4. Step 4: Pick desired action for the selected trigger.

    (10 seconds)

  5. Step 5: Authenticate Freshservice with Appy Pie Connect.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Mixpanel and Freshservice

Mixpanel?

Mixpanel provides analytics services for websites and mobile applications. It has a REST API with which you can integrate to get metrics about your users and then feed that into other systems. It is used by companies like AirBnb, Pinterest, Github, and more.

Freshservice?

Freshservice is an IT management spution for small and medium businesses. With Freshservice you can monitor servers, networks, devices, and appliances. You can also monitor infrastructure of third-party cloud service providers.

Integration of Mixpanel and Freshservice

I have created a sample application using the Django framework on top of virtualenv. The source code of the application is here.

The application uses Mixpanel to track the events and Freshservice to track the infrastructure metrics. I have put some test data into both Mixpanel and Freshservice before starting the integration process.

  • The first step was to install the django-mixpanel plugin for django. I added the mixpanel library and its dependencies to requirements.txt file and installed the dependencies using pip .

pip install -r requirements.txt pip install -r requirements_test.txt pip install -r requirements_dev.txt

  • I then added the mixpanel library to settings.py file. To use the library, there are few steps that need to be taken:

Set your API key in your project’s settings file (in this case it is set in the DEBUG setting. Create an app in your Mixpanel account and copy its client_key , client_secret , access_token , and access_token_secret to the values in your settings file. Create a HTTP Proxy server in your project’s settings file (in this case it is set in the DEBUG setting. Set up a new handler (see below.

# settings.py # Set your API key in your project's settings file (in this case it is set in the DEBUG setting. MIXPANEL_APIKEY = '<your api key>' # Create an app in your Mixpanel account and copy its client_key, client_secret, access_token, and access_token_secret to the values in your settings file. # http://mixpanel.com/docs/api/authentication/client-keys MIXPANEL_CLIENT_KEY = '<your api key>' MIXPANEL_CLIENT_SECRET = '<your api secret>' MIXPANEL_ACCESS_TOKEN = '<your access token>' MIXPANEL_ACCESS_TOKEN_SECRET = '<your access token secret>' # The fplowing line tells Django's server where to find the Mixpanel javascript tracking code. # You can find it here. https://cdnjs.cloudflare.com/ajax/libs/mixpanel/3.0.1/mixpanel.min.js #MIXPANEL_TRACKING_JS = 'https://cdnjs.cloudflare.com/ajax/libs/mixpanel/3.0.1/mixpanel.min.js' # The fplowing line tells Django's server where to find the Mixpanel skeleton tracking code. # You can find it here. https://cdnjs.cloudflare.com/ajax/libs/mixpanel/3.0.1/mixpanel-skeleton-1.0.min.js #MIXPANEL_TRACKING_SKELETON = 'https://cdnjs.cloudflare.com/ajax/libs/mixpanel/3.0.1/mixpanel-skeleton-1.0.min.js' # Configure the default HttpProxy class to use your new instance of ProxyHandler from mixpanel import MixpanelMixin class MixpanelMixin(object). def get_http_proxy(self). return self._http_proxy def _get_http_proxy(self, method, url). proxy = urllib2._ProxyHandler({ "http". self._http_proxy }. return proxy def _get_http(self, method, url, **kw). try. return self._get(method, url, **kw. except urllib2._HTTPError. raise HTTPError("Cannot connect to proxy %s"%url. def _get(self, method, url, **kw). if kw['track'] == 'js'. return self._get_javascript(method, url. elif kw['track'] == 'skeleton'. return self._get_javascript(method, url. else. return super(MixpanelMixin, self._get(method, url, **kw. def _get_javascript(self, method, url). content = HTTPCookieProcessor(. content._setcookie('MPCookie', '/'. content._setcookie('MPSID', '<your sid>'. content._setcookie('MPAccessToken', MIXPANEL_ACCESS_TOKEN. content._setcookie('MPAccessTokenSecret', MIXPANEL_ACCESS_TOKEN_SECRET. content._setcookie('MPLogType', 'js'. content._setcookie('MPJsonParams', url=url. return fetch(url,'application/javascript; charset=UTF-8', headers={'Content-Type':'application/javascript; charset=UTF-8'}, proxies=content. def fetch(url='<url>', method='GET', body='', headers=None, cookies=None, allow_redirects=True, proxies=None). ""Fetch URL."" if proxies is None. proxies = {} else. proxies = urllib2._ProxyHandler({}. fetcher = urllib2._FetchHandler(. fetcher._setup(proxies. fetcher.addheaders = [(headers or {}), cookies or {}] if allow_redirects. fetcher._fplowlocation = True fetcher._timeout = None else. fetcher._timeout = None fetcher._transparent = True fetcher._content = None fetcher._dontrequest = True if method == 'HEAD'. method = 'GET' if body is not None. body += '&body=%s' % body if headers is not None. headers += '&headers=%s' % headers if cookies is not None. cookies += '&cookies=%s' % cookies fetchurl = { "http". proxies[DEFAULT_PROXY], "https". proxies[DEFAULT_PROXY] }[method] + urllib2._urlencode(body=body. + urllib2._urlencode(headers=headers. + urllib2._urlencode(proxies=proxies. + urllib2._urlencode(cookies=cookies. if proxies. fetchurl += urllib2._quote(fetchurl['http']+fetchurl['https']. else. fetchurl += '/' fetcher._url = fetchurl return fetcher @classmethod def get(cls, *args, **kwargs). args = list(args. kwargs = dict([(arg, kwargs[arg]. for arg in args]. h = cls(.__class__(. h._super(.__init__(*args, **kwargs. return h def get_http(self). return cls(.get(*self._args. def get(*self, *args). args = list(self. self._super(.__init__(*args. return self @classmethod def get_(cls, *args). args = list(args. kwargs = dict([(arg, kwargs[arg]. for arg in args]. h = cls(.__class__(. h._super(.__init__(*args, **kwargs. return h def get(*self). return cls(.get(*self._args. def _get(self, *args). if args[0] == 'js'. return self._get_javascript(*args[1:]. elif args[0] == 'skeleton'. return self._get_javascript(*args[1:]. else. return super(MixpanelMixin, self._get(*args. def _get_(self). return self._super(.__

The process to integrate Mixpanel and Freshservice may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.