This is for users who need to know how to integrate their Shopify Store manually. An example of this is if you have a second Shopify Store that you need to integrate with Wicked Reports.
On This Page:
- How to Manually Add your Wicked Tracking Code to Shopify
- How To Validate Your Tracking
- How To Send Your Contacts & Orders to Wicked Reports
- Summary
Step 1 - How To Manually Add Tracking Code to Shopify & Validate
This method of adding the tracking code involves the use of theme.liquid. If you do not have theme.liquid available, then you can reach out to support@wickedreports.com for additional assistance.
- Login to your Wicked Reports account
- Navigate to the following page: Setup -> Tracking Code
- Copy your Wicked Tracking Code by pressing the Copy Code button
- Login to your Shopify Account
- Navigate to the following page: Settings -> Checkout
- Scroll down to the Additional Scripts field
- Paste your Wicked Tracking Code into the Additional Scripts field
- Below the Tracking Code you just pasted into the Additional Scripts field, copy & paste the following HTML code:
<input type="hidden" id="wickedEmail" name="email" value="{{checkout.email}}">
-
Press the Save button
-
Return to Shopify home page
-
Navigate to the following page: Online Store -> Themes
-
Locate your current theme, and press the Actions button
-
Select Edit Code from the dropdown menu
-
- Navigate to the following file: Layout Folder -> Theme.Liquid
-
Locate the following closing tag:
</head>
-
In the row directly above the closing tag, paste your Wicked Tracking Code
Note: Do NOT include the aforementioned HTML code into this file - Press the Save button
-
- Navigate to the following page: Settings -> Checkout
Step 2 - Validate Tracking
- Copy the URL of your Shopify homepage
- Place the URL in your Wicked Tracking Validation Tool
For more information: How to use the Tracking Validation Tool
Step 3 - Send your Contacts & Orders to Wicked Reports
Choose one of the methods to send your contacts and orders to Wicked Reports. Here, we walk you through all four options:
- Option #1: Shopify Webhooks (Recommended)
- Option #2: Zapier
- Option #3: Custom API
- Option #4: Manual CSV Upload
If you're sending data through options 1, 2, or 3, then be sure to enable the API so we can receive that data. Here's a quick walk-through on how to do that.
Option #1 - Shopify Webhooks
PART 1 of 2 - Setup your Webhooks
- Login to your Shopify Account
- Navigate to the following page: Settings -> Notifications
- Press the Create a Webhook button
Note: This button is located at the bottom of the page, in the Webhooks section. - In the popup menu, add the following Contact webhook:
- Event: Customer creation
- Format: JSON
- URL: https://api.wickedreports.com/webhook/ClientName/Shopify?data=contact
Note: Replace ClientName with your Client Name. - Webhook API version: 2022-04 (Latest)
Note: This field updates frequently - just use the "Latest" version- Press the Save button
- In the popup menu, add the following Order webhook:
- Event: Order creation
- Format: JSON
- URL: https://api.wickedreports.com/webhook/ClientName/Shopify?data=order
Note: Replace ClientName with your Client Name. - Webhook API version: 2022-04 (Latest)
Note: This field updates frequently - just use the "Latest" version
- Press the Save button
- In the popup menu, add the following Product webhook:
- Event: Product creation
- Format: JSON
- URL: https://api.wickedreports.com/webhook/ClientName/Shopify?data=product
Note: Replace ClientName with your Client Name. - Webhook API version: 2022-04 (Latest)
Note: This field updates frequently - just use the "Latest" version
- Press the Save button
- In the popup menu, add the following Order Payment webhook:
- Event: Order Payment
- Format: JSON
- URL: https://api.wickedreports.com/webhook/ClientName/Shopify?data=payment
Note: Replace ClientName with your Client Name. - Webhook API version: 2022-04 (Latest)
Note: This field updates frequently - just use the "Latest" version
- Press the Save button
PART 2 of 2 - Verify that your Webhooks are setup properly
- Locate the recently created Customer Creation Webhook
- Press the Send Test Notification button
- This sends a test contact to Wicked Reports. To review your test, go to the following page within Wicked Reports: API & Uploaders -> API Verification. Then, filter by CONTACT, TODAYS DATE, LIVE MODE, and BY DATE ADDED. If the Shopify/Webhook data displays, you ran a successful test!
Note: If you do not see your data, please note that our API verification page updates every ~30min
- This sends a test contact to Wicked Reports. To review your test, go to the following page within Wicked Reports: API & Uploaders -> API Verification. Then, filter by CONTACT, TODAYS DATE, LIVE MODE, and BY DATE ADDED. If the Shopify/Webhook data displays, you ran a successful test!
- Press the Send Test Notification button
- Locate the recently created Order Creation Webhook
- Press the "Send Test Notification" button
- This sends a test order to Wicked Reports. To review your test, go to the following page within Wicked Reports: API & Uploaders -> API Verification. Then, filter by ORDERS, TODAYS DATE, LIVE MODE, and BY DATE ADDED. If the TestCart data displays, you ran a successful test!
Note: If you do not see your data, please note that our API verification page updates every ~30min
- This sends a test order to Wicked Reports. To review your test, go to the following page within Wicked Reports: API & Uploaders -> API Verification. Then, filter by ORDERS, TODAYS DATE, LIVE MODE, and BY DATE ADDED. If the TestCart data displays, you ran a successful test!
- Press the "Send Test Notification" button
- Repeat this process for your Product and Order Payment Webhooks
OPTION #2 - Zapier
PART 1 of 2 - Create a Zap for Contacts
- Login to your Zapier account
- From the left navigation bar, press the Create Zap button
- Within the Trigger Step's Choose App and Event section:
- Set the App field to Shopify
Note: You may select a different payment software, if required. - Set the Event field to New Customer
- Press the Continue button
- Set the App field to Shopify
- In the Choose Account section:
- Click into the Shopify Account field and press the Connect A New Account button
Note: Alternatively, use an account that's already connected. - Enter the URL of your Shopify Store
- Press the Yes, Continue button
- Click into the Shopify Account field and press the Connect A New Account button
- In the Test Trigger section:
- Press the Test Trigger button
- Press the Continue button
- Within the Action Step's Choose App and Event section:
- Set the App field to Wicked Reports
- Set the Event field to Create Contact
- Press the Continue button
- Customize the Contact with these required fields. Once complete, press continue
NOTE: Some of these fields will have dropdown options. Do your best to choose the most applicable to your business, as they are dynamically generated by Shopify.
- Source System - Example: "Zapier - <Shopify Contacts>"
This way, when troubleshooting, your team & ours will know the data is coming from Zapier and which contact system the data is sending from - Contact ID - this should be available via the dropdown options, though can be any UNIQUE value
- CreateDateTime - Type in the word: "NOW"
- TimeZone - Required if you do not use NOW as the Create Date Time. This must be in UTC format and match the UTC timezone of your source system (e.g. If Easter Standard Time, then use UTC-5). You must update this field as timezones change with Daylight Savings. For example, EST (Eastern Standard Time) is UTC-5 part of the year and UTC-4 part of the year.
- Email - this should be available via the dropdown options
- Source System - Example: "Zapier - <Shopify Contacts>"
- After completing the steps above, select Test & Review
This sends a test to Wicked Reports. To review your test, go to API & Uploaders > API Verification. Then, filter by TEST and the email address used in your Zapier test. If the data displays, you ran a successful test! (If you do not see your data inside Wicked Reports within 45minutes, contact live chat or support@wickedreports.com) - Now, hit the Publish Zap button!
PART 2 of 2 - Create a Zap for Orders
- Login to your Zapier account
- From the left navigation bar, press the Create Zap button
- Within the Trigger's Choose App and Event section:
- Set the App field to Shopify
- Set the Event field to New Order (Any Status)
- Press the Continue button
- Within the Choose Account section:
- Click into the Shopify Account field and press the Connect A New Account button
Note: Alternatively, use an account that's already connected. - Enter the URL of your Shopify Store
- Press the Yes, Continue button
- Click into the Shopify Account field and press the Connect A New Account button
- Within the Test Trigger section:
- Press the Test Trigger button
- Press the Continue button
- Setup your ZAPs Action
- Within the Choose App and Event section:
- Set the App field to Wicked Reports
- Set the Event field to Create Order
- Press the Continue button
- In the Choose Account section:
- Click into the Wicked Reports Account field and press the Connect A New Account button
Note: Alternatively, use an account that's already connected.
- Click into the Wicked Reports Account field and press the Connect A New Account button
- Within the Set Up an Action section:
- Customize the Order with these required fields. Please note, some of these fields will have dropdown options. Do your best to choose the most applicable to your business, as they are dynamically generated by Shopify.
- Source System - Example: "Zapier - <Shopify Orders>"
This way, when troubleshooting, your team & ours will know the data is coming from Zapier and which order system the data is sending from - Customer Email - this should be available via the dropdown options
- Order ID - this should be available via the dropdown options. Example: "Customer last order id"
- Order Total - this should be available via the dropdown options. Example: "Total price"
- Order Date Time - Type in the word: "NOW"
- Refund - Must be formatted as: "Yes" or "No"
- Order Time Zone* - *Required if you do not use "NOW" in the Order Date Time field. This must be in UTC format and match the UTC timezone of your source system (e.g. If Easter Standard Time, then use UTC-5). You must update this field as timezones change with Daylight Savings. For example, EST (Eastern Standard Time) is UTC-5 part of the year and UTC-4 part of the year.
- SubscriptionID* -this should be available via the dropdown options
*This field is required for subscription orders.
How does Wicked handle subscriptions? - Product ID* - this should be available via the dropdown options
*This field is only required if you want your products to populate in our Product Report. - Product Name* - this should be available via the dropdown options. Example: "Basket O' Berries"
*This field is only required if you want your products to populate in our Product Report.
- Source System - Example: "Zapier - <Shopify Orders>"
- Customize the Order with these required fields. Please note, some of these fields will have dropdown options. Do your best to choose the most applicable to your business, as they are dynamically generated by Shopify.
- After completing the steps above, select Test & Review
This sends a test to Wicked Reports. To review your test, go to API & Uploaders > API Verification. Then, filter by TEST and the email address used in your Zapier test. If the data displays, you ran a successful test! (If you do not see your data inside Wicked Reports within 45minutes, contact live chat or support@wickedreports.com) - Now, hit the Publish Zap button!
Option #3 - Custom API
Option #4 - Manual CSV Upload
If you go the route of manually importing your data, then you can disable HTTP post and API from your authorizations, as it is not needed.
How to import contacts
How to import orders
4. Summary
In this article, you learned the following:
- How to Manually Add the Tracking Code to Shopify
- How to Validate the Tracking Code
- How to Send Your Contacts & Orders to Wicked Reports
It is further recommended that you:
If you have any additional questions, feel free to reach out to us at support@wickedreports.com.