Custom Integration Docs for TrueROAS
TrueROAS

Integrate Any Platform into TrueRoas

If you're looking for a way to integrate into TrueRoas (technically). Then you reached the right spot.


Here's a video going through how the process may look like:

Video not loading? Watch it here

Step 1. Add browser tracking script

Requirements
  • The script should be loaded on all pages and websites where the customers may visit.

Create and acquire the script from https://app.trueroas.io/integrations/attribution Example script:

<script type="text/javascript"> var _reroas = window._reroas = window._reroas || []; (function() { var u="https://app.trueroas.io/script/"; var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.src=u+'reattributeScript.js'; s.parentNode.insertBefore(g,s); _reroas.push(['uid', YOURGENERATEDUSERID']); _reroas.push(['pixelId', 'YOURPIXELID']); _reroas.push(['event', 'PageView']); })(); </script>

This script needs to be triggered upon every Pageview in your application. It is to install this script script straight into the application, without using Google Tag Manager or other tag manager services.

The script should exist inside the <head></head> section for each page and be triggered from there.

Step 2. Send order data

Send order data to TrueRoas via the webhook url.


Requirements
  • The webhook should be called whenever an order is created.
  • The webhook should be called whenever an order is updated (for post-purchase upsells).

You can acquire the URL fromhttps://app.trueroas.io/integrations/store.

Example webhook-url:

https://app.trueroas.io/api/shopify/ordercreated?uid=YOURGENERATEDUSERID&pixel_id=YOURPIXELID

This webhook can be used for a POST request where the JSON body contains the order data. Here's an example request:

POST Request

order_id: string
date_created: string
date_updated: string
timezone: string
customer_id: string
discount_codes: array
[
code: string
]
products: array
[
product_id
variant_id
variant_title
quantity
name
sku
shop_money: {
currency_code
amount
}
image_url
]
currency: string
total_price: num
total_tax: num
total_shipping: num
email: string
customer_ip_address: string
locationHref: string
user_agent: string
cost_of_goods: number
shipping_cost: number

Questions? Contact us at rasmus@trueroas.io and Rasmus will help you out!

True ROAS

HomeTriple Whale vs TrueRoasWhy True ROASPricing

Company

BlogGDPR + Ethical TrackingPrivacy PolicyTerms of Service

Get Started

Log inSign Up

Follow Us