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:
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: stringdate_created: stringdate_updated: stringtimezone: stringcustomer_id: stringdiscount_codes: array [code: string]products: array [product_id variant_idvariant_titlequantitynameskushop_money: {currency_codeamount}image_url]currency: stringtotal_price: numtotal_tax: numtotal_shipping: numemail: stringcustomer_ip_address: stringlocationHref: stringuser_agent: stringcost_of_goods: numbershipping_cost: number
Questions? Contact us at rasmus@trueroas.io and Rasmus will help you out!