Skip to main content

Shopify

Install Rokt via Aftersell (DTC advertisers)

Shopify is a unique platform that requires pre-built ‘apps’ to deliver the majority of its on-site functionality. Rokt uses its very own Shopify application called ‘Aftersell’ as the connection point for your store. This allows Rokt to track sessions for successful conversions and pass transactional information to the Rokt Brain to increase performance.

This document will walk you through all of the steps required to connect your Shopify store to Rokt via Aftersell in order to begin advertising on our Network:

  1. Install Aftersell from the Shopify App Store Aftersell app listing on the Shopify App Store
  2. Select any plan, it will be marked to our Free plan so long as you are an advertiser Aftersell pricing and plan options
  3. Notify your Account Manager of successful install - no other action required at this point
  4. Accept scope access - this will be prompted the next time you access the Aftersell App, you will be contacted when this prompt becomes available Scope access permissions required by Aftersell
  5. You’re done! All other required actions will be completed by the Rokt team. You can begin building your campaigns and creatives.

Shopify Attribute Mapping

As Shopify conversion data is recorded, key order and customer attributes are mapped to standardized Rokt attributes to ensure data is properly structured and usable within the Rokt platform. This enables seamless integration and activation of Shopify data in Rokt campaigns.

Please reference Web SDK Data Attributes for more information on Rokt attributes.

Mapped Shopify Attributes

Shopify AttributeMapped Rokt AttributeExample
order?.emailemailjohn.smith@rokt.com
(order.billingAddress ?? order.shippingAddress)?.[0]?.address1address14690 Some Rd Trail
(order.billingAddress ?? order.shippingAddress)?.[0]?.address2address24690 Some Rd Trail
order.totalPriceSet?.presentmentMoney?.amountamount45.7
order.billingAddress?.address1billingaddress114 Via Rd Drive
order.billingAddress?.address2billingaddress214 Via Rd Drive
order.billingAddress?.citybillingcityGotham City
order.billingAddress?.countrybillingcountryUnited State
order.billingAddress?.namebillingnameSam Buyer
order.billingAddress?.provincebillingstateNV
order.billingAddress?.zipbillingzipcode89000
order.idcartidgid://shopify/Order/40000000000000
order.transactions?.[0]?.paymentDetailsccbin486732
(order.billingAddress ?? order.shippingAddress)?.[0]?.citycityNew York
order.customer?.idclientcustomeridgid://shopify/Customer/500000000000
order.customer?.addresses?.[0]?.companycompanynameSome LTD
order.checkoutTokenconfirmationref123a3abcd01d4bf54b656534a89ace64
(order.billingAddress ?? order.shippingAddress)?.[0]?.countryCodecountryUS
order.currencyCodecurrencyUSD
Boolean(order.billingAddress?.company)customertypeBusiness / Individual
order.lineItemscartitemsExample Item
order.requiresShippingdeliveryTrue/False
order.shippingAddress?.address1deliveryaddress14 Via Rd Drive
(order.billingAddress ?? order.shippingAddress)?.firstNamefirstnameJohn
order.billingAddress?.companyhasbusinessprofileTrue/False
order.lineItems?.edges?.[0]?.node?.product?.vendoritembrandExample Brand
order.customer?.localelanguageen-US
(order.billingAddress ?? order.shippingAddress)?.lastNamelastnameDoe
order.lineItems?.edges?.[0]?.node?.product?.category?.fullNamemajorcatDog Food
order.lineItems?.edges?.[0]?.node?.product?.category?.idmajorcatidgid://shopify/Product/500000000000
(order.billingAddress ?? order.shippingAddress)?.phonemobile555-9999
(order.billingAddress ?? order.shippingAddress)?.phonemobilesha256555-9999
order.transactions?.[0].paymentDetails.paymentMethodpaymenttypeVISA OR APPLE_PAY
order.totalPriceSet?.presentmentMoney?.amountprice$10.00
order.lineItems?.edges?.[0]?.node?.product?.idproductid12345
order.lineItems?.edges?.[0]?.node?.product?.titleproductnameExample Name
order.totalPriceSet?.presentmentMoney?.amountqualifiedamount$10.00
order.lineItems?.edges?.[0]?.node?.quantity.toString()quantity100
order.shippingAddress?.address1shippingaddress1123 Example Street
order.shippingAddress?.address2shippingaddress2123 Example Street
order.shippingAddress?.cityshippingcityNew York
order.shippingAddress?.countryshippingcountryUnited States
order.shippingAddress?.countryCodeshippingstateNew Jersey
order.shippingLine?.codeshippingtypeStandard
order.shippingAddress?.zipshippingzipcode12345
order.lineItems?.edges?.[0]?.node?.skusku982482934
(order.billingAddress ?? order.shippingAddress)?.[0]?.provincestateNew Jersey
order.lineItems?.edges?.[0]?.node?.product?.titletitleExample Title
order.transactions?.[0]?.idtransactionid12345
(order.billingAddress ?? order.shippingAddress)?.[0]?.zipzipcode12345

Support

If you have questions, please reach out to your Rokt Account Manager or contact Rokt via our customer support portal.

Was this article helpful?