Traffic Distribution by Rules
Updated over a week ago

PeerClick can distribute visits not only between paths, landers and offers, but also according to the rules. To add a new rule to the campaign, click the Add rule button on the campaign edit page.

This window will open:

Operation logic

The rule consists of criteria - conditions of a certain type (country, city, OS, etc.). You can know more about the types below. To add a criteria to a rule, click the Add condition button in the corresponding rule.

All rules work with a top-down priority. So the higher the rule is, the more priority it has.
You can change the place of the rules according to the system of weight

You can choose AND or OR operation between the criteria. AND operation is a fulfillment of both conditions. OR operation is a fulfillment of one condition.

Inside of condition OR operation works between criteria until the first match.

Rule types

Peerclick allows you to distribute input traffic based on the following parameters.

Country - User country

City - User city

State - User state/region

Language - Browser language

Day of week - By day of week

Time of day - By hour of day

Timezone - By timezone

Connection type - User device connection type

ISP - Communication operator

VPN - Connection via VPN

Proxy - Proxy traffic with substituted IP

IP address - User IP address

Device type - Device type: Mobile Phones, Tablets, Smart TV, Desktops and Laptops

Brand and model - Brand and model of the user device

Operation system - User's OS and its version

Browser and version - User browser and version

Inches - Screen resolution per inch

Pixels - Pixel screen resolution

Referrer - By referrer

Get - Occurrence of a string in URL get-parameters

URL - Occurrence of a string in URL

V1 - Vn - Occurrence of a string in URL get parameters according to Vn numbering in traffic source settings

Anti-Fraud protection - Protection from suspicious traffic

Useragent - Useragent transmitted by browser

Uniqueness - User uniqueness

1. Geo: Country, State, City, Language

  • Select the necessary condition and click Add condition. To cancel the condition, click Delete condition.

  • Click on the input field. A drop-down menu will appear. Here you can select the necessary value or start entering the name of the Country / City / State/ Language. In the drop-down menu you will see all partial/full matches for the entered value. Select the desired one from the appeared list and it will show up in the field.

  • You can add several conditions to one rule. Enter a new value next to the already added. You can add rules for cities and languages ​​in the same way.

  • Click the Apply button and the rule will be added to the campaign.

  • Select a lander / direct linking and an offer to redirect traffic according to this rule.

  • You can add additional criteria to this rule using the Add rule button.

2. Time: Day of week, Time of day, Timezone

  • To select Day of week click the desired value. You can select several values.

  • Enter the time interval during which you want to send traffic on this rule. Time will be calculated according to the account time zone settings. You can select several time intervals clicking the +, or remove one of the intervals by clicking the -.

  • Click on the Timezone input field and select one or more things on the list.

3. Connection: Connection type, ISP, VPN, Proxy, IP address

  • Click on the Connection type input field and select one or more things on the list.

  • Click on the ISP input field and start entering/select one or more things on the list.

  • VPN and Proxy conditions are set only according to the Equal/Not equal criteria.

  • Rules for both IP and IP-ranges of formats or (CIDR record) are available in PeerClick. You can also use ranges with a dash and with digits skipping *. Just add line by line a list of values ​​in the text box and click Apply.

4. Devices: Device type, Brand and model, Operating system, Browser and version, Inches, Pixels

  • Click on the Device type input field and start entering/select one or more things on the list.

  • When you select a Brand and model condition you will see a list of brands with a search field in the first column. Click on the field and start entering/select one or more checkboxes on the list. In the second column a list of models of the selected brand will appear. If you need to select only certain models, uncheck the unnecessary models. When you do this you will see a list in the form of + in the left field. If you select a brand and you need all the marked models, a selected condition in the form of + will appear in the field on the left. It means all the models of this brand will appear.

  • You can set the conditions for Operating systems, Browsers and versions in the same way as for Brands and models.

  • If you select the condition for the Device resolution per inches, you can mark the suggested sizes with checkboxes or set a more accurate range of resolution in the drop-down menu.

  • You can set the conditions for Pixel device resolution in the same way as for Device resolution per inches.

5. Referrer

  • Load in the text box a list of values according to which you want to redirect traffic. Each of them should start on a new line below. Mark the checkbox Select empty referrers to include empty/unrecognized referrers to the condition.

6. Url: Get, Url, Vn

  • You can set the conditions for Get, Url, Vn in the same way as for Referrers.

  • Get condition will look like:

  • URL condition will look like token1=t&token2=t2&token3=t3&token4=t4&token5=t5

  • V1 condition will look like t

  • V2 condition will look like t2

The difference between Get and Vn conditions is Vn criteria is set only according to PeerClick traffic source settings and equal to TokenN. You can set get parameters not only from PeerClick for Get criteria.

7. Anti-fraud protection, Useragent, Uniqueness

  • In the Anti-fraud rule, mark the necessary checkboxes for the bot traffic.

  • The condition for Useragent is set in the same way as the condition for referrers.

  • The visit uniqueness condition is set only by the Equal/Not equal criteria.

Work with lists of values

Working with the country and language rules you can use lists of values. To load values ​​in the list, click the Add list button.
Copy the list of values to the appeared form ​​and click Append. You can use two formats to input values - a two-letter common abbreviations or full names. The alphabetical register isn’t important but you can enter text only in English.

All the values ​​will be added to the field:

To copy the rule values in the form of a list, click the Get list button, then click the Copy button. The list is copied to the clipboard.

Path in the rules

You can create several paths in rules. Create a new path clicking the Add path button.

Comparison Operators and Regular Expressions

Peerclick has the following methods of comparison on conditions:

  • Full match with a string - the criteria is considered correct with a full match with the string.

  • The presence of substring - if there is a string in the checked value, the criteria is considered correct.

  • Regular expression - you can record a criteria using a regular expression. For example, the Hel*o criteria will pass the values ​​Hello, Helo, Heo, Helllllllllllo, etc., and the [0-9] criteria will pass full values ​​from 0 to 9.

  • Comparison of numbers - to compare numbers, use >, <,> =, <=, =,! = and the {token} macro, where {token} is the value that came into the parameter, for example, 10 <{token} <= 20. So if the value that came into the parameter is less or equal to 20 and more than 10, then the condition is met.

Rules Copying

You can copy any rule in a campaign and paste it into any campaign. To do this, use the Сopy (1) icon in the Actions header:

Click the Clear Buffer (2) button to remove the copied rule from the buffer.
Use arrows (3) to put a rule down.

If you need to copy more than one or all the rules you should use flows.

Did this answer your question?