Caps are the daily routine of an arbitrageur. If you pour regularly and with a good volume, it is a headache to make sure that you don't give more leads than you should.
В Keitaro there is a built-in function for capping - limitation on the number of accepted leads on-offer:
But it is not convenient to use this thing at all. To begin with, let's see what the creators of this function write about it tracker:
"The functionality is useful when an advertiser accepts a limited number of leads (conversions) and then stops processing your traffic. In this case, you can set an automatic change of an offerer to a similar one from another advertiser or affiliate program. When activating the function, you can choose the daily limit, time zone of conversion accounting and an alternative offerer to which the traffic will be switched."
But it is impossible to pour such a scheme on the gasket-land bond! I.e. imagine: you are pouring such Titan Gel. You have set a cap of 100 leads on the offerer. The user gets to the pad, which already indicates the name of the offer - Titan Gel. Then he clicks on the link, tracker determines that the drop is overfilled and sends you to Erogan, let's say. This is bullshit! It's a completely useless feature. Unless you make some kind of "universal" pads without mentioning the offerer on them. And I'm not even talking about the variant when we have several pads for one product.....
All of this we are about to solve and fix! Download the ywbcapfilter.php file from here.. Open it in any text editor and replace on lines 34-35 your API key and the ip address (or domain) on which your tracker. Yes, if your time zone tracker not Moscow - set it down there below the code.....
Then we put it in the application\filters folder inside. Keitaro. Logging in tracker. All right, now we're gonna create tracker campaign and in it a stream for Titan-Gel. The stream can contain any number of Titan-Gel proclams and lends. Next, go to the Filters tab. Select ywbcapfilter and set the drop value:
Then we create a second thread on Erogan to get users there when the drop is overflowed.
How does it all work? It's very simple. For every single person that comes in tracker click our filter looks at what we have in the flow of offers, for each of them looks at how many sales there are today, summarizes the sales and checks their number with the set cap.
DISCLAIMER: under the hood filter uses a couple of api calls trackerthat can slow down the speed of displaying your pads! On tests the speed degradation was about 0.2 seconds, but check it on your hardware and your traffic volume!
And I remind you that the project exists only because of your donations.) Pour in the plus, gentlemen, and don't overfill the mouthpieces!