Responses are generated using AI and may contain mistakes.
The Replo AI/Sites product has been deprecated and will be sunset on November 18, 2026. As a result, the docs here only apply to our legacy Replo AI/Sites product. For more information, check out docs.replo.app/migrate-from-replo-shops. Please refer to docs.replo.app for the latest Replo documentation.
Scripts are snippets of code that extend your store’s functionality and tracking capabilities. They let you connect third-party tools, run custom interactions, and measure performance across your funnel.
Why ecommerce stores need scripts
Scripts power essential parts of your marketing stack. Without them, you can’t track conversions, optimize campaigns, or create personalized experiences.Tracking and measurement — Scripts from analytics platforms and ad networks (Meta Pixel, Google Analytics, TikTok Pixel) capture visitor behavior, clicks, and purchases. This data feeds into your CAC, CVR, and ROAS calculations so you can see what’s working.Interactive experiences — Page-level scripts enable quizzes, personalization apps, exit-intent pop-ups, and cart abandonment flows. These tools improve conversion rates by creating more engaging, tailored experiences for visitors.Integration with marketing tools — Scripts connect your store to email platforms (Klaviyo), SMS tools (Postscript, Attentive), and other services that power your customer acquisition and retention workflows.
When to use site-wide vs. page-level scripts
Site-wide scripts
Page-level scripts
Use site-wide scripts for tools that need to track activity across your entire store.Best for:
Analytics and tracking pixels (Meta Pixel, Google Analytics, TikTok Pixel)
Use page-level scripts for interactions specific to individual pages.Best for:
Quizzes and interactive surveys
Personalization apps
Exit-intent pop-ups
Page-specific tracking events
Product finders or recommendation tools
Where to add scripts in Replo
Site-wide scripts
Add site-wide scripts in your shop settings under the Script Manager. These scripts load on every page of your store, making them ideal for marketing performance tracking.
1
Navigate to shop settings
Open your shop settings from the workspace dropdown, then select your shop.
2
Open Script Manager
Click the Script Manager tab in your shop settings menu.
3
Access Script Manager
Find the Script Manager section. This is where you add scripts that will run across all pages.
4
Add your script
Paste your script code into the Script Manager. Common examples include Meta Pixel, Google Analytics, or other tracking pixels that measure CTR, CVR, and conversions.
Site-wide scripts are best for marketing performance tracking tools that need to measure activity across your entire funnel—pixels, analytics platforms, and attribution tools.
Page-level scripts
For page-specific interactions like quizzes, personalization apps, pop-ups, or custom tracking events, add scripts directly to individual pages through Replo.
1
Open your page editor
Open Replo while editing the page where you want to add the script.
2
Provide your script snippet
Prompt Replo with the script you need to add and paste in the correct code snippet.For example:
Add this quiz script to the page: insert [your script code]
3
Verify the script is added
The script will be integrated into your page. Republish your page to make it live.
Page-level scripts are perfect for tools that should only run on specific pages. This includes quizzes, product finders, exit-intent pop-ups, and personalization apps that create unique shopping experiences per page.
FAQ
Can I add the same script both site-wide and on a specific page?
Typically, no. Most scripts should only be added once. Adding a script in both places usually results in duplicate tracking, which skews your data. In addition, adding unnecessary scripts globally slows down your shop. Choose site-wide if you need it everywhere, or page-level if it’s page-specific.
Do I need to republish after adding scripts?
Yes. After adding scripts—whether site-wide or page-level—you need to republish your pages for the changes to go live. Site-wide scripts apply to all pages on your next publish; page-level scripts only apply to the specific page you updated.
How do I verify my scripts are working?
Most tracking scripts have browser extensions or test tools (Meta Pixel Helper, Google Tag Assistant) that verify scripts are firing correctly. Check your analytics dashboard or ad platform to confirm events are being tracked. For page-level scripts, test the functionality directly on your published page.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Replo","colors":{"primary":"#274AE2","light":"#F5FAD9","dark":"#274AE2"},"logo":{"light":"https://mintcdn.com/replo/snQ9iZU_mhHFjKKv/logo/light.svg?fit=max\u0026auto=format\u0026n=snQ9iZU_mhHFjKKv\u0026q=85\u0026s=aec669998b21f84f668dddb27c35abcd","dark":"https://mintcdn.com/replo/OE5f7MQUpDLt8PzW/logo/dark.svg?fit=max\u0026auto=format\u0026n=OE5f7MQUpDLt8PzW\u0026q=85\u0026s=8db0f041cf02f60d48e30eb480303baf"},"favicon":"https://mintcdn.com/replo/OE5f7MQUpDLt8PzW/favicon.svg?fit=max\u0026auto=format\u0026n=OE5f7MQUpDLt8PzW\u0026q=85\u0026s=fc463630eadf3d8c7c31e387d5f2472a","navbar":{"links":[{"href":"mailto:support@replo.app","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.replo.app"}},"footer":{"socials":{"x":"https://x.com/replohq","linkedin":"https://linkedin.com/company/replohq"}},"integrations":{"gtm":{"tagId":"GTM-MH56PQ8"}},"banner":{"content":"The Replo AI/Sites product has been deprecated and will be sunset on November 18, 2026. As a result, the docs here only apply to our legacy Replo AI/Sites product. For more information, check out [docs.replo.app/migrate-from-replo-shops](https://docs.replo.app/migrate-from-replo-shops). Please refer to [docs.replo.app](https://docs.replo.app) for the latest Replo documentation.","type":"warning"},"contextual":{"options":[],"display":"header"},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/replo/9eqXyQ5EQIeL0wwP/images/thumbnail.png?fit=max\u0026auto=format\u0026n=9eqXyQ5EQIeL0wwP\u0026q=85\u0026s=baaf55ed87a9a85d5d540e6243e8bd68"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Announcements","icon":"megaphone","href":"https://www.replo.app/changelog"},{"anchor":"Feature Requests","icon":"rocket","href":"https://feedback.replo.app/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"replo","hasAudioNarration":false,"actualSubdomain":"replo","customDomains":["legacy.docs.replo.app"],"gitSource":{"type":"github","owner":"replohq","repo":"andytown","deployBranch":"main","contentDirectory":"apps/legacy-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af506e33ae1038e256e2bb8","clientVersion":"0.0.4128","searchFilterCounts":[{"language":"default","tag":"Features","count":30},{"language":"default","tag":"Use Cases","count":30},{"language":"default","tag":"Commerce","count":27},{"language":"default","tag":"Integrations","count":22},{"language":"default","tag":"Other Checkout \u0026 Bookings","count":21},{"language":"default","tag":"Ecommerce","count":19},{"language":"default","tag":"Getting started","count":18},{"language":"default","tag":"Templates","count":9},{"language":"default","tag":"Prompting","count":8},{"language":"default","tag":"Glossary","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".katex-html{overflow:hidden}#table-of-contents{-ms-overflow-style:none;scrollbar-width:none}#table-of-contents::-webkit-scrollbar{display:none}/*! Devices.css v0.2.0 | MIT License | github.com/picturepan2/devices.css */.device,.device *,.device ::after,.device ::before,.device::after,.device::before{box-sizing:border-box;display:block}.device{position:relative;transform:scale(1);z-index:1}.device .device-frame{z-index:1}.device .device-screen{background-color:#000;background-position:center center;background-size:cover;object-fit:cover;position:relative}.device-iphone-14-pro{height:868px;width:428px}.device-iphone-14-pro .device-frame{background:#010101;border:1px solid #1b1721;border-radius:68px;box-shadow:inset 0 0 4px 2px #c0b7cd,inset 0 0 0 6px #342c3f;height:868px;padding:19px;width:428px}.device-iphone-14-pro .device-screen{border-radius:49px;height:830px;width:390px}.device-iphone-14-pro .device-stripe::after,.device-iphone-14-pro .device-stripe::before{border:solid rgba(1,1,1,.25);border-width:0 7px;content:\"\";height:7px;left:0;position:absolute;width:100%;z-index:9}.device-iphone-14-pro .device-stripe::after{top:85px}.device-iphone-14-pro .device-stripe::before{bottom:85px}.device-iphone-14-pro .device-header{background:#010101;border-radius:20px;height:35px;left:50%;margin-left:-60px;position:absolute;top:29px;width:120px}.device-iphone-14-pro .device-sensors::after,.device-iphone-14-pro .device-sensors::before{content:\"\";position:absolute}.device-iphone-14-pro .device-sensors::after{background:#010101;border-radius:17px;height:33px;left:50%;margin-left:-60px;top:30px;width:74px}.device-iphone-14-pro .device-sensors::before{background:radial-gradient(farthest-corner at 20% 20%,#6074bf 0,transparent 40%),radial-gradient(farthest-corner at 80% 80%,#513785 0,#24555e 20%,transparent 50%);border-radius:50%;box-shadow:0 0 1px 1px rgba(255,255,255,.05);height:9px;left:50%;margin-left:36px;top:42px;width:9px}.device-iphone-14-pro .device-btns{background:#1b1721;border-radius:2px;height:32px;left:-2px;position:absolute;top:115px;width:3px}.device-iphone-14-pro .device-btns::after,.device-iphone-14-pro .device-btns::before{background:#1b1721;border-radius:2px;content:\"\";height:62px;left:0;position:absolute;width:3px}.device-iphone-14-pro .device-btns::after{top:60px}.device-iphone-14-pro .device-btns::before{top:140px}.device-iphone-14-pro .device-power{background:#1b1721;border-radius:2px;height:100px;position:absolute;right:-2px;top:200px;width:3px}.device-iphone-14-pro .device-home::after,.device-iphone-14-pro .device-home::before{border:solid rgba(1,1,1,.25);border-width:6px 0;content:\"\";height:6px;position:absolute;width:6px;z-index:9}.device-iphone-14-pro .device-home::after{right:86px;top:0}.device-iphone-14-pro .device-home::before{bottom:0;left:86px}.device-iphone-14-pro.device-silver .device-frame{border-color:#c8cacb;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #e2e3e4}.device-iphone-14-pro.device-silver .device-btns{background:#c8cacb}.device-iphone-14-pro.device-silver .device-btns::after,.device-iphone-14-pro.device-silver .device-btns::before{background:#c8cacb}.device-iphone-14-pro.device-silver .device-power{background:#c8cacb}.device-iphone-14-pro.device-black .device-frame{border-color:#5c5956;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #76726f}.device-iphone-14-pro.device-black .device-btns{background:#5c5956}.device-iphone-14-pro.device-black .device-btns::after,.device-iphone-14-pro.device-black .device-btns::before{background:#5c5956}.device-iphone-14-pro.device-black .device-power{background:#5c5956}.device-iphone-14-pro.device-gold .device-frame{border-color:#e7d19e;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #d2ab4c}.device-iphone-14-pro.device-gold .device-btns{background:#e7d19e}.device-iphone-14-pro.device-gold .device-btns::after,.device-iphone-14-pro.device-gold .device-btns::before{background:#e7d19e}.device-iphone-14-pro.device-gold .device-power{background:#e7d19e}.device-iphone-14{height:868px;width:428px}.device-iphone-14 .device-frame{background:#010101;border:1px solid #101315;border-radius:68px;box-shadow:inset 0 0 4px 2px #b0b8c0,inset 0 0 0 6px #272c31;height:868px;padding:19px;width:428px}.device-iphone-14 .device-screen{border-radius:49px;height:830px;width:390px}.device-iphone-14 .device-stripe::after,.device-iphone-14 .device-stripe::before{border:solid rgba(1,1,1,.25);border-width:0 7px;content:\"\";height:7px;left:0;position:absolute;width:100%;z-index:9}.device-iphone-14 .device-stripe::after{top:85px}.device-iphone-14 .device-stripe::before{bottom:85px}.device-iphone-14 .device-header{background:#010101;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:30px;left:50%;margin-left:-80px;position:absolute;top:20px;width:160px}.device-iphone-14 .device-header::after,.device-iphone-14 .device-header::before{content:\"\";height:10px;position:absolute;top:0;width:10px}.device-iphone-14 .device-header::after{background:radial-gradient(circle at bottom left,transparent 0,transparent 75%,#010101 75%,#010101 100%);left:-10px}.device-iphone-14 .device-header::before{background:radial-gradient(circle at bottom right,transparent 0,transparent 75%,#010101 75%,#010101 100%);right:-10px}.device-iphone-14 .device-sensors::after,.device-iphone-14 .device-sensors::before{content:\"\";position:absolute}.device-iphone-14 .device-sensors::after{background:#151515;border:1px solid #010101;border-radius:4px;box-shadow:0 0 4px #151515;height:7px;left:50%;margin-left:-35px;top:8px;width:70px}.device-iphone-14 .device-sensors::before{background:radial-gradient(farthest-corner at 20% 20%,#6074bf 0,transparent 40%),radial-gradient(farthest-corner at 80% 80%,#513785 0,#24555e 20%,transparent 50%);border-radius:50%;box-shadow:0 0 1px 1px rgba(255,255,255,.05);height:9px;left:50%;margin-left:-60px;top:26px;width:9px}.device-iphone-14 .device-btns{background:#101315;border-radius:2px;height:32px;left:-2px;position:absolute;top:115px;width:3px}.device-iphone-14 .device-btns::after,.device-iphone-14 .device-btns::before{background:#101315;border-radius:2px;content:\"\";height:62px;left:0;position:absolute;width:3px}.device-iphone-14 .device-btns::after{top:60px}.device-iphone-14 .device-btns::before{top:140px}.device-iphone-14 .device-power{background:#101315;border-radius:2px;height:100px;position:absolute;right:-2px;top:200px;width:3px}.device-iphone-14 .device-home::after,.device-iphone-14 .device-home::before{border:solid rgba(1,1,1,.25);border-width:6px 0;content:\"\";height:6px;position:absolute;width:6px;z-index:9}.device-iphone-14 .device-home::after{right:86px;top:0}.device-iphone-14 .device-home::before{bottom:0;left:86px}.device-iphone-14.device-purple .device-frame{border-color:#af9bbf;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #c8bad3}.device-iphone-14.device-purple .device-btns{background:#af9bbf}.device-iphone-14.device-purple .device-btns::after,.device-iphone-14.device-purple .device-btns::before{background:#af9bbf}.device-iphone-14.device-purple .device-power{background:#af9bbf}.device-iphone-14.device-starlight .device-frame{border-color:#bdb4aa;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #d3cdc7}.device-iphone-14.device-starlight .device-btns{background:#bdb4aa}.device-iphone-14.device-starlight .device-btns::after,.device-iphone-14.device-starlight .device-btns::before{background:#bdb4aa}.device-iphone-14.device-starlight .device-power{background:#bdb4aa}.device-iphone-14.device-red .device-frame{border-color:#d11813;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #ec302b}.device-iphone-14.device-red .device-btns{background:#d11813}.device-iphone-14.device-red .device-btns::after,.device-iphone-14.device-red .device-btns::before{background:#d11813}.device-iphone-14.device-red .device-power{background:#d11813}.device-iphone-14.device-blue .device-frame{border-color:#7992aa;box-shadow:inset 0 0 4px 2px #fff,inset 0 0 0 6px #98abbe}.device-iphone-14.device-blue .device-btns{background:#7992aa}.device-iphone-14.device-blue .device-btns::after,.device-iphone-14.device-blue .device-btns::before{background:#7992aa}.device-iphone-14.device-blue .device-power{background:#7992aa}.device-iphone-x{height:868px;width:428px}.device-iphone-x .device-frame{background:#222;border-radius:68px;box-shadow:inset 0 0 2px 2px #c8cacb,inset 0 0 0 7px #e2e3e4;height:868px;padding:28px;width:428px}.device-iphone-x .device-screen{border-radius:40px;height:812px;width:375px}.device-iphone-x .device-stripe::after,.device-iphone-x .device-stripe::before{border:solid rgba(1,1,1,.25);border-width:0 7px;content:\"\";height:7px;left:0;position:absolute;width:100%;z-index:9}.device-iphone-x .device-stripe::after{top:85px}.device-iphone-x .device-stripe::before{bottom:85px}.device-iphone-x .device-header{background:#222;border-bottom-left-radius:20px;border-bottom-right-radius:20px;height:30px;left:50%;margin-left:-102px;position:absolute;top:28px;width:204px}.device-iphone-x .device-header::after,.device-iphone-x .device-header::before{content:\"\";height:10px;position:absolute;top:0;width:10px}.device-iphone-x .device-header::after{background:radial-gradient(circle at bottom left,transparent 0,transparent 75%,#222 75%,#222 100%);left:-10px}.device-iphone-x .device-header::before{background:radial-gradient(circle at bottom right,transparent 0,transparent 75%,#222 75%,#222 100%);right:-10px}.device-iphone-x .device-sensors::after,.device-iphone-x .device-sensors::before{content:\"\";position:absolute}.device-iphone-x .device-sensors::after{background:#333;border-radius:3px;height:6px;left:50%;margin-left:-25px;top:32px;width:50px}.device-iphone-x .device-sensors::before{background:radial-gradient(farthest-corner at 20% 20%,#6074bf 0,transparent 40%),radial-gradient(farthest-corner at 80% 80%,#513785 0,#24555e 20%,transparent 50%);border-radius:50%;box-shadow:0 0 1px 1px rgba(255,255,255,.05);height:10px;left:50%;margin-left:42px;top:30px;width:10px}.device-iphone-x .device-btns{background:#c8cacb;height:32px;left:-3px;position:absolute;top:115px;width:3px}.device-iphone-x .device-btns::after,.device-iphone-x .device-btns::before{background:#c8cacb;content:\"\";height:62px;left:0;position:absolute;width:3px}.device-iphone-x .device-btns::after{top:60px}.device-iphone-x .device-btns::before{top:140px}.device-iphone-x .device-power{background:#c8cacb;height:100px;position:absolute;right:-3px;top:200px;width:3px}.device-iphone-8{height:871px;width:419px}.device-iphone-8 .device-frame{background:#fff;border-radius:68px;box-shadow:inset 0 0 0 2px #c8cacb,inset 0 0 0 7px #e2e3e4;height:871px;padding:102px 22px;width:419px}.device-iphone-8 .device-screen{border:2px solid #222;border-radius:4px;height:667px;width:375px}.device-iphone-8 .device-stripe::after,.device-iphone-8 .device-stripe::before{border:solid rgba(51,51,51,.15);border-width:0 7px;content:\"\";height:6px;left:0;position:absolute;width:100%;z-index:9}.device-iphone-8 .device-stripe::after{top:68px}.device-iphone-8 .device-stripe::before{bottom:68px}.device-iphone-8 .device-home{border:2px solid #c8cacb;border-radius:50%;bottom:25px;height:58px;left:50%;margin-left:-29px;position:absolute;width:58px}.device-iphone-8 .device-sensors{background:#666;border-radius:3px;height:6px;left:50%;margin-left:-38px;position:absolute;top:52px;width:76px}.device-iphone-8 .device-sensors::after,.device-iphone-8 .device-sensors::before{background:#666;border-radius:50%;content:\"\";position:absolute}.device-iphone-8 .device-sensors::after{height:10px;left:50%;margin-left:-5px;top:-25px;width:10px}.device-iphone-8 .device-sensors::before{height:12px;left:-42px;margin-top:-6px;top:50%;width:12px}.device-iphone-8 .device-btns{background:#c8cacb;height:30px;left:-3px;position:absolute;top:102px;width:3px}.device-iphone-8 .device-btns::after,.device-iphone-8 .device-btns::before{background:#c8cacb;content:\"\";height:56px;left:0;position:absolute;width:3px}.device-iphone-8 .device-btns::after{top:62px}.device-iphone-8 .device-btns::before{top:132px}.device-iphone-8 .device-power{background:#c8cacb;height:80px;position:absolute;right:-2px;top:160px;width:3px}.device-iphone-8.device-gold .device-frame{box-shadow:inset 0 0 0 2px #e4b08a,inset 0 0 0 7px #f7e8dd}.device-iphone-8.device-gold .device-home{border-color:#e4b08a}.device-iphone-8.device-gold .device-btns,.device-iphone-8.device-gold .device-btns::after,.device-iphone-8.device-gold .device-btns::before{background:#e4b08a}.device-iphone-8.device-gold .device-power{background:#e4b08a}.device-iphone-8.device-spacegray .device-frame{background:#222;box-shadow:inset 0 0 0 2px #74747a,inset 0 0 0 7px #9b9ba0}.device-iphone-8.device-spacegray .device-stripe::after,.device-iphone-8.device-spacegray .device-stripe::before{border-color:rgba(204,204,204,.35)}.device-iphone-8.device-spacegray .device-btns,.device-iphone-8.device-spacegray .device-btns::after,.device-iphone-8.device-spacegray .device-btns::before{background:#74747a}.device-macbook-pro{height:434px;width:740px}.device-macbook-pro .device-frame{background:#0d0d0d;border-radius:20px;box-shadow:inset 0 0 0 2px #c8cacb;height:418px;margin:0 auto;padding:9px 9px 23px 9px;position:relative;width:618px}.device-macbook-pro .device-frame::after{background:linear-gradient(to bottom,#272727,#0d0d0d);border-radius:0 0 20px 20px;bottom:2px;content:\"\";height:24px;left:2px;position:absolute;width:614px}.device-macbook-pro .device-header{background:#0d0d0d;border-bottom-left-radius:4px;border-bottom-right-radius:4px;height:12px;left:50%;margin-left:-32px;position:absolute;top:11px;width:64px;z-index:2}.device-macbook-pro .device-header::after,.device-macbook-pro .device-header::before{content:\"\";height:4px;position:absolute;top:0;width:4px}.device-macbook-pro .device-header::after{background:radial-gradient(circle at bottom left,transparent 0,transparent 75%,#0d0d0d 75%,#0d0d0d 100%);left:-4px}.device-macbook-pro .device-header::before{background:radial-gradient(circle at bottom right,transparent 0,transparent 75%,#0d0d0d 75%,#0d0d0d 100%);right:-4px}.device-macbook-pro .device-screen{border:2px solid #121212;border-radius:10px 10px 0 0;height:375px;width:600px}.device-macbook-pro .device-power{background:radial-gradient(circle at center,#e2e3e4 85%,#c8cacb 100%);border:solid #a0a3a7;border-radius:2px 2px 12px 12px;border-width:1px 2px 0 2px;box-shadow:inset 0 -2px 8px 0 #6c7074;height:24px;margin-top:-10px;position:relative;width:740px;z-index:9}.device-macbook-pro .device-power::after{background:#e2e3e4;border-radius:0 0 10px 10px;box-shadow:inset 0 0 4px 2px #babdbf;content:\"\";height:10px;left:50%;margin-left:-60px;position:absolute;top:0;width:120px}.device-macbook-pro .device-power::before{background:0 0;border-radius:0 0 3px 3px;bottom:-2px;box-shadow:-300px 0 #272727,300px 0 #272727;content:\"\";height:2px;left:50%;margin-left:-20px;position:absolute;width:40px}.device-macbook-pro.device-spacegray .device-frame{box-shadow:inset 0 0 0 2px #767a7d}.device-macbook-pro.device-spacegray .device-power{background:radial-gradient(circle at center,#83878a 85%,#767a7d 100%);border-color:#454749;box-shadow:inset 0 -2px 8px 0 #202121}.device-macbook-pro.device-spacegray .device-power::after{background:#b7babc;box-shadow:inset 0 0 4px 2px #6a6d70}"}],"page":{"pagePath":"features/scripts","slug":"/features/scripts","pageMetadata":{"title":"Adding Scripts","description":"When and where to add scripts to your store","href":"/features/scripts"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"When and where to add scripts to your store\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,OptimizedImage,Step,Steps,Tab,Tabs,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Scripts are snippets of code that extend your store’s functionality and tracking capabilities. They let you connect third-party tools, run custom interactions, and measure performance across your funnel.`}),`\n`,_jsx(Heading,{level:`2`,id:`why-ecommerce-stores-need-scripts`,children:`Why ecommerce stores need scripts`}),`\n`,_jsx(_components.p,{children:`Scripts power essential parts of your marketing stack. Without them, you can’t track conversions, optimize campaigns, or create personalized experiences.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tracking and measurement`}),` — Scripts from analytics platforms and ad networks (Meta Pixel, Google Analytics, TikTok Pixel) capture visitor behavior, clicks, and purchases. This data feeds into your CAC, CVR, and ROAS calculations so you can see what’s working.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Interactive experiences`}),` — Page-level scripts enable quizzes, personalization apps, exit-intent pop-ups, and cart abandonment flows. These tools improve conversion rates by creating more engaging, tailored experiences for visitors.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Integration with marketing tools`}),` — Scripts connect your store to email platforms (Klaviyo), SMS tools (Postscript, Attentive), and other services that power your customer acquisition and retention workflows.`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-use-site-wide-vs-page-level-scripts`,children:`When to use site-wide vs. page-level scripts`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Site-wide scripts`,id:`site-wide-scripts`,children:[_jsx(_components.p,{children:`Use site-wide scripts for tools that need to track activity across your entire store.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Best for:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Analytics and tracking pixels (Meta Pixel, Google Analytics, TikTok Pixel)`}),`\n`,_jsx(_components.li,{children:`Performance measurement (CTR, CVR, conversion tracking)`}),`\n`,_jsx(_components.li,{children:`Tools that should fire on every page visit`}),`\n`,_jsx(_components.li,{children:`Universal integrations (payment processors, shipping calculators)`}),`\n`]})]}),_jsxs(Tab,{title:`Page-level scripts`,id:`page-level-scripts`,children:[_jsx(_components.p,{children:`Use page-level scripts for interactions specific to individual pages.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Best for:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Quizzes and interactive surveys`}),`\n`,_jsx(_components.li,{children:`Personalization apps`}),`\n`,_jsx(_components.li,{children:`Exit-intent pop-ups`}),`\n`,_jsx(_components.li,{children:`Page-specific tracking events`}),`\n`,_jsx(_components.li,{children:`Product finders or recommendation tools`}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`where-to-add-scripts-in-replo`,children:`Where to add scripts in Replo`}),`\n`,_jsx(Heading,{level:`3`,id:`site-wide-scripts`,children:`Site-wide scripts`}),`\n`,_jsx(_components.p,{children:`Add site-wide scripts in your shop settings under the Script Manager. These scripts load on every page of your store, making them ideal for marketing performance tracking.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to shop settings`,children:_jsx(_components.p,{children:`Open your shop settings from the workspace dropdown, then select your shop.`})}),_jsx(Step,{title:`Open Script Manager`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Script Manager`}),` tab in your shop settings menu.`]})}),_jsxs(Step,{title:`Access Script Manager`,children:[_jsxs(_components.p,{children:[`Find the `,_jsx(_components.strong,{children:`Script Manager`}),` section. This is where you add scripts that will run across all pages.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=f457513a2f4a44a8f2e859d72e693fb1`,alt:`Site wide script settings Pn`,title:`Site wide script settings Pn`,style:{width:`100%`},\"data-og-width\":`4398`,width:`4398`,\"data-og-height\":`2932`,height:`2932`,\"data-path\":`images/site-wide script settings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?w=280\u0026fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=57b2e4b1e9f50a3d9a0b8587c7c85775 280w, https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?w=560\u0026fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=a3fa3e109619a00e1700fb3600b6fa93 560w, https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?w=840\u0026fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=7ed67e58c8721c5aa46d3e2b51d597e9 840w, https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=ec41c19f76a365988327327e1f1e1d4c 1100w, https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=342000885192a7ae919c71e27a157010 1650w, https://mintcdn.com/replo/ek-FKt6ODbw4xNF2/images/site-wide%20script%20settings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ek-FKt6ODbw4xNF2\u0026q=85\u0026s=9dea5541663e0eeaa17ab2e89f7cddfe 2500w`})]}),_jsx(Step,{title:`Add your script`,children:_jsx(_components.p,{children:`Paste your script code into the Script Manager. Common examples include Meta Pixel, Google Analytics, or other tracking pixels that measure CTR, CVR, and conversions.`})})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Site-wide scripts are best for marketing performance tracking tools that need to measure activity across your entire funnel—pixels, analytics platforms, and attribution tools.`})}),`\n`,_jsx(Heading,{level:`3`,id:`page-level-scripts`,children:`Page-level scripts`}),`\n`,_jsx(_components.p,{children:`For page-specific interactions like quizzes, personalization apps, pop-ups, or custom tracking events, add scripts directly to individual pages through Replo.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open your page editor`,children:_jsx(_components.p,{children:`Open Replo while editing the page where you want to add the script.`})}),_jsxs(Step,{title:`Provide your script snippet`,children:[_jsx(_components.p,{children:`Prompt Replo with the script you need to add and paste in the correct code snippet.`}),_jsx(_components.p,{children:`For example:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add this quiz script to the page: insert [your script code]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),_jsx(Step,{title:`Verify the script is added`,children:_jsx(_components.p,{children:`The script will be integrated into your page. Republish your page to make it live.`})})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Page-level scripts are perfect for tools that should only run on specific pages. This includes quizzes, product finders, exit-intent pop-ups, and personalization apps that create unique shopping experiences per page.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Can I add the same script both site-wide and on a specific page?`,id:`can-i-add-the-same-script-both-site-wide-and-on-a-specific-page`,children:_jsx(_components.p,{children:`Typically, no. Most scripts should only be added once. Adding a script in both places usually results in duplicate tracking, which skews your data. In addition, adding unnecessary scripts globally slows down your shop. Choose site-wide if you need it everywhere, or page-level if it’s page-specific.`})}),_jsx(Accordion,{title:`Do I need to republish after adding scripts?`,id:`do-i-need-to-republish-after-adding-scripts`,children:_jsx(_components.p,{children:`Yes. After adding scripts—whether site-wide or page-level—you need to republish your pages for the changes to go live. Site-wide scripts apply to all pages on your next publish; page-level scripts only apply to the specific page you updated.`})}),_jsx(Accordion,{title:`How do I verify my scripts are working?`,id:`how-do-i-verify-my-scripts-are-working`,children:_jsx(_components.p,{children:`Most tracking scripts have browser extensions or test tools (Meta Pixel Helper, Google Tag Assistant) that verify scripts are firing correctly. Check your analytics dashboard or ad platform to confirm events are being tracked. For page-level scripts, test the functionality directly on your published page.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Adding Scripts","description":"When and where to add scripts to your store","href":"/features/scripts"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why ecommerce stores need scripts","slug":"why-ecommerce-stores-need-scripts","depth":2,"children":[]},{"title":"When to use site-wide vs. page-level scripts","slug":"when-to-use-site-wide-vs-page-level-scripts","depth":2,"children":[]},{"title":"Where to add scripts in Replo","slug":"where-to-add-scripts-in-replo","depth":2,"children":[{"title":"Site-wide scripts","slug":"site-wide-scripts","depth":3,"children":[]},{"title":"Page-level scripts","slug":"page-level-scripts","depth":3,"children":[]}]},{"title":"FAQ","slug":"faq","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"replo","siteName":"Replo","title":"Adding Scripts - Replo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-23T14:03:57.827Z","originalFileLocation":"features/scripts.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"When and where to add scripts to your store\">\u003cmeta data-mint-head name=\"application-name\" content=\"Replo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Adding Scripts - Replo\">\u003cmeta data-mint-head property=\"og:description\" content=\"When and where to add scripts to your store\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Replo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://legacy.docs.replo.app/features/scripts\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://replo.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Adding+Scripts\u0026amp;description=When+and+where+to+add+scripts+to+your+store\u0026amp;theme=1e2270a3d6cfd51bae1a0ac8\u0026amp;signature=dedf0db7d3bb3536ea2fc51dea76b24bff88ea35d4ba2a6c44305534fef61885\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Adding Scripts - Replo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"When and where to add scripts to your store\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://replo.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Adding+Scripts\u0026amp;description=When+and+where+to+add+scripts+to+your+store\u0026amp;theme=1e2270a3d6cfd51bae1a0ac8\u0026amp;signature=dedf0db7d3bb3536ea2fc51dea76b24bff88ea35d4ba2a6c44305534fef61885\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/replo/Mv-L_2Y5QyrIRyCT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Replo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#274AE2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://legacy.docs.replo.app/features/scripts\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/scripts.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://legacy.docs.replo.app/#organization\",\"name\":\"Replo\",\"url\":\"https://legacy.docs.replo.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/replo/snQ9iZU_mhHFjKKv/logo/light.svg?fit=max\u0026auto=format\u0026n=snQ9iZU_mhHFjKKv\u0026q=85\u0026s=aec669998b21f84f668dddb27c35abcd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://legacy.docs.replo.app#website\",\"name\":\"Replo\",\"url\":\"https://legacy.docs.replo.app\",\"publisher\":{\"@id\":\"https://legacy.docs.replo.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://legacy.docs.replo.app/features/scripts#webpage\",\"url\":\"https://legacy.docs.replo.app/features/scripts\",\"name\":\"Adding Scripts\",\"description\":\"When and where to add scripts to your store\",\"dateModified\":\"2026-01-23T14:03:57.827Z\",\"isPartOf\":{\"@id\":\"https://legacy.docs.replo.app#website\"},\"breadcrumb\":{\"@id\":\"https://legacy.docs.replo.app/features/scripts#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://legacy.docs.replo.app/features/scripts#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://legacy.docs.replo.app/features/building-pages-ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding Scripts\",\"item\":\"https://legacy.docs.replo.app/features/scripts\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://legacy.docs.replo.app/features/scripts#article\",\"headline\":\"Adding Scripts\",\"name\":\"Adding Scripts\",\"description\":\"When and where to add scripts to your store\",\"url\":\"https://legacy.docs.replo.app/features/scripts\",\"mainEntityOfPage\":{\"@id\":\"https://legacy.docs.replo.app/features/scripts#webpage\"},\"dateModified\":\"2026-01-23T14:03:57.827Z\",\"publisher\":{\"@id\":\"https://legacy.docs.replo.app/#organization\"},\"isPartOf\":{\"@id\":\"https://legacy.docs.replo.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Replo\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Replo\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/scripts.md","siteName":"Replo","nav":{"global":{"anchors":[{"anchor":"Announcements","icon":"megaphone","href":"https://www.replo.app/changelog"},{"anchor":"Feature Requests","icon":"rocket","href":"https://feedback.replo.app/"}]},"tabs":[{"tab":"Getting started","pages":[{"title":"Getting started","href":""}]},{"tab":"Features","groups":[{"group":"Features","pages":[{"title":"Generating Pages With Replo","href":"/features/building-pages-ai"},{"title":"Edit Mode","href":"/features/edit-mode"},{"title":"Brand Library","href":"/getting-started/brand-library"},{"title":"Version History","href":"/features/version-history"},{"title":"Page \u0026 SEO Settings","description":"Page \u0026 SEO Settings","href":"/features/site-page-settings"},{"title":"Adding Scripts","href":"/features/scripts"},{"title":"Publish","description":"Publish your sales funnel and start selling","href":"/features/publish"},{"title":"Custom Domains","href":"/features/custom-domains"},{"title":"Home Pages","href":"/features/home-pages"},{"title":"Page Speed","sidebarTitle":"Page Speed","href":"/features/page-speed"},{"title":"Workspaces and Projects","sidebarTitle":"Workspaces \u0026 Projects","href":"/features/workspace-projects"},{"title":"Permissions","href":"/features/permissions"},{"title":"Page Sharing","href":"/features/template-sharing"},{"title":"A/B Testing","href":"/features/ab-testing"},{"title":"Voice Mode","href":"/features/voice-mode"}]}]},{"tab":"Prompting","pages":[{"title":"Prompting","href":"/prompt-engineering/prompting-101"}]},{"tab":"Commerce","pages":[{"title":"Commerce","href":"/commerce/introduction"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/use-cases/introduction"}]},{"tab":"Glossary","pages":[{"title":"Glossary","href":"/glossary"}]}]},"basePath":"","title":"Adding Scripts - Replo","buildId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","deploymentId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","dynamics":["10e4515597","a74be98ba7"],"chunks":["BannerMarkdown-C5TFv6lK.js","dist-Cu7_SikL.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-2_c6mSt_.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","zoom-image-lightbox-9bQKnClW.js","lightbox-handle-r17bVUz3.js"]}