What is a cookie? 🍪
A cookie is a Google Sheet thats tied to your browser and website. Thats it. Originally, they were meant to help with authentication. So the google sheet for your site might look a little like this:
Name | Value |
---|---|
login_key | f3h3948fgniouiun3rgiufrn3uignfiu3erngfuinuig3nuirnguiniugenuirnguini |
That weird combination of letters and numbers would be something like a temporary password thats used to get stuff from the website (like your credit card numbers, or your name and such).
That aside, cookies these days are mainly used for tracking. As mentioned before, the pixel code tends to create 2 cookies, a browser id cookie and click id cookie. The first one, the browser id, identifies the browser thats making the request. Its how they can connect multiple events. So if you visit the homepage, then the about us page, the do a purchase? They connect those dots with the browser id.
The click id, in contrast, is an identifier that shows up after you click an ad. So the url after clicking on an ad in Facebook will look a little like this:
https://www.datus.cloud/?fbclid=rgwu3gnfiun3gewuifnr3uiegfnuiwe43
That "rgwu3gnfiun3gewuifnr3uiegfnuiwe43" value identifies you on Facebook's own system. So if they have that send to them when you make a purchase? Thats exactly what they want.
So presumably, if you visited a website that has a Facebook pixel after clicking an ad on facebook your cookies would look a little like this:
Name | Value |
---|---|
login_key | f3h3948fgniouiun3rgiufrn3uignfiu3erngfuinuig3nuirnguiniugenuirng |
fb_browser_id | browser_ohnrw3fgo |
fb_click_id | rgwu3gnfiun3gewuifnr3uiegfnuiwe43 |
With those cookies there, whenever the pixel sends an event to facebook? It sends the cookies.