Jump to content

Pixel Tracking + Cookies + IE6 = Problem


neoform

Recommended Posts

I have a 1x1 pixel that gets loaded on a different site (for tracking reasons). The pixel is loaded through php, which creates a cookie. The cookie gets created and works with FF1 and FF2, but does not get created in IE6.

 

$cookie_made = setcookie('tc', base64_encode($code), time() + (60 * 60 * 24 * 90), SITE_RELATIVE_PATH, $domain, false, false);

 

Any ideas as to why this cookie isn't being made in IE?

Link to comment
Share on other sites

It sounds like the sites are on different domains so the cookie you are trying to create is considered third party.  On most IE security settings it will reject third party cookies automatically.

 

To test if this is the case go into your IE -> Tools -> Internet Options -> Security -> Trusted Sites and click the Sites... button.  Add the domain of the site that is trying to add the cookie to the list of trusted sites and then see if the cookie is created.

 

If the cookie is created then that is the problem.  However you can't get all your users to do this so to get around it you must provide a P3P (Peer Privacy Policy).  A little bit of Google hunting and you should find more on what a P3P is and a free tool for creating one.

 

Then you use a call to header() so that the P3P is sent with every page request and you should be good to go.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.