Instructions for configuring the “Add to cart” button.

Turbo pages can display the Add to cart button. It opens a desktop or mobile version of the shopping cart page that shows the added product.

To configure the button, select your CMS:

  1. In Yandex.Webmaster, go to the Turbo pages → Settings → Checkout page.
  2. Enable the Add to cart option.
  3. Select CMS: 1C-Bitrix from the list.

    The URL is generated automatically:

    {offer_url}&action=BUY&id={offer_id}

    {offer_url} — Link to the product page on the site specified in the YML file (the url element).

    {offer_id} — The offer ID specified in the YML file (the ID attribute of the offer element).

  4. Click Save and check if the button works on the sample Turbo page. The Add to cart button should open your site shopping cart with the product inside.

    If it doesn't, set up a redirect to the cart page from the page the button opens. For example, using a free plugin.

    Example redirect configuration
    1. In 1C-Bitrix, go to the Content → Redirect → List of redirects and click Add.
    2. In the Start page field, specify the cart page that should open after clicking the Add to cart button. For example, /personal/basket.php.
    3. In the End page, specify the shopping cart page on your site. For example, /personal/cart/.
    4. Turn on the Activity option.
    5. Save the settings.
  5. (Optional) Set up conversion tracking using Yandex.Metrica goals.
To track conversions, use e-commerce reports.
Note. Data for e-commerce reports on Turbo pages is passed automatically. To collect information from the main site, you need additional settings.