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:
- Navigate to Online Store, then Themes
- Click the "Customize" button
- Click "Theme Actions" in the bottom left, then "Edit Code"
- Click "theme.liquid" in the left panel
- Add the one-line script below to the end of this HTML file just before the closing
</body>
tag-
<script defer src="https://static.shopmy.us/Affiliates/sms_aff_clicktrack.js"></script>
-
- 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 Apps Panel
- Click the "Apps" button on the left side panel
- Click the "App and sales channel settings" option in the dropdown
Develop New App
- Click the "Develop Apps" button in the top right corner
- Create a new app
- Grant access for custom apps to be developed
- Enter "Shopmy Integration" for your app name and click "Create App"
Configure App's Scopes
- Click "Configure Admin API scopes" under the "Overview" tab
- Allow the following required scopes (8 total):
write_discounts :: read_discounts
write_price_rules :: read_price_rules
write_orders :: read_orders
read_products
read_inventory
- Allow optional scopes (if needed):
read_customers
- Add this scope if you are looking to do new vs returning cutsomer commission rates. Please note we do not recommend this setting new vs returning rates as a strategy.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.
- Save the changes
Get Your Tokens
- Click the "API credentials" tab header
- Locate your shop name. This will be in the form of (shopname).myshopify.com. Only the shopname is needed.
- Locate the API secret key.
- Click "Install App", then "Reveal token once"
- Locate the new Admin API access token that you just revealed
- Store these values and send them securely to the ShopMy team
Next Steps
- The onboarding team will set up the app and save it to your account, as well as test the integration.
- You will receive an email from the onboarding team in case of any issues.
Full Setup Overview
The following video provides a full overview of the previous steps for your review if needed:
Step Three: Request Testing
Contact your Brand Success Manager to place a test order and test the integration end-to-end. We will communicate with you any test order IDs we place so they can be cancelled after the integration is verified.
By adding our integration code to your site, you are agreeing to the terms of the ShopMy affiliate network. Please review these terms here.