Shopify Order Tags and Order Metafields can be an incredibly powerful tool for your brand, the agency that you work with, apps that you have added to your tech stack, or analytics tools. Regardless of which features you find to be most important or useful, we want our survey data to be available to you in those formats. We've built this integration to give you the ability to automatically tag orders or add Metafields with the survey questions and survey responses that your customers have submitted.
Use Cases
Step 1: Activate the Integration
Setup Note: Before you start, you'll need to make sure that you have Shopify store access because this integration requires store authentication to complete.
In the Kno App, navigate to Settings->Integrations and click Connect next to the Shopify Tagging feature.
You'll see this screen to start the authentication process. Go ahead and click Shopify.
Then enter your Shopify subdomain/store URL and click Finish Installation. Make sure to have store access before finishing the installation. It won't work otherwise.
You'll get a message of Success! when you configure it correctly.
Step 2: Choose your Questions & Data
Once you get the integration configured, you'll need to decide which data you want to tag in Shopify. This is done on a question-by-question basis, so you'll need to choose every data point that you want to tag/add in Shopify. Here's how!
Within the Kno app, go to Data->Surveys and open a survey by clicking the three dots and selecting Edit. If you haven't created a survey yet, check out how to create your first survey before continuing!
Once you're inside your survey editor, choose the question you want to push into Shopify and select 'advanced settings' in the bottom right of the question.
Once inside the popup modal, find the section that says Integrations and toggle on the Add Tags to Shopify option.
Then you can select any number of the following options to push into Shopify as tags and/or add to the order as Metafields.
Add Response as Order Tag
This option will push the response that your customer selects into Shopify as an order tag. Best for question types that have short, terse options like Radio and Checkbox. Options with long open text are not the best option here.
Add Question as Order Tag
This option will push the question into Shopify as a tag, but only for questions your customers answer. Skipped questions with no response will NOT be pushed into Shopify.
Add Question & Response as Order Metafield
The last option will push the question/response as key/value pairs into Shopify and append them to the customer order as Metafields.
Now you can repeat this process for every question that would be helpful to have in Shopify
Step 3: How Does It Look?
Question Order Tags
Each tag type looks slightly different. Questions will be prepended by Q: in order to differentiate them from the responses.
Response Order Tags
Here are several key points for responses.
Standard response options on radio & checkbox questions, for example, appear exactly as formatted. i.e. Facebook or TikTok
Open text questions (like Text or TextArea), as well as open text response options like the 'Other' response, will be the text that was submitted rather than an 'Other' tag. i.e. this is a unique tag
Checkbox question types (where the customer can select several answers) will be tagged with all of the answers the customer selects. i.e. I received an email AND I remembered you from the past
Ranking questions will be prepended with RK1: for the top-ranked option, RK2: for the second-ranked option, for as many options as the customer selects. i.e. RK1: Facebook, RK2: TikTok
All other question types will simply tag the first 40, non-comma characters within the question. At the time of writing for this article, that includes Radio, Text, TextArea, Email, Phone, Dropdown, Slider, NPS, Scale, and Date question types.
All Order Tags
Both the question and the response tags, however, have several similarities in how they function in this feature. Here are the most important similarities.
Limited to 40 total characters; additional characters will be truncated for questions/responses that exceed the limit
All commas within the tags will be replaced with a '/' character as Shopify does not allow commas within the tags
Will NOT tag for unanswered/skipped questions
Order Metafields
Order metafields have a slightly different format, which can be more helpful for certain use cases where just having specific data within an order would be helpful. Here are the specifics for pushing survey data into question metafields:
Questions are snake cased, which means all spaces and punctuation are removed. For our standard question, "Before you go...How did you first hear about us?" the question key will be: before_you_go_how_did_you_first_hear_about_us
Question keys are limited to 64 characters
Response values do not have a text limit, so this works well for open-ended text responses
All single-response questions (like Radio, Text, Text Area) will have the value that was submitted by the customer with no extra formatting
All Checkbox responses will have one value with all options included separated by commas with no meaning to the order
All Ranking responses will be similar to Checkbox responses except that order is indicative of ranking (top ranking is first)
All Date responses will be formatted as a Date response value
Note: Once an order metafield is defined/created, it will ALWAYS show on every order even if there are no survey responses associated with that order. This is a feature of Shopify's Metafield functionality.