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

Iframe traffic not recording in analytics

Discussion in 'General Programming Chat' started by wickedhat, Jul 29, 2012.

  1. wickedhat

    wickedhat Newbie

    Joined:
    Jul 29, 2012
    Messages:
    1
    Likes Received:
    0
    I want to send "junk traffic" to another site via an iframe. I've done some initial testings and found that not all referrals from the main site are being recorded in the second website (the site in the iframe). I noticed only a fraction like 10% of the traffic from site1 are being recorded by site2.

    Anyone have any experience in this? I'd like for all 100% of the traffic to be recorded in analytics.

    thanks.
     
  2. kiggd

    kiggd Junior Member

    Joined:
    Apr 28, 2012
    Messages:
    116
    Likes Received:
    44
    How are you grabbing the referral?
    Code:
    parent.document.referrer
    ? You can also try
    Code:
    top.document.referrer
    Also keep in mind you can't get referrer if the domains are different (cross domain policy)