Get Your Tracking Key

  1. Visit your your Arthur admin at https://app.joinarthur.com
  2. Click your face/initials in the bottom left of the screen
  3. Go to Settings > Tracking Keys
  4. Create a new tracking key or use an existing tracking key. (We suggest using separate keys for separate websites)
  5. Keep this page open. You will need your tracking key during the next step.

Paste Snippets in Shopify

  1. Go to your Shopify admin
  2. Go to Settings > Checkout > Order Processing
  3. Locate the Additional scripts box
  4. Copy and paste the Checkout Snippet from the bottom of this page into the box. (If there is already something in there, paste the Checkout Snippet below it)
  5. Replace the words YOUR KEY HERE in the snippet with your key
  6. Save your changes.
  7. Go to Online Store > Customize > Theme Actions > Edit Code
  8. Locate the Theme.liquid file and open it
  9. Find the closing head tag (</head>) -- *be sure not to confuse it with the opening head tag (<head>)*
  10. Paste the Page Snippet (located at the bottom of this page following the checkout snippet) right above the closing </head> tag - feel free to add a few lines of space before and after if you'd like.
  11. Replace the words YOUR KEY HERE in the snippet with your key
  12. Save your changes

Test Your Snippets

To test the everything is properly installed, you will need to place an order on your site through Arthur (you can refund yourself once you've verified sales are tracking properly)

  1. Visit your Arthur Admin
  2. Go to Build in the admin on the left 
  3. Click on any lookbook to visit the lookbook editor (No lookbooks yet? See the next section)
  4. The lookbook editor will open in the Items tab. Go to the Share tab to the right of items
  5. Copy the Shareable Link
  6. Open the link in a new browser tab (Make sure it does NOT say "Do not share this link")
  7. Click on a product, company name, or logo to be taken to your website
  8. Add anything to your bag from your website and make a purchase
  9. Within a few minutes, a sale should pop up under the Sales tab of your admin. If not, please contact us
  10. If everything worked, your snippets are successfully installed!

Test Your Snippets (No Lookbooks)

No Lookbooks yet? Follow the instructions below:

  1. Click New Lookbook on the top right of the Build page
  2. Enter any title you'd like and click Save
  3. The lookbook editor will open in the Items tab. Go to the Share tab to the right of Items
  4. Copy the Shareable Link
  5. Open the link in a new browser tab (Make sure it does NOT say "Do not share this link")
  6. Click on your company name or logo at the top of the page. It should take you to your website. (If not, please contact us).
  7. Add any item to your bag from your website and make a purchase
  8. Within a few minutes, a sale should pop up under the Sales tab of your Arthur admin. If not, please contact us.
  9. If everything worked, your snippets are successfully installed!

Checkout Snippet

<!-- Arthur Checkout Tracking Snippet -->
<script type="text/javascript">
"use strict";(function(){var a=window.arthur=window.arthur||{};return a.invoked?void(window.console&&console.error&&console.error("Arthur snippet included twice.")):void(a.invoked=!0,a.queue=[],a.listeners={},a.setEmployeeWindow=function(b){a.eW=b},a.emit=function(b,c){a.queue.push([b,c])},a.on=function(b,c){a.listeners[b]=a.listeners[b]||[],a.listeners[b].push(c)},a.load=function(b,c){var d=document.createElement("script");d.type="text/javascript",d.async=!0,d.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.arthur.cloud/track/v1.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e),a._loadOptions=c,a.writeKey=b},a.snippetVersion="1.0.0",a.setEmployeeWindow(30),a.load("YOUR KEY HERE"))})();
arthur.emit("page");
arthur.emit("order",{store:{url:"{{shop.secure_url}}"},order:{id:"{{order.order_number}}",name:"{{order.name}}",customer_url:"{{order.customer_url}}",status_url:"{{order.order_status_url}}",email:"{{order.email}}",phone_number:"{{order.phone}}",tags:"{{order.tags | join:','}}",shipping_price:"{{order.shipping_price | money_without_currency}}",subtotal_price:"{{order.subtotal_price | money_without_currency}}",tax_price:"{{order.tax_price | money_without_currency}}",total_price:"{{order.total_price | money_without_currency}}",currency:"{{shop.currency}}",created_at:"{{order.created_at}}",items:[{% for line_item in line_items %}{id:"{{line_item.id}}",product_id:"{{line_item.product_id}}",variant_id:"{{line_item.variant_id}}",variant_sku:"{{line_item.sku}}",title:"{{line_item.title}}",product_url:"{{line_item.product.url}}",image_url:"{{line_item.image | img_url:'600x600'}}",quantity:"{{line_item.quantity}}",price:"{{line_item.price | money_without_currency}}"}{% if forloop.index != line_items.size - 1 %},{% endif %}{% endfor %}]}});
</script>
<!-- End Arthur Checkout Tracking Snippet -->

Page Snippet

<!-- Arthur Page Tracking Snippet -->
<script type="text/javascript">
"use strict";(function(){var a=window.arthur=window.arthur||{};return a.invoked?void(window.console&&console.error&&console.error("Arthur snippet included twice.")):void(a.invoked=!0,a.queue=[],a.listeners={},a.setEmployeeWindow=function(b){a.eW=b},a.emit=function(b,c){a.queue.push([b,c])},a.on=function(b,c){a.listeners[b]=a.listeners[b]||[],a.listeners[b].push(c)},a.load=function(b,c){var d=document.createElement("script");d.type="text/javascript",d.async=!0,d.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.arthur.cloud/track/v1.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e),a._loadOptions=c,a.writeKey=b},a.snippetVersion="1.0.0",a.setEmployeeWindow(30),a.load("YOUR KEY HERE"))})();
arthur.emit("page");
</script>
<!-- End Arthur Page Tracking Snippet -->

Did this answer your question?