1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to track User's actions (i.e. mouse clicks) inside frames (or another means)

Discussion in 'PHP & Perl' started by BostonFever, Apr 9, 2011.

  1. BostonFever

    BostonFever Junior Member

    Joined:
    Mar 9, 2011
    Messages:
    110
    Likes Received:
    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.
     
  2. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    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.
     
    Last edited: Apr 9, 2011
  3. BostonFever

    BostonFever Junior Member

    Joined:
    Mar 9, 2011
    Messages:
    110
    Likes Received:
    27
    Could you PM me an example of this script that you have?