Configuring Product Ads in VK 1С-Bitrix
Product ads in VK are dynamic advertisements with product cards from your store catalog. To make it work, you need to: send product catalog to VK via feed, install VK pixel on site, and link purchase events to the advertising account. Bitrix supports all three steps — partly through built-in tools, partly through custom settings.
Exporting product feed for VK
VK accepts feeds in YML (Yandex Market) format or its own JSON format. Bitrix has built-in YML export via the catalog module: "Shop → Export Products → Yandex.Market". This same file works for VK.
Configure the export:
- Select required infoblock and catalog sections
- Enable image export (
PICTURE→ absolute URLs) - Set up
OFFER_URLtemplate — URL to product detail page - Specify currency type and delivery settings
Feed is saved at the path you specify (e.g., /upload/vk_feed.xml) and updated by agent per schedule — every 2–4 hours. In VK Ads personal account, add feed via URL https://your-site.ru/upload/vk_feed.xml.
Installing VK pixel
VK pixel is JavaScript code that tracks visitor actions. Get pixel ID in "VK Ads → Audiences → Pixels".
Insert pixel code in site template. In Bitrix, this is done via "Settings → Product Settings → Analytics" or directly via header.php template editing. You can also use tag manager (Google Tag Manager).
Basic pixel events to send:
-
VK.Goal('view_home')— homepage -
VK.Goal('view_product', {products: [{id: 'PRODUCT_ID', price: PRICE}]})— product page -
VK.Goal('add_to_cart', {...})— add to cart -
VK.Goal('purchase', {products: [...], value: TOTAL})— successful order
In catalog.element component template, add JavaScript with VK.Goal call and current product data from $arResult.
Linking purchase events via server
Browser pixel is blocked by AdBlock. For reliable purchase event delivery, use VK Conversions API — server-side sending. On order completion in OnSaleOrderPaid event handler, send POST request to https://api.vk.com/method/ads.checkRetargetingPixelDomain with order data via \Bitrix\Main\Web\HttpClient.
What we configure
- Product export to YML with VK settings and agent update schedule
- VK pixel code installation in site template
- JavaScript events on product, cart, and successful order pages
- Server-side purchase event sending via Conversions API on
OnSaleOrderPaid - Feed binding to VK advertising account to launch dynamic ads







