We help IT Professionals succeed at work.
Get Started
Troubleshooting Question

Can't seem to retrieve cookie using tracking  pixel

tjyoung asked
Last Modified: 2021-01-20
I have set up our own tracking pixel on our main site. If I have a cookie from the site on my machine it is retrieved when I load the pixel directly "https://www.mydomain.com/pixel" in my browser no issue.

So on another site (different domain), I have it on the page as an img tag ie:
<img src="https://www.mydomain.com/pixel">
When I load the other site's page, the page requests the pixel and the script is being triggered but I'm not getting the cookie.

Any idea why??

$request->hasCookie('CRef') // this is loading as 'false'
$request->cookie('CRef') // has no value
Watch Question
Most Valuable Expert 2017
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE