Application market online game information statistics

WBOY
Release: 2016-08-08 09:32:19
Original
1280 people have browsed it

1. Click statistics

The general statistical method is to provide a set of interfaces that need to be embedded in the code. When the program needs to call the interface, the background can collect statistics.

Statistical method:
1. The platform SDK provides 3 interfaces STARTSTOPPAUSE. When the game starts, the server opens the session and records a start time. When the game STOPs, the time is calculated again. Only when a certain amount is accumulated through the calculation time interval is it considered valid. of game clicks.
Existing problems: The user's game time cannot be controlled, and players' crashes and exits cannot be counted
2. When the game calls Start, the SDK hashes an ID to identify a click. At the same time, the SDK starts a timer and sends the ID to the server. The server Open a session and record the game click ID. The SDK updates data synchronously to the server regularly. After the server session accumulates a certain number of times, it will record the click as a valid one, update the database, close the session, and notify the SDK to close the timer.
Prevent malicious ranking brushing:
In order to effectively prevent malicious ranking brushing, the server records the client IP when the client uploads the click ID, and limits an IP to only record a certain number of valid clicks within a period of time.

Problem: Users in the LAN obtain the same IP from the server.

Timing diagram:


The above introduces the statistics of online game information in the application market, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template