BostonFever
Junior Member
- Mar 9, 2011
- 112
- 27
How would I track someone clicking a link or completing an action in a frame on my website, but in the frame that I want to track is another website.
It's not possible. Well, I'm sure if you research it, there's some really complex way to do it, but it probably won't be worth your time. Cross-domain control isn't allowed.
However, on one of my sites, I have a framed e-mail submit CPA in a content lock. The content lock goes away when the user's "history length" (meaning they moved to another page) changes, because the script assumes the user completed the CPA even if they didn't (such as, the page loaded slowly for the user and, so, when the CPA finally loaded, the script thinks the user has changed pages so it drops the lock).
To fix this, I force the user to click on the CPA form before my script determines the starting "history length" (the CPA form is the last thing to load on my page, so if the user clicks on it, it means they see it and everything has loaded). But since the CPA form is on an external domain, what I do is cover the whole form with an invisible div element on my site. So in actuality, the user is clicking the div rather than the CPA form. After that, the div gets hidden and the user can now click on the CPA form.