Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Installation & Developers
  • Troubleshooting

Using Appcues with Turbolinks

Modifying your Appcues implementation to be compatible with applications using Turbo framework

Written by Sofia Domingues

Updated at June 11th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Installation & Developers
    Installing Appcues Web Installing Appcues Mobile API & Data Troubleshooting Extras
  • Installation & Developers
    Installing Appcues Web Installing Appcues Mobile API & Data Troubleshooting Extras
  • Web Experiences
    Building Web Experiences Targeting Studio Customization & Styling Use Cases Troubleshooting FAQ
  • Mobile Experiences
    Installation & Overview Building Mobile Experiences Mobile Analytics & Integrations Troubleshooting
  • Workflows
    Building & Configuration Use Cases Workflow Analytics and Integrations
  • Account Management
    Subscription Users & Data
  • Analytics
    Experience and Event Analytics Data
  • Best Practices
    Best Practices Use Cases Pro Tips Product-led Growth
  • Integrations
    Integration Documents Use Cases Extras
+ More
  • Home

  • Installation & Developers

    • Installation & Developers

      • Web Experiences

        • Mobile Experiences

          • Workflows

            • Account Management

              • Analytics

                • Best Practices

                  • Integrations

                    Appcues + Turbolinks Implementation

                    With SDK version 4.53.0 and later Appcues now has a path forward for web applications running Turbolinks frameworks. This document will contain the steps needed in order to properly implement Appcues with this framework.

                    Unsure what version your Appcues SDK is on?

                    Open your browser's console and run Appcues.settings() to find out!

                     

                    Adjusting Appcues script settings

                    Including the customContainer property in the window.AppcuesSettings object will allow you to specify where on your web application Appcues content will load. Subsequently, this allows you to establish a permanent container that Turbolinks will ignore so your Appcues experiences will not be interrupted.

                    <script>
                      window.AppcuesSettings = {
                        customContainer: '.appcues-wrapper'
                      };
                    </script>
                    <script src="//fast.appcues.com/ACCOUNT_ID.js"></script>

                    Create Appcues permanent container

                    In your web application, you will need to create a permanent home for where your Appcues content container will live.  In our example, we use a div at the end of the application page body.

                    <div data-turbolinks-permanent>
                      <div class='appcues-wrapper'></div>
                    </div>

                    Create an Appcues page callback

                    You will want to create a callback that's initialized after Appcues identification to trigger the Appcues.page call on every turbolinks load call if you're not looking at a cached "preview" of the page:

                    document.addEventListener("turbolinks:load", function (e) {
                        if (!document.documentElement.hasAttribute("data-turbolinks-preview")) {
                          window.Appcues.page();
                        }
                    });

                    Using a newer Turbolinks library?

                    A similar implementation process applies to the latest version of Turbo, just replace "turbolinks" with "turbo" in the property and event names.

                    <div data-turbo-permanent>
                      <div class='appcues-wrapper'></div>
                    </div>
                    document.addEventListener("turbo:load", function (e) {
                        if (!document.documentElement.hasAttribute("data-turbo-preview")) {
                          window.Appcues.page();
                        }
                    });
                     

                    Was this article helpful?

                    Yes
                    No
                    Give feedback about this article

                    Related Articles

                    • Requirements for Using Appcues
                    • Using Appcues with iFrames
                    • Using Appcues with RequireJS (Developer)
                    • Troubleshooting the Chrome Extension & Builder
                    • Testing Appcues on a Wrapped Webapp
                    DON'T TAKE OUR WORD FOR IT

                    Start building with Appcues for free

                    Try before you buy
                    No credit card required
                    Support included
                    Start building for freeBook a demo
                    or take an interactive tour
                    Appcues logo

                    Product

                    In-app messaging
                    Email
                    Push notifications
                    Workflows
                    Data
                    How it works
                    Pricing
                    What's new

                    Use cases

                    Onboarding
                    Free-trial conversion
                    Feature adoption
                    Feedback
                    Support

                    Integrations

                    Why connect
                    All integrations
                    All workflows

                    Company

                    About
                    Careers
                    HIRING
                    Why Appcues
                    Teams
                    Customers

                    Support

                    Request a demo
                    Start free trial
                    Developer Docs
                    Help Center
                    Customer Success
                    Contact

                    Resources

                    Product Adoption Academy
                    Courses
                    Workshops
                    Templates
                    Examples
                    Made with Appcues
                    The Appcues Blog
                    PLG Collective
                    Product-led Experience Report
                    The Product Experience Playbook
                    The Product-Led Growth Flywheel
                    © 2025 Appcues. All rights reserved.
                    SecurityTerms of ServiceWebsite Terms of UsePrivacy PolicyCookie Preferences
                    Expand