Shopify
Integrating Rimdian with Shopify allows you to collect users navigation, import previous orders & customers and sync your data in real-time with webhooks.
The integration is composed of 3 steps:
- Adding the JavaScript SDK on your template
- Adding a script in the “order confirmation” page
- Creating a Shopify API key and connecting it with Rimdian
Adding the JavaScript SDK
This integration requires the intervention of a frontend web developer.
Initialisation
The SDK can be initialised at the end of the HTML <body> ... </body>
tags of your layout, usually in the template file Layout > theme.liquid
Adding a script on your “order confirmation” page
It is mandatory to track the order on the client side with the following script to attach the order to the current web session. Without this step, we won’t be able to properly attribute the performance of your marketing efforts.
Checkout pages are controlled by Shopify and are not available in your templates (unless you are a Shopify+ customer).
To track order on the confirmation page, you have to copy and paste the following script into your store Settings > Checkout and accounts > Order status page “Additional scripts”
Creating a Shopify API key for Rimdian
In order to be able to import the previous orders & customers, and receive updates in real-time via webhooks, we need to connect Rimdian to your Shopify store API.
- Go to
Settings > Apps and sales channels
- Click on the button
Develop apps for your store
- Click on the button
Create an app
, and name it “Rimdian” - Then click on the button
Configure Admin API scopes
- Check the following scopes and save:
read_orders
,read_customers
,read_customer_events
- Then click on the button
Install app
- Grab the
Admin API access token
,API key
andAPI secret key
, and paste them into your Rimdian Shopify app. - Then connect your Shopify app in Rimdian