Site Direct with App Tracking

This documentation outlines ShopMy integration setup for sites that use Shopify sites and checkout pages.

Step One: Integrate Click Tracking

Log in to your Shopify Admin store and complete the following steps to add click tracking:

  1. Navigate to Online Store, then Themes
  2. Click the "..." button next to "Customize" on your live theme
  3. From the Dropdown, click "Edit Code"
  4. Click "layout" in the left panel
  5. Click "theme.liquid" from the dropdown menu
  6. Add the one-line script from your onboarding flow to the end of this HTML file just before the closing </body> tag
  7. Click Save

Step Two: Integrate Order Tracking

Log in to your Shopify Admin store and complete the following steps to create a full Shopify integration with ShopMy.

Navigate to your Dev Dashboard

  1. Click your store name in the very top right part of your page.
    1. You should see a dropdown of all the stores in your organization.
  2. Click the "Dev Dashboard" option in that popup
dev_dashboard_dropdown_option

Develop New App

  1. Click the "Create app" button in the top right corner
  2. Enter "Shopmy Integration" for your app name under "Start from Dev Dashboard"
  3. Click the "Create" button beneath your entered text
create_app

Configure App's Scopes

  1. Scroll down to the "Access" section

  2. Click the top "Select scopes" button

  3. Allow the following required scopes (9 total). Please note, if all of these permissions are not granted, your onboarding process will be halted:

    1. write_discounts :: read_discounts
    2. write_price_rules :: read_price_rules
    3. write_orders :: read_orders
    4. read_products
    5. read_inventory
    6. read_locations
  4. Allow optional scopes (if needed):

    1. read_customers - Add this scope if you are looking to do new vs returning customer commission rates. Please note we do not recommend this setting new vs returning rates as a strategy.
    2. write_draft_orders :: read_draft_orders :: write_customers - Add these scopes to enable us to create and complete Shopify draft orders for gifting to be compatible with Shopify Flow workflows you may have in place.
  5. Scroll down to "Redirect URLs" section and paste in the following:

    https://apiv3.shopmy.us/api/Shopify/oauth/callback

  6. Scroll to the bottom or top of your page and click "Release"

  7. Under "Release this new version?" you can leave that blank and click "Release"

configure_app_scopes

Select Distribution Method

  1. Go to app home by clicking "Home" on the top left of your screen
  2. Click "Select your distribution" found under the "Installs" section on the right side of your screen
    1. If you do NOT see this section you can skip this section all together (Go to Install Your App)
  3. Select "Custom distribution" then continue
  4. Under "Select custom distribution?" continue by clicking "Select custom distribution"
  5. Fill in the Store domain by filling in your myshopify.com url address.
  6. Click "Generate link" then "Generate link" again when a popup appears
    1. If this step fails you have filled in your myshopify url address incorrectly. You can repeat until this step succeeds
  7. Once this is complete you can close this tab
select_app_distribution

Install Your App

  1. Go to app home by clicking "Home" on the app tab
  2. Click "Install app" under the "Installs" section on the top right of your screen.
  3. Select the store you want to download this app to
  4. Click "Install" button on bottom right of page
  5. Once this is complete you can close this tab
install_app_to_store

Get Your App Credentials

  1. Go to app settings by clicking "Settings" on the top left of your screen
  2. Note the "Client ID" and "Secret"
  3. Locate your shop name. This will be in the form of (shopname).myshopify.com. Only the shopname is needed.
    1. You will not be able to find this in your dev center, you will need to get this from your admin page.
app_credentials

Next Steps

After you complete the app setup on your end, please return to the ShopMy onboarding flow and input the Client ID, Secret, and shop name values.

Full Setup Overview

The following video provides a full overview of the previous steps for your review if needed:


📘

By adding our integration code to your site, you are agreeing to the terms of the ShopMy affiliate network. Please review these terms here.