merkalt:simple_ads_tracking_system
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| merkalt:simple_ads_tracking_system [2010/08/31 08:50] – dmitriy | merkalt:simple_ads_tracking_system [2011/10/28 07:25] (current) – dmitriy | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Should work like this: | Should work like this: | ||
| - | Ad X will link to merkalt with for example URL | + | Each time it is a conversion from the X ad an |
| - | http:// | + | counter should increase by one. |
| - | counter should increase by one. The date and time for the sale should also be saved. In admin it should be a simple overview of each of the | + | The date and time for the sale should also be saved. In admin it should be a simple overview of each of the |
| ads performance for today, yesterday, this week, this month, last month. | ads performance for today, yesterday, this week, this month, last month. | ||
| // | // | ||
| - | **TASK DESCRIPTION** | + | Affiliate sales tracking build on extraction of affiliate identifier from affiliate referrer link and saving it in session variables. The process includes several parts which are the following: |
| - | This addon will be realized | + | 1. Link |
| - | //**The entire development process will take place at the test site, test version of system should be placed in merkalt.com/test/ | + | Ad X will link to merkalt with for example URL |
| + | http://www.merkalt.no/side.php? | ||
| - | Ads tracking | + | Ads tracking |
| - | **Required changes and additions for Administrator section of tracking system** | ||
| - | 1. Main menu in admin section should include only three options: sales report, affiliate | + | 2. Affiliate ID extraction from requested page name. |
| + | Obviously, there is no such page http:// | ||
| - | 2. Affiliate accounts list should contain only one affiliate record with ID = 1. Functionality of affiliate accounts management page should be kept as is. | + | < |
| + | RewriteEngine On | ||
| + | RewriteBase / | ||
| + | RewriteCond %{REQUEST_FILENAME} !-f | ||
| + | RewriteCond %{REQUEST_FILENAME} !-d | ||
| + | RewriteRule side\.php index.php? | ||
| + | </ | ||
| - | 3. Ads management page must be created by analogy with the list of affiliate | + | Anyway, |
| - | \\ a) list of existing ads which could be sorted by ad ID, ad description | + | |
| - | \\ b) list management functions - add new ad, edit, delete, deactivate / activate links for existing ads; | + | |
| - | \\ c) mass operations functionality - check box for each ad row, ' | + | |
| - | \\ d) pagination links set. | + | |
| - | \\ e) simple form page for adding / editing ad information: | + | |
| - | \\ f) delete operation and each mass operation should require user confirmation; | + | |
| - | \\ g) search function (by ad ID or ad description) should be implemented too; | + | |
| - | 4. Sales report should be created on the basis of Commission report. | + | 3. Completed sales tracking. |
| - | \\ a) first of all, selector of the reporting period should be implemented for this report. It could be realized like a group of select controls + ' | + | If customer purchases some product on merchant’s web site, on payment completion, affiliate ID and order data will be sent on tracking script |
| - | \\ b) listing table must include only 'Ad ID', 'Ad description' | + | Tracking code (which sends needed data on tracking script) |
| - | \\ c) sales report must contain | + | |
| - | \\** d) 'View details' | + | |
| - | \\ e) total number of sales in the bottom of ads list; | + | |
| - | \\ f) pagination links set; | + | |
| - | \\ g) ad search function - by ID and description; | + | |
| - | + | ||
| - | \\ \\ **Required additions for the front-end scripts** | + | |
| - | 1. Affiliate and ad IDs registration. | + | Here: affiliate_id – affiliate ID from customer session variables, order_id – order unique identifier, order_total – order total sum, analitics_url – URL of the script which performs transaction |
| - | http://www.merkalt.no/ | + | File ad_track.js should be placed on merchant server and should be accessible from “thank you” page. |
| - | the using of mod_rewrite required. Such request should be redirected on http:// | + | Tracking code for this tracking system will be built-in as a part of existing schema of plugging of affiliate systems on merkalt.no (like as euroads, affiliate pro, etc.). This task will include: |
| - | + | ||
| - | //**As far as I remember, there was a problem with mode_rewrite on merkalt server. This means such a link really would not be used.**// | + | |
| - | + | ||
| - | Anyway, the link will contain two parameters: affiliate ID and ad ID. Both of these parameters should be saved in user session on index page. | + | |
| - | + | ||
| - | 2. Tracking code for this tracking system will be built-in as a part of existing schema of plugging of affiliate systems on merkalt.no (like as euroads, affiliate pro, etc.). This task will include: | + | |
| \\ a) creation of template for this system; | \\ a) creation of template for this system; | ||
| \\ b) creation of affiliate class for this system (in affiliation/ | \\ b) creation of affiliate class for this system (in affiliation/ | ||
| \\ c) creation and setting up of section in settings.inc.php file (root instance only); | \\ c) creation and setting up of section in settings.inc.php file (root instance only); | ||
| - | **Required changes in transaction registration scripts** | ||
| - | The set of data to be passed to transaction registration script | + | **Administrator section |
| - | This means the structure | + | |
| + | 1. Main menu in admin section include only two options: sales report and affiliate accounts list. Sales report | ||
| + | |||
| + | 2. Affiliate accounts list should contain only one affiliate record with ID = 1. Functionality of affiliate accounts management page should be kept as is. | ||
| + | |||
| + | 3. Ads management - ads list with 20 ads will be pre-defined in database with default description being Ad 1, ... , Ad X | ||
| + | |||
| + | 4. Sales report - | ||
| + | \\ a) selector | ||
| + | \\ b) listing table include only 'Ad ID', 'Ad description' | ||
| + | \\ c) sales report contain a list of ads which have recorded sales for the selected reporting period. The number of sales for each ad should be shown in ' | ||
| + | \\ e) total number of sales in the bottom of ads list; | ||
| + | \\ f) pagination links set; | ||
| + | \\ g) ad search function | ||
| + | |||
merkalt/simple_ads_tracking_system.1283244626.txt.gz · Last modified: (external edit)
