Shopify custom pixel

Shopify does not let scripts run on checkout pages. To count add to cart and orders without the FitMyType app, paste one custom pixel in your Shopify admin. It takes about five minutes.

  1. 1. Before you start

    Use this only if you cannot install the FitMyType Shopify app. The app adds its own pixel and keeps it up to date. If you have the app, you do not need this page.

    Get your pixel code from FitMyType: your contact sends it to you. Your client ID and your product ID setting are already written in. Do not change the code.

  2. 2. Add the custom pixel

    • In your Shopify admin, open Settings → Customer events.
    • Choose Add custom pixel and name it FitMyType.
  3. 3. Set the permission and data sale

    • Permission: choose "Required", then tick "Analytics" only. Shopify then runs the pixel only for visitors who accept analytics cookies.
    • Data sale: choose "Data collected does not qualify as data sale".

    Do not choose "Not required": the pixel would then run without the visitor's consent, which EU privacy rules do not allow.

  4. 4. Paste the code

    Delete the example code in the Code box and paste your FitMyType pixel code.

  5. 5. Save and connect

    • Choose Save at the top of the page.
    • Choose Connect. Back on Customer events, the pixel shows as Connected.

    Place a test order with analytics cookies accepted. Within a minute it shows in the FitMyType back-office under Integration → Tracking, with each item's size.

  6. 6. When you install the FitMyType app

    Remove this custom pixel once you install the FitMyType app: the app adds its own pixel. In Settings → Customer events, open the FitMyType custom pixel, choose Disconnect, then delete it. FitMyType counts each order once even while both run.

What the pixel sends

The pixel sends add to cart as cart, and Shopify's checkout as checkout with its total, to /events/pixel/shopify. FitMyType stores the checkout as transaction_end with total_price, the same as an order from the tracking tag, so your dashboards count one kind of order.

On Shopify only the pixel sends cart and orders. Do not also add the tag's cart or transaction_end calls to your theme. See Tag events.