Information Technology Reference
In-Depth Information
revenue encryption is not automatically applied to all accounts, and you would
have to request that it be added through the Yahoo! support organization. You are
required to provide at least one encryption key, an element that i will discuss in a
moment. once the Yahoo! Web analytics team has applied this key to the data collec-
tion service, you are ready to submit revenue in encrypted form.
i know this explanation is going to be a bit hairy, but it is unfortunately the only
way to achieve what we are looking for. the first thing you should be aware of is that
Yahoo! Web analytics currently only supports encryption in the industry-standard
advanced encryption standard (aes) in Cipher Feedback (CFB) mode.
Advanced Encryption Standard (AES)
AES is a block cipher adopted as an encryption standard by the U.S. government.
the key length should be a minimum of 16 and a maximum of 32 characters,
and it must be a multiple of 8. You may supply an arbitrary number of keys to be used
during decryption, but you must select one for each given amount.
to recap, collecting a Usd19.95 sale, i would apply the following variables:
version 4
var ACTION='01';
var AMOUNT='USD19.95';
51
this is where the change is going to happen when we want to use revenue
encryption. the first thing you have to do is start all AMOUNT variables with aes (which
is case sensitive) and follow that by the key id number. You are allowed to have up to
10 different keys. and finally, as the third part of the AMOUNT variable, apply a colon
character (:) and the encrypted data. this should result in a variable looking like this:
version 4
var ACTION='01';
var AMOUNT= “AES1:F8A0998CAAC1C58145828B4318EB341268300CE0AAECC55A7E9BCA59BD
243905A58F0944570D78DCA39DF6A8E74C867D”
version 5
YWATracker.setAction(“01“);
YWATracker.setAmount(“AES1:F8A0998CAAC1C58145828B4318EB341268300CE0AAECC55A7
E9BCA59BD243905A58F0944570D78DCA39DF6A8E74C867D”);
Here's a direct installation manual-like example to get you started:
1.
get the revenue amount, including the currency, as you would normally.
2.
embed the prepared revenue string into a 40-character random string at a ran-
dom starting position; however, the position should be at least 4.
Search WWH ::




Custom Search