Skip to main content

How to Manually Install ABConvert Script in Custom Theme Files

Ensure test scripts work with custom file paths and third-party page builders

Leo avatar
Written by Leo
Updated today

If your store uses a custom theme structure or third-party page builder, you can still run ABConvert tests by manually inserting our snippet into the file that renders the <head> tag.

When You Need Manual Installation

ABConvert normally injects scripts via theme.liquid using a snippet in the /snippets folder. This works by default for most themes.

You may need manual installation if your theme or test page use a different layout file (not theme.liquid).

How to Add the ABConvert Script

  1. Create the test.

  2. Open the file that is rendering the page.

  3. Paste the relevant snippet from the list below inside the <head>.

  4. Save the file and preview your store.

Snippets for Each Test Type

Use the following {% render %} snippets depending on the test you’re running:

  • Price Test (Duplicate Variant or Product)

    {% render 'abconvert-price-test' %}

  • Price Test (Cart Transform)

    {% render 'abconvert-checkout-ui-test' %}

  • Theme Test

    {% render 'abconvert-theme-test' %}

  • Template Test

    {% render 'abconvert-template-test' %}

  • URL Redirect Test

    {% render 'abconvert-url-redirect-test' %}

  • Content Test

    {% render 'abconvert-content-test' %}

  • Delivery Customization Test

    {% render 'abconvert-delivery-customization-test' %}

  • Payment Customization Test

    {% render 'abconvert-payment-customization-test' %}

  • Checkout UI Test

    {% render 'abconvert-checkout-ui-test' %}

Page Builder Compatibility

We support integration with these page builders:

  • PageFly

  • GemPages

  • Foxify

If you’re using one of them, no manual changes are needed.

Did this answer your question?