Click tracking script not able to capture clicks on a flash object.
Currently, when a .gif or .jpeg banner is clicked, a perl script is executed, using a href, to get the banner id, increment the click count in a MySQL table and then get the banner's url from a different table and return it to be opened in a new browser window. This does not work if the banner is a flash object. The flash detects the click and opens the new window but the click is not recorded by the script. The onClick is not recognized either. The object tag HTML is stored in a database field, and retrieved to display the flash with another script when the page is built.
We need a solution that works with the existing other scripts as they currently are due to other code already customized to do other things as part of our over all click tracking program. View the flash banner on this page (middle button on left): [url removed, login to view]
This modified program we use was created from this script:
[url removed, login to view]
which had a flash banner element that we modified to do other things, it may be this could be restored
while preserving existing modifications.
The following scripts are used (attached):
[url removed, login to view] ? this script is placed inside an HTML anchor. It looks up the username in a table called adc_users to find the banner id. It then increments a record in adc_imp (impression count) for that banner. Next, the bcode field in adc_banners is selected and returned to display the ad. In this case, the entire object tag is retrieved.
[url removed, login to view] ? this script updates the correct banner record in adc_clc (click count) based on the banner id passed in. It then returns the url selcted from adc_banners.