CAPÍTULO II MARCO TEÓRICO
2.4. MARCO LEGAL
2.4.3. OTRA NORMATIVA QUE RIGE A LA FÁBRICA SON LAS
When using Ad Views and Clicks, your first step is to define the ads that you want to track.
To define an advertisement to track:
1. From the Main Console, select Configuration > Advanced
Features> Advertising Views. The Ad Views and Clicks
Configuration dialog box (Figure 6-1) opens.
Figure 6-1. Ad Views and Clicks Configuration dialog box
Figure 6-2. Add New Ad View dialog box
3. In the Description text box, type a descriptive name of the web site ad. The text you provide here will identify this ad all reports. For our example, type:
IBM Laptop Advertisement
4. In the Ad View File Name text box, type the file name or text string identifying the advertisement view you want to track.
Important: You must type this name or text string exactly as it appears in the web server log file.
If you specify multiple components, put spaces between each component name. (Each component acts as a logical Boolean AND to the other components.)
The following examples will help you determine which you should type.
Example 1: Tracking Statically Linked Ads
For this example, we’ll track the IBM advertisement which is statically linked—in other words, it's not retrieved through CGI scripts, but called straight using the <IMG SRC> HTML tag.
When a browser hits your site and sees the link to the image, it asks the server for that image and generates a log entry on the server that looks something like this:
... "GET /images/ibm_ad.gif"
Since the filename ibm_ad.gif is unique to just IBM’s advertisement, it’s sufficient to type the file name itself into the Ad View File Name text box to accurately track views of this ad.
Example 2: Tracking Ads Sent Through Scripts
In this example, you have an automated CGI script that delivers ads to a browser. The advertisement image, ibm_ad.gif, is sent to the client using a CGI script that contains an advertisement ID number rather then a filename.
The only way to retrieve this particular ad is to make an image link off your view page to a CGI script, which has a URL looking something like this:
http://www.xyz.com/cgi-bin/showad.cgi?ad=123456
When a web browser sees this URL, it asks the server for that image and generates a log entry that looks like:
... "GET /cgi-bin/showad.cgi?ad=123456"
Since the CGI script returns the image, the file name is irrelevant. For our ad view we want to use text specific to this advertisement only—in this case, the ad ID string for the CGI script. Consequently, we'll type:
showad.cgi ad=123456
in the Ad View File Name text box. This works because the only time this combination of text shows up in the log file is when retrieving the IBM advertisement image.
In the Ad Click ID String text box, type the text identifying the advertisement click you want to track. This must be the exact text (not case-sensitive) from the web server log file. You can specify multiple components separated by spaces.
Since only the log file Action field is scanned (usually Get or Post statements) for the text that you specify, the click must create an entry in your log file. For example, if a visitor clicks on an ad which takes him or her out of your site directly via a URL, that click is not logged in your log file. In order to be able to track ad clicks, you must implement some type of server-side scripting (for example, CGI, Perl, or ASP) to
perform a redirect to the destination URL. A very common Perl script is redir.pl.
To summarize, if you have a GIF file on your site that links to IBM’s site through redir.pl, the settings in the Ad Views and Clicks dialog box would break down like this:
• In the Description text box, you would type:
IBM Laptop Advertisement
• In the Ad View File Name text box, you would type:
ibm_ad.gif
• In the Ad Click ID String text box, you would type:
url=www.ibm.com
because when a visitor to your site clicks on the ad, the following information is recorded in your log file:
GET /cgi-bin/redir.pl?url=www.ibm.com
5. When you have finished, click OK to save the new advertisement definition and return to the Ad Views and Clicks Configuration dialog box.
6. Repeat step 2 through step 5 to add Ad definitions for each of your clients
7. Click Close to exit the Ad Views and Clicks Configuration dialog box.
Note: To edit an existing advertisement definition, select it in the Ad Views and Clicks Configuration dialog box and click Edit.
To delete an existing advertisement definition, select it in the Ad Views and Clicks Configuration dialog box and click Delete.