Roadmap allows you to collect customer feedback directly on your Shopify store with an embedded widget. Follow the instructions below to integrate Roadmap seamlessly into your Shopify theme.
Log in to Your Shopify Admin Panel
Navigate to Online Store → Themes
Add a Custom Section for Roadmap
Paste the Roadmap Embed Code
Copy and paste the following code into the custom HTML section:
<div id="roadmap-container"></div>
<script>
var customerData = {
email: "{{ customer.email }}",
first: "{{ customer.first_name }}",
last: "{{ customer.last_name }}"
};
customerData.email = customerData.email ? customerData.email : "";
customerData.first = customerData.first ? customerData.first : "Not available";
customerData.last = customerData.last ? customerData.last : "Not available";
var widgetScript = document.createElement("script");
widgetScript.type = "text/javascript";
widgetScript.src = "https://cdn.roadmap.space/widget/roadmap.js";
widgetScript.id = "public-roadmap";
// Insert your roadmap ID in the row below
widgetScript.setAttribute("data-id", "INSERT YOUR ROADMAP ID HERE");
widgetScript.setAttribute("data-embedded", "true");
widgetScript.setAttribute("data-container", "roadmap-container");
widgetScript.setAttribute("data-email", customerData.email);
widgetScript.setAttribute("data-first", customerData.first);
widgetScript.setAttribute("data-last", customerData.last);
document.getElementById("roadmap-container").insertAdjacentElement("afterend", widgetScript);
</script>
Replace INSERT YOUR ROADMAP ID HERE
with your actual Roadmap ID.
Your Roadmap ID can be found at: https://app.roadmap.space/#/roadmap/widgets/embed.
Save and Publish
Widget Not Showing?
Need Help?
Now your Shopify store is successfully integrated with Roadmap, allowing you to collect and manage customer feedback effortlessly! 🚀