Overview
The Olapic Checkout Code allows you to send important data from your conversion funnel to Olapic. The purpose of this code is to capture the data from the orders made by customers and tie the data back to Olapic components or widgets installed on your site.
Validation Options
To validate the checkout code, you have the following options:
Olapic Checkout and Validation
Your Solutions Architect can complete the test checkout and validation; please provide the following test information for Olapic to validate the code for you:
Test credit card information
Staging environment URL and access credentials
Any test purchase rules (i.e. orders less than $200, no in-store pickup etc…)
Client Checkout and Olapic Validation:
If Option 1 is not possible, anyone on your side can make a test purchase and we can validate this data on our end. Here are the steps for this option:
We are using Google Chrome as our preferred browser in the following steps.
Open up your browser and navigate to the page with the Olapic widget implemented. Interact with the widget (e.g., click on a UGC, navigation button, etc). Write down the URL of the page.
Add two of the same products to the cart. Add one of a different product to the cart. Write down the product URLs.
Perform checkout. DevTools should be turned on before you get to this page, otherwise, the checkout request will not be captured in the DevTools.
At the confirmation page of the checkout process, take note of the URL.
In the Network tab of Chrome DevTools, search for
checkout.gif
(base domain should bedata.photorank.me
)Right-click the
checkout.gif
request, and click Save as HAR with Content.
Thereafter, please provide the following information to me so we can verify everything for you:
Sample URL where an Olapic widget is implemented.
The products that were added to the cart.
URL where the Olapic checkout code is implemented.
HAR data from confirmation page.
Client Checkout - Detailed Instructions
We are using Google Chrome as our preferred browser in the following steps.
Start on Page with Olapic Widget Interact with the widget (click on a photo, toggle through the carousel, etc.)
Find and take note of the Olapic
analytics_ID
Theanalytics_id
is a unique user identifier used to track impression/interaction data. To find theanalytics_ID
, using a Chrome browser right-click and click “Inspect Element”. In the Network tab, search photorank.me and click on therender.gif
request. Theanalytics_ID
can be seen below:Can’t find
analytics_id
? If your site lives on multiple domains, you will have to dig through the Cookie part of the request, and dig up theanalytics_id
value:The
analytics_id
value in this case iss%3A32%3A%228a3a9f268bba30d5015ebd18e20e6421%22%3B
.Add Items to the Cart
Select the first item and add two to the cart.
Select the second item and add one to the cart.
Write down the product ID and quantity of all products in the cart.
IMPORTANT: Before completing the purchase, ensure that the Chrome DevTools is open in your browser. Keep the Network tab open before the purchase is complete. This way all Olapic requests upon checkout are registered.
Submit the Order
Please take note of the order confirmation page.
Within the Networks tab, search for the
checkout.gif
requestOn the bottom right-hand corner, in the Query String Parameters, you will see the checkout data.
Analyze the
checkout.gif
requestSearch for
data.photorank.me
in the Search field in the Network tab of the Dev Tools. Take a close look at the Query String Parameters section of the request. This is where you will validate the data being passed to Olapic’s Analytics API:Check the
auth_token
. This value should match your Olapic API key (Settings > Account Basics)Check the
analytics_id
. This value should match the analytics_id from Step 1.Check the
product[]
parameter(s) for correct product ID and total value.- The product ID should match the total cost of the product
- `Product_ID123:50`
- Or this can be itemized:
- `Product_ID123:25`
- `Product_ID123:25`Check the
currency_code
parameter. You should see the ISO 4217 Alphabetic code of the currency. (e.g. Use ‘EUR’ if the Amount value is in Euro, ‘USD’ for US Dollars).
Right click the request, and click “Save as HAR with Content”
Please send the .HAR file to your Solution Architect so that we can further inspect.
In addition to the .HAR file, please provide the following information to your Solutions Architect so we can verify this data on our end:
Sample URL where an Olapic widget is implemented.
The products that were added to the cart.
URL where the Olapic checkout code is implemented.