Doofinder logo

Support Documentation

Search icon

Page Type Mapping

Page Type Mapping Configuration

As you configure your Recommendation Carousel, you’ll be required to specify the URL structure of your website pages where the carousels can be displayed. As we mentioned, you’ll be asked to configure your Home, Product Pages, Category Pages, Shopping Cart, and Custom Pages

Please note that the URLs must be the same as they’re displayed on your website. For example, if you configure your Home Page as www.mydomain.com, it must be pasted as www.mydomain.com and not www.mydomain.com/. Otherwise, the recommendation carousel won’t be shown.

Caution: the URL copied directly from the browser might not be the same as the one displayed. Make sure to use the one displayed on the brownser before clicking on it and copying it.

On this panel, you can always configure, edit, or delete the pages at any moment. Learn more about each Page Type.

filter configuration

By clicking the plus button “Add Custom Page Type”, you’ll be able to create a new Page Type Configuration. This means Doofinder will allow you to Add a Custom Page. Select a name, and enter the URL fragment for the content and the URL fragment for the site.

add custom page type

By clicking the pencil icon, you’ll be able to configure your Page Type Name. As you can see, a dropdown menu will appear. When configuring Page Type Mapping, if you add multiple conditions, they stand combined with "ANY".

page type name and conditions

Types of Configurations

  • Contains: Use "Contains" for simple URL structures where identifiable elements are consistently present on a specific type of page.

Examples:

Category Page: https://doofinder.com/collections/longboard

Product Page: https://doofinder.com/products/pintail-falcon-34-longboard

Cart Page: https://doofinder.com/cart

  • Equals: Use "Equals" for a specific page on your eCommerce site where the carousel should appear.

Example: https://doofinder.com/221586-fan-zone?tag=fan-zone-harry-potter

  • Start With: Use "Starts With" when your eCommerce has subdomains, and you want to display carousels either on the main domain or specific subdomains.

Example: https://store.doofinder.com/ instead of https://doofinder.com/

  • Regex: Learn about Regex specificities on the following section.

Make sure to include all local domains if you want the carousel to display across multiple Search Engines (e.g., doofinder.com | doofinder.es | doofinder.pt).

Regex Page Type Mapping

In some websites, the product or category pages cannot be identified with a specific word in the URL (such as /product). It might happen that your site URL does not have “keywords” to identify the page type. This happens, for example, in eCommerce websites that use Prestashop. In these cases, the Regex can be used to detect those types of pages since it uses a variety of characters and metacharacters to define a complex pattern.

Take a look at the video example below:

Learn by Example - How to Generate a Regex

You can use an AI language model to help you create a regular expression (regex) for URLs. By describing what you need the regex to match, the AI can generate the appropriate pattern for you.

For example, you can describe the structure of the URLs you want to match, and the AI will provide a regex that fits your criteria. This can save you time and ensure accuracy in your regex patterns.

Here is a prompt example with URLs for an AI language model, like Chat GPT:

You’re an eCommerce manager and need to create a Regex for the product pages of your store. Here are 3 URLs of product pages from your eCommerce site:

  • https://prestashop.doofinder.com/en/inicio/85-gucci-gg-round-acetate-sunglasses.html
  • https://prestashop.doofinder.com/en/inicio/54-puma-at-ess-grip-bag.html
  • https://prestashop.doofinder.com/en/inicio/53-puma-phase-unisex-backpack.html

The AI generates the following Regex Pattern:

http:\/\/prestashop.doofinder.com\/en\/inicio\/\d+-[a-z0-9-]+.html$.

Remember to use your store URLs for the AI to create a correct Regex.

For more options to generate a Regex, just write on your preferred browser “Regex Generator” to find different tools available online.

Did you find this page helpful?