Shopify is an E-Commerce platform that provides tools to help online sellers run their businesses.  

FullStory can easily be set up on most Shopify themes by following the steps below. Once installed, you can use FullStory to play back user sessions, build conversion funnels, and gain new insights into how your customers navigate your store.


    1. Log in to your Shopify account, and open your admin panel.

    2. Select “Online Store” under the “Sales Channels” section of the admin panel.


    3. On the “Themes” section of the panel, click the Actions button in the upper right-hand corner of the page to reveal a dropdown.

    4. Click “Edit code”.

    5. Click “theme.liquid” under the “Layout” section.*

    6. Paste your FullStory data capture snippet (learn how to find it here) into the <head> of the theme.


* If you’re using a custom theme, it’s possible that the theme file has a name other than "theme.liquid". Check with the theme’s developer to verify.

Adding your data capture snippet to your checkout flow

Basic Shopify, Shopify and Advanced Shopify merchants do not have access to modify the checkout flow. This flow will not be captured in your sessions. As a workaround, we recommend adding a /thank-you page after your checkout flow to see whether users make it all the way through your checkout flow.

Shopify Plus merchants can add your data capture snippet directly to your checkout.liquid file. After doing so, newly indexed sessions should contain your entire checkout flow. 

Note: Shopify will be deprecating this method as of August 13, 2024. FullStory is working on supporting the new checkout extensibility. In the meantime, you can continue to use the workaround mentioned above.

Adding your data capture snippet to your Order Status page

Basic Shopify, Shopify and Advanced Shopify merchants can add your data capture snippet to your Order Status page by including it in your Additional Scripts section under Settings > Checkout. You can add the snippet in the Checkout settings of your store.

Image 2023-08-01 at 3.13.01 PM.png

Image 2023-08-01 at 3.13.31 PM.png

The below sample code can be copied into the additional scripts field. (Be sure to update your org ID from the default text when implementing.) This script will load FullStory on the Order Status page and fire a custom event when the page is loaded so you have visibility into customers that reach the end of the checkout flow.

window['_fs_host'] = '';
window['_fs_script'] = '';
window['_fs_org'] = '{{YOUR_ORG_ID}}';
window['_fs_namespace'] = 'FS';
    if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;}
    g.log = function(a,b){g("log",[a,b])};
    g.setVars=function(n, p){g('setVars',[n,p]);};
    if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};

  // Function to call FS.event when the page is loaded
  function sendFullStoryEvent() {
    function _fs() { return window[window['_fs_namespace']]; }
    // Check if FullStory is loaded and available
    if (typeof _fs() === 'function') {
      _fs().event('Shopify Order Status Page Viewed', {
        // You can include any additional event properties as key-value pairs
        // Example: 'property1': 'value1', 'property2': 'value2'

  // Attach the sendFullStoryEvent function to the window load event
  if (window.addEventListener) {
    window.addEventListener('load', sendFullStoryEvent, false);
  } else if (window.attachEvent) {
    window.attachEvent('onload', sendFullStoryEvent);

Need to get in touch with us?

The FullStory Team awaits your every question.

Ask the Community Technical Support