T
T
Test Test2015-04-23 16:24:56
In contact with
Test Test, 2015-04-23 16:24:56

What is the correct way to add VK retargeting code by event?

Hey! I would like to ask you, gentlemen, how to properly set up re-targeting on VK. We have two goals:
1. Visiting a certain page
2. Clicking on a button on that page
Everything is clear in the first paragraph.

(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=[CODE]';

The second point is what I understand:
elem.addEventListener('click' , function(e) {
(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=[CODE]';
});

But what worries me about the second point:
1. Should a pixel be generated with each click on the button?
2. Or a pixel should be generated only once, and no more (I have a library for this)
What will be more correct? Your opinion?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evnuh, 2015-04-23
@evnuh

Depends on your desires, suddenly you have only girls clicking on one button, and only boys clicking on the other. Then they should be divided into two groups for remarketing. Well, as if one pixel is enough to make it clear that this user has performed the action.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question