These days I have studied the advertising statistics system and carefully read some advertisement statistics methods for Google and some other websites! There are basically two open-source ad statistics programs on the market: 1. Google Adsense (ASP) 2. openads (PHP) and phpadsnew, openads should be the first choice for website applications that currently adopt the Linux architecture. It provides excellent statistical support for medium and large websites and can manage ad publishers and customers separately. Log on to the system to view the ad effect. Currently, its maintenance and upgrade version is very high! Now to 2.0.11. However, this project has ended. At present, a project manager in the city is maintaining it on his own! Now I want to explain my research results on openads over the past few days. I hope this will help you:
Step 1 download and install openads
Please refer to my article: openads, phpadsnew advertising statistics system, Chinese installation and usage instructions, full version of the tutorial1. source program download
It is important to select a suitable version.Currently, openads has two versions: openads2.0 and openads2.3. Although 2.3 can be higher than 2.0 in many regions,
Considerable development has distinguished openads 2.3 From phpadsnew (now openads 2.0) in a number of important areas:
Conversion tracking support;
Additional functionality for reporting statistics;
Agency support;
Third-party ad server support;
Faster display of Statistics screens.
However, it is based on another architecture and is not stable enough in many places. The official website also prompts that we want to release version 2.0 unless you have special requirements. We also recommend that you use openads2.0: We suggest you use openads 2.0 unless you need particle features, are a capable administrator and a PHP programmer. here I chose MySQL 2.0 as the database version:
MySQL database version
Official:
Http://www.openads.org/downloads/download-openads-2.0.htmlwe choose to download the mysql version. After decompression, check all PHP files in the/Language/chinese_gb2312 directory and delete the last blank line in all files to ensure that all PHP files are in the?> End,
Then upload all the modified file directories to the Linux server. Note that the folder attribute is 777. You 'd better set a database name first: Here I use phpMyAdmin to create a table and restart Apache
Enter http: // 127.0.0.1/phpadsnew/admin in the browser. The following page is displayed:
Click the proceed button to execute the next step. The program permission statement is displayed. Click Next. The Administrator Account creation page is displayed:
After entering the basic information and account information, if you are sure to use the simplified Chinese interface, select the language option as Chinese (gb2312) and click Next. Then, the Chinese installation interface is displayed, for example:
Enter the database username, password, and database name. Set the data table prefix in advanced settings to avoid conflicts with other data tables in the database. phpads _ is used by default, and then click Next, the following message is displayed:
Click Next to display the logon Management page:
Enter the previously set management account and password to log on to the system.
Step 2 release project Advertisement1. Understand the following terms
A. Customers (independent login) & Projects
Customers and projects are the concept of advertisers. For example, if I am a certain company and I want to advertise, I am a customer in phpadsnew, and the project is a specific image or text advertisement, there is a one-to-many relationship between customers and projects.
B. Publisher (independent login) & version
Publishers and editions are the concept of publishing carriers and advertising spaces. If I have free 468*60 advertising spaces on my personal website, my website is the publisher, my 468*60 advertisement is the version bit
C. Correspondence between projects and vertices.
An advertisement project can be placed on multiple vertices, which has nothing to do with specific customers and publishers.
2. Publish a version advertisement on your website
Click "System Management"> "Release & release"> "new publisher ".
Here, we usually assign an administrator publisher (the second-level administrator) to each channel. He will log on to the channel to publish the channel. Of course, we will set permissions for the channel. For example: I will create a publisher for the 51ditu road book channel!
After that, add "new bit"
The "width and height" here must be remembered. It will be consistent with the advertising in the customer's project in a moment.
3. Set customers and projects for advertising
Add a customer
Similarly, we also gave him a password so that he could log on to view the effect of his advertising!
Add another project to this customer.
Here we can set the time-based advertising or the number of clicks based on the contract plan!
Then add an advertisement to the project.
The advertisement height and width here must be consistent with the height and width of the forum just released!
Associate advertising with our projects. Of course, we can select multiple projects so that advertisements of this project can be placed in multiple places.
Please note that only those with the same size can be associated. Otherwise, they will not be seen in the Project Overview and will be invalid!
In this way, we have basically completed the project and Advertising Space Association work!
4. Get the advertisement code and put it on the website.
Click "select directly" or "publisher location"-expand-ad-Get code
Remember to set the code type to "remote JavaScript call"And paste it to your website!
The effect of adding an advertisement to a website is as follows:
Step 3: Count browsing times and ad clicks
The most exciting time is coming. We can click an advertisement to view the clicks and views of the advertisement!
Of course, our "customers" and "Publishers" can also log in to their own accounts to view advertising traffic and maintenance.
Step 4: optimize openads configuration & Documentation
Official documentation: http://docs.openads.org/openads-2.0-guide/index.html
Note that:
Configuration
Generating the invocation code for your website
These two parts are the most critical, and their documents are very long. However, I think it is worth seeing. I will extract some of them here:
1. Database Optimization
Use persistent connections
If you want to use persistent connections to the Database Server check this option. the use of a persistent connection can speed up openads considerably and may even decrease the load on the server. there is a drawback however, on sites with a lot of visitors the load on the server can increase and become larger then when using normal ons. whether you shoshould use regular connections or persistent connections depends on the number of visitors and the hardware your are using. if openads is using too processing resources, you should take a look at this setting first. persistent connections are turned off by default.
These are about database optimization. Although it can improve some performance, it may cause dbserver crash. I 'd like to think twice. If you are eager for speed and traffic is low, you can use optimization!
2. Select the embedded code type
Also, you must pay attention to the Code embedding on the website. Because these codes have different compatibility features, it is difficult to maintain them once they are integrated. So be sure to pay attention here!
Different types of invocation Codes
Openads is a very flexible ad server and there are different types of invocation codes you can use.There are two types we recommend for most situations:Remote invocation for JavaScript and Local Mode. There are other types which can be useful in specific situations, but those types are disabled by default. if you want to enable the other types of invocation codes, please read the chapter invocation and delivery of the Administrator guide.
Each type of code has its own abilities and limitations. Please take a careful look at the overview below, before you decide which type is most suitable for your website.
Capabilities and requirementsFor the different types of invocation Codes |
Remote Invocation |
Remote invocation for Javascript |
Remote invocation for frames
|
Remote invocation using XML-RPC |
Local Mode |
Available by default |
No |
Yes |
No |
No |
Yes |
Basic Requirements
|
|
Requires cookies |
Yes |
No1) |
No1) |
No |
No |
Requires Javascript |
No |
Yes |
No |
No |
No |
Requires iframes/layers2) |
No |
No |
Yes |
No |
No |
Requires PHP powered website |
No |
No |
No |
Yes |
Yes |
Banner capabilities
|
|
Display regular banners |
Yes |
Yes3) |
Yes |
Yes |
Yes |
Display flash or HTML banners |
No |
Yes3) |
Yes4) |
Yes |
Yes |
Append popups/interstitials5) |
No |
Yes3) |
Yes4) |
Yes |
Yes |
Block Based on previous banners |
No |
Yes |
No |
Yes |
Yes |
Block Based on previous campaigns |
No |
Yes |
No |
Yes |
Yes |
|
|
|
|
|
|
We officially recommend remote local connection and remote Javascript. I suggest using remote JavaScript directly. Maybe we cannot see some browser problems at present, in order to apply insurance. (The first time I heard that ncp4 does not support IFRAME, although you think there are too many JavaScript code, we still use it. He is indeed more secure than other Code Methods !)
3. Retain IP addresses
If your performance is good, you can record that many IP users are like analyzing the sources of advertisers.
Now, let's take a look. If you have any questions, please leave me a message. If you have any questions about my blog every day, I will reply to them on time. May you make a fortune in advertising!