Forum Moderators: DixonJones

Message Too Old, No Replies

Javascript tracking with Iframes purchase path

Can this be done?

         

WernhamHogg

3:33 am on Mar 9, 2006 (gmt 0)



We are using Atlas One Point for a Adwords campaign, but this question is probably relevant to anyone using Javascript/Cookie tracking...

Atlas One point requires a code of javascript on every landing page in order to recognize the click came from a paid search listing. It then drops a cookie (landing page event). Once a user hit the "thank you page" after a transaction, another Javascript (sale event) is called and the sale is attributed to the keyword.

The site I am working with has moved to an Iframe check out process, which has 4 steps...all of which take place in the iframe.

My question is, can the "sale event" code somehow be called when the thank you page is called? Right now, the source of the each step in the purchase path is the frameset. I was told that we could put the code in the <head> tag of the frame, but that will only show us when the purchase path is started, not completed.

Is anyone else using an iframe purchase path and using javascript tracking successfully? AOP or otherwise...

Thanks!

-WH

lethal0r

9:49 am on Mar 9, 2006 (gmt 0)

10+ Year Member



i dont know for sure but perhaps you can use the javascript DOM to check when the submit button on the very last page in the iframe is clicked? and then if so run the sales event code.

Receptional

11:40 am on Mar 10, 2006 (gmt 0)



If you can't put the conversion tracking code on the inner page, could you - perhaps - set the "thankyou page" to first be the cookie tracker and then a redirect - so - Most shopping cart systems or payment processor "back ends" allow you to sepcify the thankyou page - presumably set the the inner page that you would LIKE to have the javascript on if only you could. Set this page to (say) conversion.php other whetever and then have this page record the sale before redirecting to the main landiong page or even calling up the real thnkyou page in yet another frame.