{"__v":4,"_id":"54bdeb83445a490c00f41398","category":{"__v":4,"_id":"54bb05ab522f03150054d9e8","pages":["54bc9262e40d150c00d7f92e","54bdeb83445a490c00f41398","54c7a9d356f4ff0d00aaabe3","54f168f5c3b80e1900b1eb1b"],"project":"53844557a43e08da4677be0e","version":"53844558a43e08da4677be12","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-18T01:00:27.133Z","from_sync":false,"order":3,"slug":"3rd-party-integrations","title":"3rd Party Integrations"},"project":"53844557a43e08da4677be0e","user":"5384345d90c19d5e43a8170c","version":{"__v":8,"_id":"53844558a43e08da4677be12","project":"53844557a43e08da4677be0e","createdAt":"2014-05-27T07:57:12.136Z","releaseDate":"2014-05-27T07:57:12.136Z","categories":["53844558a43e08da4677be13","538619e1ef91f96d49aa1a0b","541e82877eb16bb64f83c0ca","5445a073c3eb3808000c76b2","5445a098c3eb3808000c76b3","54bb05ab522f03150054d9e8","54bb05cf9741c81500078f73","55b7d0e5568be2230092bb92"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"false","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-01-20T05:45:39.060Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"If you are a MixPanel user, you can ship any user-related data that you have in your MixPanel account over to Knowtify very easily. \n\nThere are a couple of different ways you can have your data integrated from MixPanel to Knowtify. Both are valuable, so it is likely you will want to do them in conjunction. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Nightly Data Dump\"\n}\n[/block]\nYou can schedule a daily dump of all of your data associated with People in MixPanel by entering you MixPanel API Key and API Secret into your Knowtify account. \n\nYou can do that here: [http://www.knowtify.io/integrations/mixpanel](http://www.knowtify.io/integrations/mixpanel) \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/K4zhcMFQViqjrtlMQUXg_skitch.png\",\n        \"skitch.png\",\n        \"467\",\n        \"276\",\n        \"#f4648c\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nOnce you enter your MixPanel account info (and click Update), your MixPanel data will be transferred in the next update (which happens late at night PST). From that point forward, your data will be updated on a nightly basis. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Webhooks\"\n}\n[/block]\nYou can also push your MixPanel data to Knowtify via a webhook set up in the MixPanel Notifications center. \n\nWith this methodology, you can:\n\n1. Ship over all your existing data in an initial dump.\n2. Ship any new user immediately upon signup.\n3. Immediately ship user data when specific rules are met. \n\nTo set up webhooks integration:\n\n1. While in your MixPanel account, go to the Notifications center. From here, you can set up a New Notification:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3FWjspUTJWcE13305ygR_skitch.png\",\n        \"skitch.png\",\n        1185,\n        666,\n        \"\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nFrom the Notification center, you can set up an event/notification to ship data to Knowtify. Simply name the webhook (ie - \"User Creation in Knowtify\") and enter the following URL in the Webhook URL box:\n\nhttps://www.knowtify.io/hook/mixpanel/YOUR_KNOWTIFY_API_KEY\n\nMake sure that you replace YOUR_KNOWTIFY_API_KEY with the alphanumeric API key you find on your [Knowtify Account page](http://www.knowtify.io/settings).\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/BnBNH3ZFQNFK6QVSFgcg_skitch.png\",\n        \"skitch.png\",\n        \"921\",\n        \"548\",\n        \"#495a77\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nOnce that is set, you can create a set of rules which will define when data will be shipped to Knowtify. If you would like to transfer all of your current user data to Knowtify immediately, you can set the rule:\n\nEmail >> is Set  (see below)\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/frHhjd20R7KmBPOFgtu2_skitch.png\",\n        \"skitch.png\",\n        \"1162\",\n        \"657\",\n        \"#4c5f7c\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n(make sure to set the created data accordingly to insure that all your users are sent over)\n\nThe great part about shipping data according to this rule is that it will not only ship over data for all your existing users in MixPanel, **but it will create a new user in Knowtify for any new user that is passed through MixPanel**. \n\nBeyond this, you can set up an infinite number of webhooks to ship over new user data according to any rules you'd like. So, if you'd like to update a user's record when he/she hits some behavior milestone (ie - uploads a photo, receives 10 friend requests, etc), simply create a webhook with those rules and your data will be shipped to Knowtify accordingly. It's very flexible.\n\nA couple of things you need to be aware of when using MixPanel webhooks:\n\n1. MixPanel only allows data to be shipped one time per user per webhook. This means you will not be able to manage transactional emails that you want to be delivered every time certain criteria is met via this method. You will have to send these emails via our [transactional APIs](http://api.knowtify.io/v1.0/docs/sending-event-based-emails). \n2. Data shipped via webhooks often takes up to 30 minutes to reach the Knowtify endpoint. Just be aware of this as you plan any Knowtify emails designed around webhooks.","excerpt":"How to push your user data from MixPanel to Knowtify","slug":"mixpanel-integration","type":"basic","title":"MIXPANEL"}

MIXPANEL

How to push your user data from MixPanel to Knowtify

If you are a MixPanel user, you can ship any user-related data that you have in your MixPanel account over to Knowtify very easily. There are a couple of different ways you can have your data integrated from MixPanel to Knowtify. Both are valuable, so it is likely you will want to do them in conjunction. [block:api-header] { "type": "basic", "title": "Nightly Data Dump" } [/block] You can schedule a daily dump of all of your data associated with People in MixPanel by entering you MixPanel API Key and API Secret into your Knowtify account. You can do that here: [http://www.knowtify.io/integrations/mixpanel](http://www.knowtify.io/integrations/mixpanel) [block:image] { "images": [ { "image": [ "https://files.readme.io/K4zhcMFQViqjrtlMQUXg_skitch.png", "skitch.png", "467", "276", "#f4648c", "" ] } ] } [/block] Once you enter your MixPanel account info (and click Update), your MixPanel data will be transferred in the next update (which happens late at night PST). From that point forward, your data will be updated on a nightly basis. [block:api-header] { "type": "basic", "title": "Webhooks" } [/block] You can also push your MixPanel data to Knowtify via a webhook set up in the MixPanel Notifications center. With this methodology, you can: 1. Ship over all your existing data in an initial dump. 2. Ship any new user immediately upon signup. 3. Immediately ship user data when specific rules are met. To set up webhooks integration: 1. While in your MixPanel account, go to the Notifications center. From here, you can set up a New Notification: [block:image] { "images": [ { "image": [ "https://files.readme.io/3FWjspUTJWcE13305ygR_skitch.png", "skitch.png", 1185, 666, "", "" ] } ] } [/block] From the Notification center, you can set up an event/notification to ship data to Knowtify. Simply name the webhook (ie - "User Creation in Knowtify") and enter the following URL in the Webhook URL box: https://www.knowtify.io/hook/mixpanel/YOUR_KNOWTIFY_API_KEY Make sure that you replace YOUR_KNOWTIFY_API_KEY with the alphanumeric API key you find on your [Knowtify Account page](http://www.knowtify.io/settings). [block:image] { "images": [ { "image": [ "https://files.readme.io/BnBNH3ZFQNFK6QVSFgcg_skitch.png", "skitch.png", "921", "548", "#495a77", "" ] } ] } [/block] Once that is set, you can create a set of rules which will define when data will be shipped to Knowtify. If you would like to transfer all of your current user data to Knowtify immediately, you can set the rule: Email >> is Set (see below) [block:image] { "images": [ { "image": [ "https://files.readme.io/frHhjd20R7KmBPOFgtu2_skitch.png", "skitch.png", "1162", "657", "#4c5f7c", "" ] } ] } [/block] (make sure to set the created data accordingly to insure that all your users are sent over) The great part about shipping data according to this rule is that it will not only ship over data for all your existing users in MixPanel, **but it will create a new user in Knowtify for any new user that is passed through MixPanel**. Beyond this, you can set up an infinite number of webhooks to ship over new user data according to any rules you'd like. So, if you'd like to update a user's record when he/she hits some behavior milestone (ie - uploads a photo, receives 10 friend requests, etc), simply create a webhook with those rules and your data will be shipped to Knowtify accordingly. It's very flexible. A couple of things you need to be aware of when using MixPanel webhooks: 1. MixPanel only allows data to be shipped one time per user per webhook. This means you will not be able to manage transactional emails that you want to be delivered every time certain criteria is met via this method. You will have to send these emails via our [transactional APIs](http://api.knowtify.io/v1.0/docs/sending-event-based-emails). 2. Data shipped via webhooks often takes up to 30 minutes to reach the Knowtify endpoint. Just be aware of this as you plan any Knowtify emails designed around webhooks.