Creating and setting up VK pixel
Setting up the old and new (TopMail for VK Advertising) versions of the pixel.
Setting up the old version pixel
When you create a flow
Add an offer and fill in the main flow data, then, press the "Apply" button to create a flow domain, you'll need it in the future:
Go to your VK ad account, Retargeting section, select "Pixels" tab and press the "Create pixel" button.
Then, fill in the required information:

"Name" - any name you like, unless you're planning to create several pixels to get info about different audiences. If you are, you need to understand how you will distinguish them from each other.

"Authorized domain" - now, you need a domain from a flow – the one that you created. Use its main part:


"Website focus" - choose the one that is the closest to the subject of the offer which the traffic will be driven to.

Now, you only have to copy the pixel code specified on the screenshot and save it in a flow:
Insert the copied code in flow settings, like this:
Don't forget to save the flow.
IMPORTANT: Entering counters in offer flows with redirect landings is limited: if the advertiser supports pixel transfer, then the field for entering the pixel will be active. Also pay attention to the description in the offer card, where the nuances of how pixels work may be indicated.
When a landing page is downloaded to a hosting service
Add an offer to be able to download a landing page to your hosting server and press the button:
Download an archive to your hosting service and unpack it.

Go to VK ad account. Choose Retargeting section, go to "Pixels" tag and press the button: "Create pixel".
Then, fill in the required info:

"Name" - any name you like, unless you're planning to create several pixels to get info about different audiences. If you are, you need to understand how you will distinguish them from each other.

"Aothorized domain" a domain which you downloaded a landing page from an affiliate network to.

"Website focus" - choose the one that is the closest to the subject of the offer which the traffic will be driven to.
Now, you only have to copy pixel code and insert it into the required file on a hosting service:
There're several options:
  • If you need a client base to drive traffic to similar offers and work with warm clients who have already bought your products or placed orders, add pixel code (in the footer) - invoice2/index.php - before closing the </head> tag, or in file trackers_order.php from landing root folder.
  • If you want to make potential buyers who saw an offer but didn't make a purchase finally make it, add pixel to index.php before closing </head> tag, or in file trackers.php from landing root folder.
  • If you need a client base to promote other products later, add VK pixels both to index.php and invoice2/index.php before closing </head> tag, or in files trackers.php and trackers_order.php.
Dynamic counter
The downloaded landing page has a Dynamic Pixel. It's already available, you do not need to insert codes into the landing page. At the end of the URL, insert ?vk_pixel= (after the domain) or &vk_pixel= (after other macros), and after the = sign, insert the counter ID.
New version (TopMail)
After the VK and Mail platforms merge their pixels were combined into one main one. Let's look at how to connect the VK Advertising pixel and landing pages of the best affiliate network TL.
When you create a flow
Add the offer to My and fill in the basic data of the flow, then click the "Apply" button so that the system creates a flow domain, you will need it later:
Go to your VK advertising account and go to the "Sites" section.
Now click on the "Add Pixel" button.
Fill in the URL field with the domain from the stream you created earlier.
All that remains is to click the "Add" button.
After this, a message about the successful creation of the pixel and its ID will appear. To proceed to further settings, you need to click on the "Get code" button.
Now go to the "Events" tab.
Fill in the fields:
  • category;
  • description;
  • Value - fill it free as you desire;
  • select the occurrence condition - "Page visits";
  • In URL contains insert - "invoice2".
All that remains is to click the "Add event" button
Go back to the "Pixel Code" tab and copy the pixel ID accordingly.
With it, return to the previously created stream and paste it into the TopMail (ID) field and do not forget to save the stream again.
This completes the setup of the VK pixel for the TL stream.
When a landing page is downloaded to a hosting service
Go to your VK advertising account and go to the "Sites" section.
Now click on the "Add Pixel" button.
Fill in the URL field by inserting the domain to which the landing page was uploaded.

All that remains is to click the "Add" button.
After this, a message about the successful creation of the pixel and its ID will appear. To proceed to further settings, you need to click on the "Get code" button.
Now go to the "Events" tab.
Fill in the fields:
  • category;
  • description;
  • Value - fill it free as you desire;
  • select the occurrence condition - "Page visits";
  • In URL contains insert - "order.php".
All that remains is to click the "Add event" button
Go back to the Pixel Code tab and copy the pixel code accordingly.
Now all that remains is to paste this code into the landing page. This is done in two places:
  • in index.php ans invoice2/index.php before the </head> closing tag
  • or in the files trackers.php f trackers_order.php
but not in all 4 files, but only in 2.

And with this, setting up the VK pixel when downloading a landing page in TL is completed.
Dynamic counter
The downloaded landing page has a Dynamic Pixel. It's already available, you do not need to insert codes into the landing page. At the end of the URL, insert ?mail_pixel= (after the domain) or &mail_pixel= (after other macros), and after the = sign, insert the counter ID.