CMS & E-Commerce
.track() calls to track custom events.
Though Mixpanel does not have an official plugin to support WordPress, there are plenty of options for getting Mixpanel set up on your WordPress site.
There are a variety of third-party options available that will automatically send data from your WordPress blog to your Mixpanel implementation. Some popular options include third-party plugins (opens in a new tab). Most of these third-party plugins essentially just track page loads, which means you would be tracking some data, but not really fully utilizing the potential of Mixpanel. Though none are officially supported by Mixpanel, they might be worth checking out if you’re looking for a quick and simple solution.
mixpanel.track() calls wherever you see fit.
Mixpanel users who have successfully implemented on a Shopify site have some great recommendations and tips on key locations to place mixpanel.track() calls (opens in a new tab).
In order to view accurate data on conversions from shopping to checkout (a key Funnel for most ecommerce businesses), you’ll need to take a few additional steps since your shop domain is different than the Shopify checkout domain. However, as a shop, you don’t have control over the Shopify checkout page. So instead, you’ll want to pass the distinct_id to the URL on click, then on the Shopify page, parse and execute the Mixpanel methods.
Another consideration with Shopify sites and Mixpanel is that because the checkout page is a separate domain with its own cookie, Initial Referring Domain Properties sent from the checkout page will come through with a referrer of your own Shopify site. You can use the same method described above of passing the
$initial_referring_domain Property to the URL, parse and then execute.
Though Mixpanel does not have an official plugin to support Shopify, there is a Mixpanel app by Five Thrive (opens in a new tab) available in the Shopify app store that will automatically send data from your Shopify store to your Mixpanel implementation. While this integration app is not officially supported by Mixpanel, it might be worth checking out if you're looking for a quick and simple solution.
Was this page useful?