Shopify Connector

Last updated:

The Shopify Connector for PostHog enables you to sync customer and order data from Shopify, into PostHog.

This app will:

  • Associate your Shopify customers with PostHog users
  • Create a PostHog user from a Shopify customer if it doesn't exist
  • Create events for every new order

If there is an error while fetching orders, the next run of runEveryMinute() will try to re-read information from where it was previously interrupted.

Requirements

Using this app requires either PostHog Cloud, or a self-hosted PostHog instance running version 1.30.0 or later.

Not running 1.30.0? Find out how to update your self-hosted PostHog deployment!

Installation

  1. Visit the 'Apps' page in your instance of PostHog.
  2. Search for 'Shopify' and select the app, press 'Install'.
  3. Follow the steps below to configure the app.

Configuration

To configure the Shopify Connector you will need to set the store name from your Shopify account.

Additionally, you will need to create a Shopify Access Token, which the Shopify Connector app will call to fetch orders into PostHog.

To create a Shopify Access Token, create an app on the admin page of your Shopify Account and generate Admin API access token in the API Credentials tab or your newly created Shopify app.

Additional configuration

OptionDescription
Shopify Store
Type: string
Required: True
Store ID not including '.myshopify.com' (e.g. 'posthog', NOT 'posthog.myshopify.com')
Shopify Access Token
Type: string
Required: True

FAQ

Is the source code for this app available?

PostHog is open-source and so are all apps on the platform. The source code for the Shopify Connector app is available on GitHub.

Who created this app?

We'd like to thank community member Sreeraj Rajan for his work creating this app. Thank you, Sreeraj!

Who maintains this app?

This app is maintained by the community. If you have issues with the app not functioning as intended, please let us know!

What if I have feedback on this app?

We love feature requests and feedback! Please tell us what you think! to tell us what you think.

Or, if you see the feedback widget enabled, use that!

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum, or drop us a message.

Where can I find out more?

Check the Shopify API reference docs for more information about connecting services to Shopify.

Questions?

Was this page useful?

Next article

Stripe Connector

Stripe is a payments platform used by millions of companies. The Stripe Connector enables you to get information about revenue and payments from Stripe, into PostHog. Once revenue information is in PostHog, you can analyze it just like any other PostHog event using insights and dashboards. Installation Log in to your PostHog instance Click 'Apps' on the left-hand tool bar Search for 'Stripe' Select the app, press 'Install' and follow the configuration instructions accessed by pressing the cog…

Read next article