Skip to main content

🛒 Connect Your E-Commerce Store

Link your online store to OmniSocial AI to unlock revenue attribution, AI-generated product posts, and social-to-sales analytics.


Supported Platforms​

OmniSocial AI integrates with three e-commerce platforms, each stored as an EcommerceStore record:

PlatformIntegration TypeConnect EndpointStore Model Value
ShopifyOAuth appPOST /ecommerce/shopifySHOPIFY
WooCommerceAPI keyPOST /ecommerce/woocommerceWOOCOMMERCE
EasyOrdersAPI keyPOST /ecommerce/easyordersEASYORDERS

How to Connect​

  1. Go to Settings > E-Commerce
  2. Click Connect Store
  3. Select your platform (Shopify, WooCommerce, or EasyOrders)
  4. Follow the authorization flow:
    • Shopify: You'll be redirected to Shopify to authorize the OAuth app
    • WooCommerce / EasyOrders: Enter your store URL and API credentials
  5. Select which product catalog to sync
Behind the Scenes

When you connect a store, an EcommerceStore record is created with the following fields:

FieldDescription
platformSHOPIFY, WOOCOMMERCE, or EASYORDERS
storeNameYour store's display name
storeUrlThe URL of your online store
currencyDefault currency for the store
quickPostSettingsJSON configuration for rapid product post generation

What Gets Synced​

Once connected, OmniSocial AI pulls your product catalog. Each product is stored as an EcommerceProduct:

FieldDescription
platformProductIdThe product's ID in your store platform
titleProduct name
descriptionProduct description
priceCurrent price
currencyPrice currency
imageUrlPrimary product image
productUrlDirect link to the product page
statusACTIVE, DRAFT_PRODUCT, or ARCHIVED_PRODUCT
inventoryCurrent stock level

Ongoing Sync​

Product data syncs automatically on a schedule. You can also trigger a manual sync at any time:

POST /ecommerce/:id/sync

Or in the UI: Settings > E-Commerce > Sync Now

tip

Enable automatic sync to ensure your product posts always reflect current prices, inventory levels, and availability. Out-of-stock products are automatically flagged so you don't promote unavailable items.


Managing Your Store​

Once connected, you can manage your store via the following endpoints:

EndpointMethodDescription
/ecommerce/:idGETGet store details
/ecommerce/:id/productsGETList synced products
/ecommerce/:id/templatesGETList product post templates
/ecommerce/:id/templatesPOSTCreate a new post template
/ecommerce/:id/syncPOSTTrigger manual product sync

Order Tracking​

Beyond products, the system also tracks CommerceOrder data for revenue attribution. Each order captures UTM tracking parameters:

UTM FieldDescription
utmSourceTraffic source (e.g., "instagram", "facebook")
utmMediumMarketing medium (e.g., "social", "paid")
utmCampaignCampaign name
utmContentSpecific content piece (maps to post ID)
utmTermSearch term (if applicable)
referrerUrlThe URL the customer came from
landingPageThe first page the customer visited

This data powers the Revenue Attribution system.

warning

Make sure UTM parameters are preserved through your checkout flow. If your store uses redirects that strip UTM params, attribution may be incomplete. Test the flow by clicking a tracked link and verifying the UTM values arrive at checkout.


Next Steps​