How to Set Up Mixpanel Server-Side Tracking

Overview

Prerequisites:

Before you can enable your Mixpanel Server-Side Destination, you will need to install the Shopify Source on your store. Follow our guide on how to Install the Shopify Source


Add Mixpanel as a Server-Side Destination

Add Destination:

  • On the homepage of your Elevar Account, locate and click on the "My Tracking" tab from the left-hand menu.
  • Once in "My Tracking" section, select the "Add Destination" button in the upper right hand corner of the page.
  • A side bar pop-up window will appear, titled "Add Destination".
    • Within this pop-up, use the search function and type "Mixpanel".
    • Once the Mixpanel destination appears from the search function, click on it.
      • (See Figure 1)

Step 1 screenshot

_Figure 1_

  • Get Started:

    • After locating and clicking on the Mixpanel destination, you will be taken to overview screen.
    • Click the "Get Started" button in the lower left-hand corner of the Overview box.
      • (See Figure 2)

Step 2 screenshot

_Figure 2_

Entering Mixpanel Settings

Mixpanel Project Token:

  • Within the "Mixpanel Settings" section, type your Mixpanel Project Token into the text box.
  • Click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 3)

Step 1 screenshot

Figure 3

Select Events:

  • Once you have entered your Mixpanel Project Token, you have to select what events the Events settings.
    • Click on the button labeled "Use best practices". By default, we have enabled all the events we support and have provided an event name for each.
    • If you would like to adjust the events sent, select "Customize settings". Then use the boxes to check off which events you would like to send to Mixpanel.
    • You can also change and adjust the names of these events by clicking on the "Event Name" box next to each event and type in the desired name.
    • If your previous tracking used different event names, please change the names to match. This will ensure continuity between your historical and future data.
  • After selecting what the events click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 4)

Step 4 screenshot

Figure 4

Consent Mode:

  • After selecting what events you want to send to Mixpanel, you will be prompted to enable Consent Mode.
    • Enabling Consent Mode: To enable Consent Mode, click on the "Yes, enable for this destination" button.
      • By enabling Consent mode, your destination will be made "consent aware". This allows you to adjust when data gets sent to this destination based on the consent choices of your users.
      • If you've configured consent mode in your data layer settings for cookie compliance, then you can configure this option here as well. [How to make sure my server-side tracking adheres to my consent rules]
  • If you do not want to enable Consent Mode in your data layer settings, click on the "No" button.
  • Once you have all of selected all of the information for enabling Consent Mode, click on the "Save and Continue" button at the bottom of this section.
    • (See Figure 5)

Step 5 screenshot

Figure 5

Filter Transactions:

  • After selecting details for enabling Consent Mode, you need to choose whether or not to filter transactions. This step allows you to control exactly what purchase events are sent to Mixpanel.

  • Currently, our recommended practices suggests clicking the button labeled, "Yes, Block some transactions".

    • Additionally, if you have chosen "Yes, Block some transactions" navigate to the section below titled "Block some transactions" and ensure that the "Use Best Practices" button is selected.
  • If you do not want to Filter Transactions, then click on the button labeled "No, Send all".

  • Once you have all of selected all of the information for Filtered Transactions, click on the "Save and Continue" button at the bottom of this section.

    • (See Figure 6)

Step 6 screenshot

_Figure 6_

Subscriptions:

  • If you sell subscriptions, select whether you are using the unified Shopify checkout, or using a separate checkout.

  • If you do not sell subscriptions, select the button labeled "No".

  • Once you have all of selected all of the information for Subscriptions using unified Shopify checkout, click on the "Save and Continue" button at the bottom of this section.

    • (See Figure 7)

Step 7 screenshot

_Figure 7_

Going Live:

  • After completing all of the previous Mixpanel Setup Steps, an Overview page will appear.
  • If all of the details within the Configuration Summary look correct, then click on the button labeled "Go Live" at the bottom of this section.
  • A pop-up window will appear, asking for a confirmation of your changes.
  • Click on the button labeled "Yes, Go Live".
    • (See Figure 8)

Step 8 screenshot

Figure 8