{"id":72924,"date":"2021-05-18T14:22:04","date_gmt":"2021-05-18T18:22:04","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=72924"},"modified":"2023-09-13T11:57:21","modified_gmt":"2023-09-13T15:57:21","slug":"drupal-mixpanel","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/","title":{"rendered":"Drupal Mixpanel Integration Methods"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-1024x538.jpg\" alt=\"Drupal Mixpanel Integration\" class=\"wp-image-72921\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-1024x538.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-300x158.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-768x403.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Drupal <strong>Mixpanel<\/strong> integration grants access to a product analytics stack with powerful features centered around deep user segmentation and A\/B testing. This is much more complex than most popular web analytics tools like Matomo. Those are primarily focused on reporting user activity, not modifying a website in accordance with someone\u2019s user agent, geolocation, etc. From Mixpanel.com you can develop complex integrations and API calls to modify web sites and applications <em>automatically<\/em> based on reported user analysis.<\/p>\n\n\n\n<p>As great as it is, Mixpanel integration with a content management system (CMS) can be difficult. Many Mixpanel CMS integrations only provide basic integration using the Mixpanel token ID. For anything more you\u2019ll need to develop API calls within code that may not be accessible in an admin dashboard by default.<\/p>\n\n\n\n<p>Depending on your goals with Mixpanel, and your comfort level with editing code, there are three ways to integrate Mixpanel with Drupal:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#setup\">Drupal Mixpanel Integration Module<\/a><\/li>\n\n\n\n<li><a href=\"#manual\">Manual Mixpanel Drupal Integration<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#header\">Header and Footer Scripts Module<\/a><\/li>\n\n\n\n<li><a href=\"#core\">Manually Editing Drupal Files<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setup\">Drupal Mixpanel Integration Module<\/h2>\n\n\n\n<p>As of Spring 2021, Drupal 7 users can use the <a href=\"https:\/\/www.drupal.org\/project\/mixpanel\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\"><strong>Mixpanel<\/strong><\/a> Drupal module (version 7.x-1.3). The Drupal 8 port is still in progress, according to the module description. If you choose this method, remember that it is covered by the security advisory policy but was last updated in 2016. Ensure you\u2019re using the latest PHP version and a proactive server malware scanner to handle cyber threats.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/how-to-upload-a-new-module-to-drupal\/\">Install the Drupal module<\/a> using the <strong>Mixpanel<\/strong> download link for your Drupal version.<\/li>\n\n\n\n<li>Click <strong>Enable newly added modules<\/strong>.<\/li>\n\n\n\n<li>There will be a dedicated section for Mixpanel. Check the boxes for <em>Mixpanel<\/em> and <em>Mixpanel defaults<\/em>. You\u2019ll need the separate Rules module to enable <em>Mixpanel rules<\/em> which can assist you with configuring what data is reported.<\/li>\n\n\n\n<li>At the bottom, select <strong>Save Configuration<\/strong>.<\/li>\n\n\n\n<li>To the right of <em>Mixpanel<\/em>, select <strong>Configure<\/strong>.<\/li>\n\n\n\n<li>Uncheck <em>Queue and send events during cron<\/em> for immediate data reporting.<\/li>\n\n\n\n<li>Uncheck the option to track anonymous users to focus on Drupal users instead of all visitors.<\/li>\n\n\n\n<li>Log into your Mixpanel.com account.<\/li>\n\n\n\n<li>In the upper-right corner, select the gear icon and the project name from the menu.<\/li>\n\n\n\n<li>Copy the alphanumeric project token string and paste it in the Drupal Mixpanel Token text field.<\/li>\n\n\n\n<li>Select <strong>Save Configuration<\/strong>.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/clear-caching\/\">Clear your Drupal cache<\/a> to ensure the tracking code is public immediately.<\/li>\n\n\n\n<li>Log into your Drupal site in a <a href=\"https:\/\/www.inmotionhosting.com\/support\/resources\/how-to-start-a-private-browsing-session\/\">private browsing session<\/a>. The Mixpanel defaults module will send data for joining\/leaving a group, modifying users, user login\/logout, modifying a node, and creating a comment. Page views stats aren\u2019t sent by default.<\/li>\n\n\n\n<li>In Mixpanel, select the gear icon in the upper-right corner and <strong>Set up Mixpanel<\/strong>.<\/li>\n\n\n\n<li>At the bottom, beside <em>Check for Incoming Data<\/em>, select <strong>Check<\/strong>. The notification should change to \u201c<em>We successfully received your data!<\/em>\u201d\u00a0<\/li>\n\n\n\n<li>Select <strong>Start Using Mixpanel<\/strong>.<\/li>\n\n\n\n<li>You\u2019ll need to configure your insights report to see the logged event. Under <em>Events &amp; Cohorts, <\/em>select <strong>+ Add<\/strong> and <strong>Event<\/strong>.<\/li>\n\n\n\n<li>In the <em>Select event<\/em> drop-down menu, you\u2019ll see options from recorded events. To see everything, choose <strong>All Events<\/strong>.<\/li>\n\n\n\n<li>The line graph at the bottom will update accordingly. You may choose to learn more about sending custom events to Mixpanel in a custom module or the Rules module.<\/li>\n\n\n\n<li>You can use the Header and Footer Scripts module covered below to add tracking code for additional events including page activity.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"359\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/drupal-mixpanel-settings-1024x359.png\" alt=\"Drupal Mixpanel module settings\" class=\"wp-image-72922\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/drupal-mixpanel-settings-1024x359.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/drupal-mixpanel-settings-300x105.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/drupal-mixpanel-settings-768x269.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/drupal-mixpanel-settings-1536x539.png 1536w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/drupal-mixpanel-settings.png 1919w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"manual\">Manual Mixpanel Drupal Integration<\/h2>\n\n\n\n<p>For Drupal 8 users, and those who prefer not to use an old module, there are other methods. The first one is to use the <strong>Header and Footer Scripts<\/strong> Drupal module. Like the Mixpanel module, this scripts module is covered by the security advisory policy and hasn\u2019t been updated in 2-3 years (as of Spring 2021).\u00a0<\/p>\n\n\n\n<p>Unlike the Mixpanel Drupal 7 module, it is much more popular with over four thousand installations and available for Drupal 8. Still, ensure you have a solid cybersecurity posture beforehand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"header\">Header and Footer Scripts Module<\/h3>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Install and enable the <strong>Header and Footer Scripts<\/strong> module for Drupal 7 or 8.<\/li>\n\n\n\n<li>Select <strong>Header and Footer Scripts<\/strong> from the <em>Configuration<\/em> page.<\/li>\n\n\n\n<li>Go to the <em>Set up Mixpanel<\/em> page.<\/li>\n\n\n\n<li>Under <em>Install Library (SDK)<\/em>, copy the HTML snippet and paste it into the <strong>Header Scripts<\/strong>, not \u201cStyles,\u201d text box.<\/li>\n\n\n\n<li>Select <strong>Save Header Settings<\/strong>.<\/li>\n\n\n\n<li>Select the <strong>Body Scripts<\/strong> tab.<\/li>\n\n\n\n<li>Add this tracking code in the <strong>Body Scripts<\/strong> field. This will only gather page views but it is a starting point to ensure your setup works: <pre>&lt;script&gt;mixpanel.track(\"Viewed Page\", {'Page Name': document.title, 'Page URL': window.location.pathname});&lt;\/script&gt;<\/pre><\/li>\n\n\n\n<li>At the bottom, select <strong>Save Body Settings<\/strong>.<\/li>\n\n\n\n<li>Clear your Drupal cache to ensure the tracking code is public.<\/li>\n\n\n\n<li>View a few pages of your Drupal site in a private browsing session.\u00a0<\/li>\n\n\n\n<li>At the bottom of the Mixpanel setup page, select the <strong>Check <\/strong>button. The notification to the left should change to \u201c<em>We successfully received your data!<\/em>\u201d\u00a0<\/li>\n\n\n\n<li>Select <strong>Start Using Mixpanel<\/strong>.<\/li>\n\n\n\n<li>At the top, ensure <strong>Insights<\/strong> is selected.<\/li>\n\n\n\n<li>Under <em>Events &amp; Cohorts<\/em>, select <strong>+ Add<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Event<\/strong>, then <strong>Viewed Page<\/strong>. The graph at the bottom will update accordingly.<\/li>\n\n\n\n<li>Under <em>Breakdown<\/em>, select <strong>+ Add<\/strong>.<\/li>\n\n\n\n<li>Select <em>Page Name<\/em> or <em>Page URL<\/em>.<\/li>\n\n\n\n<li>Change the visualization to a pie graph for a different representation.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"809\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/mixpanel-insights-viewed-page-1024x809.png\" alt=\"Mixpanel viewed page and page name insights\" class=\"wp-image-72923\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/mixpanel-insights-viewed-page-1024x809.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/mixpanel-insights-viewed-page-300x237.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/mixpanel-insights-viewed-page-768x606.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/mixpanel-insights-viewed-page.png 1326w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"core\">Manually Editing Drupal Core Files<\/h3>\n\n\n\n<p>If you\u2019d prefer to not use any modules at all, you can edit Drupal core files. There are multiple methods for this including:\u00a0<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Editing core and theme files<\/li>\n\n\n\n<li>Structure blocks<\/li>\n\n\n\n<li>Native Drupal APIs<\/li>\n<\/ul>\n\n\n\n<p>Unless you\u2019re comfortable editing Drupal core files, you should first create a backup and seek assistance from <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/find-drupal-developers\/\">Drupal developers<\/a> via Freenode internet relay chat (IRC) channels and other Drupal communities. You could also contact Mixpanel technical support directly. This allows you to best determine which method would work best for your needs and Drupal hosting plan. Let us know if you have any questions regarding Drupal Mixpanel integration.<\/p>\n\n\n<p>For more step-by-step guides and practical tips, visit our <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/\">Drupal Education Channel<\/a>.<\/p>\n\n\n\n<p class=\"alert alert-info\">Ignite your online presence with cutting-edge\u00a0<a href=\"https:\/\/www.inmotionhosting.com\/drupal-hosting\">Drupal Website Hosting<\/a>. Elevate speed, security, and reliability for a seamless website experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drupal Mixpanel integration grants access to a product analytics stack with powerful features centered around deep user segmentation and A\/B testing. This is much more complex than most popular web analytics tools like Matomo. Those are primarily focused on reporting user activity, not modifying a website in accordance with someone\u2019s user agent, geolocation, etc. From<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[372],"tags":[],"class_list":["post-72924","post","type-post","status-publish","format-standard","hentry","category-drupal"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>3 Best Drupal Mixpanel Integration Methods | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn about the Mixpanel product analytics application, then the pros and cons of multiple methods for Drupal Mixpanel integration.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3 Best Drupal Mixpanel Integration Methods | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn about the Mixpanel product analytics application, then the pros and cons of multiple methods for Drupal Mixpanel integration.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-18T18:22:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-13T15:57:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Drupal Mixpanel Integration Methods\",\"datePublished\":\"2021-05-18T18:22:04+00:00\",\"dateModified\":\"2023-09-13T15:57:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\"},\"wordCount\":974,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-1024x538.jpg\",\"articleSection\":[\"Drupal\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\",\"name\":\"3 Best Drupal Mixpanel Integration Methods | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-1024x538.jpg\",\"datePublished\":\"2021-05-18T18:22:04+00:00\",\"dateModified\":\"2023-09-13T15:57:21+00:00\",\"description\":\"Learn about the Mixpanel product analytics application, then the pros and cons of multiple methods for Drupal Mixpanel integration.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Drupal Mixpanel Integration\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Drupal Mixpanel Integration Methods\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"3 Best Drupal Mixpanel Integration Methods | InMotion Hosting","description":"Learn about the Mixpanel product analytics application, then the pros and cons of multiple methods for Drupal Mixpanel integration.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/","og_locale":"en_US","og_type":"article","og_title":"3 Best Drupal Mixpanel Integration Methods | InMotion Hosting","og_description":"Learn about the Mixpanel product analytics application, then the pros and cons of multiple methods for Drupal Mixpanel integration.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-05-18T18:22:04+00:00","article_modified_time":"2023-09-13T15:57:21+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg","type":"image\/jpeg"}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Drupal Mixpanel Integration Methods","datePublished":"2021-05-18T18:22:04+00:00","dateModified":"2023-09-13T15:57:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/"},"wordCount":974,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-1024x538.jpg","articleSection":["Drupal"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/","name":"3 Best Drupal Mixpanel Integration Methods | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel-1024x538.jpg","datePublished":"2021-05-18T18:22:04+00:00","dateModified":"2023-09-13T15:57:21+00:00","description":"Learn about the Mixpanel product analytics application, then the pros and cons of multiple methods for Drupal Mixpanel integration.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-drupal-mixpanel.jpg","width":1200,"height":630,"caption":"Drupal Mixpanel Integration"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/drupal-mixpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Drupal Mixpanel Integration Methods"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":372,"name":"Drupal","slug":"drupal","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/drupal\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/72924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=72924"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/72924\/revisions"}],"predecessor-version":[{"id":106571,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/72924\/revisions\/106571"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=72924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=72924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=72924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}