I have a small Flash application that is displaying a varying number of ads in a carousel-type fashion which our users can click on any ad to go to a given product page. Our Analytics department has requested that we track information on what the user is doing while on the page with the carousel including:
[ul]
[li]each ad viewed[/li]
[li]skipping ads by clicking on a specific number or a FF/RW button[/li]
[li]pausing the current ad[/li]
[li]starting the carousel feature back up (hitting play)[/li]
[li]clicking on an ad to visit a given product[/li]
[/ul]
All analytics data is sent to the specific servers by a JavaScript function provided by the Analytics vendor.
Each of the above listed features work just fine with the exception of when a user clicks on an ad to go to the product page. I have a feeling it's due to the fact that I am calling the getURL function twice in very rapid succession and the browser hasn't had the opportunity to complete running the JavaScript code before the request changes.
Does anyone know of a possible alternative or workaround to allow the window enough time to get the JavaScript function to complete before moving on and sending the user to the next page?
Any and all help is much appreciated,
- George
[ul]
[li]each ad viewed[/li]
[li]skipping ads by clicking on a specific number or a FF/RW button[/li]
[li]pausing the current ad[/li]
[li]starting the carousel feature back up (hitting play)[/li]
[li]clicking on an ad to visit a given product[/li]
[/ul]
All analytics data is sent to the specific servers by a JavaScript function provided by the Analytics vendor.
Each of the above listed features work just fine with the exception of when a user clicks on an ad to go to the product page. I have a feeling it's due to the fact that I am calling the getURL function twice in very rapid succession and the browser hasn't had the opportunity to complete running the JavaScript code before the request changes.
Does anyone know of a possible alternative or workaround to allow the window enough time to get the JavaScript function to complete before moving on and sending the user to the next page?
Any and all help is much appreciated,
- George