Skip to main content

💰 Revenue Attribution

Understand exactly which social posts are driving real sales. OmniSocial AI connects the dots between social engagement and e-commerce revenue using UTM-based tracking and multi-touch attribution.


How Attribution Works​

  1. Link tagging — OmniSocial AI automatically appends UTM parameters to links in your posts
  2. Click tracking — When a user clicks through, the UTM data travels with them to your store
  3. Order matching — When a purchase happens, the CommerceOrder record captures UTM fields (utmSource, utmMedium, utmCampaign, utmContent, utmTerm) along with referrerUrl and landingPage
  4. Attribution calculation — The RevenueAttribution model matches orders to posts and assigns credit
Behind the Scenes

The RevenueAttribution model handles the mapping between orders and posts:

FieldDescription
attributionModelThe model used (first-touch, last-touch, multi-touch)
attributionWeightWeight assigned to this touchpoint (0–1, sums to 1 across touchpoints)
revenueRevenue credited to this touchpoint
matchedFieldWhich UTM field matched (e.g., utmContent, utmCampaign)
matchedValueThe actual value that was matched

Revenue Dashboard​

View your complete revenue picture at Analytics > Revenue (GET /commerce/revenue/dashboard):

MetricDescription
Total Social RevenueSum of all revenue attributed to social posts
Revenue by PlatformBreakdown by Instagram, Facebook, TikTok
Revenue by PostWhich individual posts drove the most sales
Top Revenue ContentRanked list of highest-earning content
Conversion FunnelImpression → Click → Purchase pipeline

Per-Post Revenue​

Every post with attributed sales shows detailed revenue data from the PostRevenue model:

FieldDescription
totalRevenueTotal revenue attributed to this post
totalOrdersNumber of orders from this post
totalUnitsTotal product units sold
avgOrderValueAverage order value
conversionRateClick-to-purchase conversion rate
roasReturn on ad spend (if the post was boosted)

Access per-post revenue via GET /commerce/revenue/posts/:postId, or see it inline on the Post Analytics page.


Additional Revenue Endpoints​

EndpointMethodDescription
/commerce/revenue/dashboardGETFull revenue dashboard data
/commerce/revenue/posts/:postIdGETRevenue for a specific post
/commerce/ordersGETBrowse attributed orders
/commerce/segmentsGETRevenue segmented by audience, campaign, or platform
/commerce/couponsGETTrack coupon code performance

Customer Segments​

The segmentation endpoint (GET /commerce/segments) lets you analyze revenue by:

  • Platform — Which social platform drives the highest-value customers?
  • Campaign — Which campaign generated the most revenue?
  • Content type — Do product posts or lifestyle posts convert better?
  • Audience segment — Which customer cohorts are most valuable?

Coupon Tracking​

If you use coupon codes in your social posts, the coupons endpoint (GET /commerce/coupons) tracks:

  • Redemption count per coupon code
  • Revenue generated per coupon
  • Which posts distributed each coupon
  • Conversion rate by coupon
tip

Use unique coupon codes per post or campaign for granular attribution. This provides a secondary attribution signal alongside UTM tracking, covering cases where users don't click through directly.


KPI Tracking & Alerts​

Set revenue KPIs and track progress against them. The AI monitors your trajectory and alerts you when:

  • You're on track to exceed your revenue target
  • You're falling behind and need to adjust strategy
  • A specific post or campaign is significantly over- or under-performing

These insights also feed into the AI Advisor for strategic recommendations.

warning

Revenue attribution requires an e-commerce store connection. Make sure your store integration is active and UTM parameters are flowing correctly through your checkout.


  • Connect Stores — Set up your e-commerce integration
  • Product Posts — Generate revenue-driving content from your catalog
  • Post Analytics — See revenue alongside engagement metrics
  • Dashboard — Revenue overview in the main analytics view
  • Auto-Boost & Ads — Maximize ROAS by boosting high-converting posts