Track clicks in Iframe
I am trying to track clikcs on buttons that are "behind" an iframe. Every time I try and click on the buttons in Optimisely, all I can click on is the iframe in its entirety but not the specific buttons.
Any ideas on how I could do this? This is the page in question http://en.business.skyscanner.net/en-gb/products/white-label/ and the buttons are in the header.
u can use the same selectors which you already use to change the text. When creating the Click-goals open the advanced area and add the selectors for each button. In your case they are:
- div[data-collection-id=569f007e69a91a10688dcddf] p a:eq(0)
- div[data-collection-id=569f007e69a91a10688dcddf] p a:eq(1)
- div[data-collection-id=569f007e69a91a10688dcddf] p a:eq(2)
If you use more than one selector within a click goal, do not forget to separate them with a ","
Thanks for the response again!
Could you tell me how I would know what the selectors are for each button?
And also what it would look like exactly in the selector box?
All these three will take you to warp-speed in optimizely-testing :-)