Doofinder logo

Support Documentation

Search icon

Installing Doofinder

Getting Doofinder up and running on your custom website is a breeze whether you are integrating via API or a data feed.

This quick guide walks you through the first steps of the installation process: from creating your Store to configuring your Search Engine, indexing your product feed, and finally deploying the single-line installation script.

Let’s make your eCommerce search and discovery solutions smarter and more efficient in just a few clicks.

Pre-requisites to Install Doofinder

If you are using a CMS, visit our plugins section to install Doofinder in your site. In the top-bar, select the plugin you are using and read the Installation Guide.

Installation Steps

Doofinder can be installed in four easy steps.

Prior to begin the installation, log in to your Admin Panel. If you don’t have an account yet, read Sign Up for an Account. Then, click "Create store" to begin the installation process:

create store

1. Create a Store

After clicking “Create store”, a pop-up will appear:

  • Enter the complete URL of your website. When not using a plugin, your platform will be automatically detected as "Other" in the platform field.
  • Select your store’s industry.
  • Click "Continue".
enter the url of the store, choose your platform (if not detected) and select your store's industry.

2. Create a Search Engine

In this step, you will define the configuration of your Search Engine. You will choose how to feed your product information, the language, and currency.

What kind of data are you going to store?

Choose a data type:

  • Product

  • Other type of data (such as blog posts, categories, or web pages).

    For Other type of data, the currency option is disabled, you can only select the language. If you add a Product data feed later, you will need to select a currency.

How do you want to index your data?

Choose your indexing option:

  • File or Feed URL: enter your feed URL or drop the CSV, XML or TXT file. With this option, a feed URL box will appear to add a URL or to upload a file.

  • Connect via API: use our API to index data. With this option, a feed URL box will appear to add a URL or to upload a file.

  • “Use sample store data” to explore Doofinder with demo content. You can replace it with your own store data whenever you’re ready. The sample data is in English and uses EUR as the currency by default.

Language

Select a language from the dropdown menu to display results on your SE.

Currency

Select the currency you want to use to show and process prices clearly in your store.

Click "Create Search Engine", indexation will begin, and your Store and Search Engine will be created.

create the search engine: choose an indexing option, choose a language and a currency.

3. Connect Your Store

Add the Doofinder script to your site to connect your store with Doofinder. Copy the script and paste it in the header or footer of your website.

Click "Connect" to finish installation.

For proper functionality, ensure the script is placed in either the header or footer. If the script is not placed in its designated location within the HTML, Doofinder may not function correctly, as it depends on the full website context to track data, such as conversions and user interactions.

Coonect your store copying your script from the Doofinder Admin Panel - Step 3 of Store Creation.

3a (only if CSS is not detected): Manually Set Search Bar Location

Doofinder will detect the CSS selector of your search bar automatically.

If it can’t detect it, you’ll need to enter the selector manually before the Store connection step (the final step where your Store and Search Engine are created).

You can use an id, name, or class as the CSS selector. For example:

  • #search-box
  • input[name="q"]
  • .input-search

For more information, check our guide on CSS Selector.

If you need to complete the Search Bar location step, indexation and the creation of the Store and Search Engine will begin only after this step is finished.

The panel will look like this:

Indicate the CSS Selector to place the layer.

Default Script

This is the single script with minimum configuration (store and zone):

   <script src="https://eu1-config.doofinder.com/2.x/store_id_here.js" async></script>

This script contains:

  • Zone “eu1-config.doofinder.com”

Zone must be configured depending on the EU zone, US zone or AP Zone (your online store zone). “eu1” if your zone is Europe, “us1” if your zone is America, "ap1" if your zone is Asia.

  • Store ID: is your Store ID code followed by “.js”.

The Doofinder script is the javascript code Doofinder will provide once you’ve created an account while signing in as a new user.

This unified installation script allows you to manage all Doofinder products through a single line of code. This streamlined setup ensures faster deployment of new features, updates, and services as they become available.

You can always find the Doofinder Script on your Admin Panel > Configuration > Store Settings. Scroll down to Installation Script and you’ll find it displayed.

Single Script Example.

How to Update Your Script

If you are using the old script, you may need to update your script to enjoy new features, functionalities, and plans. Read the Update Script documentation for a full step-by-step guide.

If you are using one of our plugins, in the same documentation you will find direct links to the instructions for each platform.

Integrate Doofinder Using GTM

Integrating Doofinder using the Google Tag Manager (GTM) allows you to manage your script without touching your site's HTML code.

To integrate it this way, follow these steps:

  1. Create your GTM account or log in if you already have one.
  2. Select the workspace where you're going to add the new script.
  3. create gtm account
  4. Select "Add a new tag" to configure Doofinder's script.
  5. add new tag
  6. On the next screen, provide the following:
  7. – A name for the new tag, for instance: "Live Layer Script".

    – Inside the tag configuration, ensure that the tag type is Custom HTML and paste your script for Doofinder inside the HTML editor, including the surrounding script tags.

    The term 'const' does not work in GTM, so it is necessary to modify the beginning of the Live Layer script as follows:
    const dfLayerOptions => var dfLayerOptions
    See the image below.

    choose the script

    – Then under Triggering, choose when the script must be activated. Note that the recommended option is All Pages. This way, Doofinder will be available on all pages.

    trigger all pages
  8. Once done, press "Save" and your HTML tag will be created.
  9. Back in your GTM dashboard, press the "Submit" button in the top right corner.
  10. submit gtm
  11. Select "Publish and Create Version", then provide a relevant version name and description for the records, choose the environment where you want to publish the changes and press the "Publish" button in the top right corner.
  12. publish and create version
  13. You will be able to see the details of the latest published version from the dashboard. The Doofinder Layer should be working as soon as the information reflects the latest version.

Did you find this page helpful?