Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Developer
Posts: 1
Registered: ‎11-10-2009
My Device: Not Specified

Tracking Application Downloads using PHP

I am not to sure if this is the correct section to post this question, so I am mistaken, please direct me to correct place.


I have an app and would like to track the number of downloads made from my website.


Currently it works like so:


1. User opens specific URL

2. Script enters info into database

3. User gets directed to Jad file.


The problem is that a majority of the download count are being registered twice.  They usually differ between 4-30sec, but the OS, ip and useragent are all the same. Another thing, the referring link is different.


Is there something I am missing?  I have checked and rechecked my code as well as added a session to prevent this, but it is still occuring. 


After a installation is successful, does the browser send the user back to the page? if so maybe that is why it is registering twice? if i added a cookie, will that prevent this problem?  Or maybe my whole process is wrong and there is a better way to track downloads.


Any help would be greatly appreciated