First-Party Cookies and Third-Party Cookies: All You Need to Know 

Laura Caveney
13th May 2021
Click Attribution

Wondering about the future of third-party cookies? With Google announcing changes we explore how marketers can best plan for a cookieless era.


For years, the third-party cookie has been the workhorse of tracking website visitors across the internet. But in January 2020, Google announced plans to phase out third-party cookies by 2022. And in March 2021, Google made clear that once third-party cookies have been phased out, they won’t introduce any alternative trackers.

So what does this mean for marketers who rely on cookies to better understand how website visitors are engaging with their content?

In this blog, we’re going to go through:

So, let’s get started.


What are cookies?

Cookies are smart tools that remember things like login details and products in a shopping cart. Given their nature, marketers can use them to create targeted advertising.

As such, a world without cookies could mean an upheaval to how we currently do online advertising as Google strives to create a privacy-first web.


What are first-party cookies

First-party cookies are created by the domain that the user is visiting, aka the host domain. This cookie type is generally viewed as “good cookies”. You can use them to provide a better user experience and keep the session going.

First-party cookies allow the browser to remember key pieces of information such as your shopping cart items, your login details and language preferences.


What are third-party cookies

Third-party cookies are created by domains that are not the website that you’re visiting. These are usually used for advertising purposes and placed on a website by adding scripts or tags. A third-party cookie is accessible on any website that loads the third-party server’s code.

Facebook, for example, uses its pixel (which is powered by third-party cookies) to track how users engage with paid ads on other websites.

Given the increase in awareness of privacy issues and GDPR, third-party cookies are now considered less favourable as users aren’t aware they’re being tracked and retargeted.


What is considered a third-party cookie?

There are a few third-party services providers that use third-party cookies.


Ad retargeting services

Ad retargeting literally means following previous website visitors around the web and showing them ads for the products or services they’ve viewed previously. Retargeting mainly occurs across social, display and email.


Live chat pop-ups

Live chat services leave a cookie in your browser to streamline user experience. But, it means the live chat pop-up can identify you every time you visit. It allows the live chat software to track your name and details along with previous conversation history.


Social buttons

Social media plugins on your website allow users to login, share and like content. But these also use third-party cookies.

As such the social channels will track the sites you visit and then share relevant ads when you revisit those social media sites. Even if you’re not logged in, the cookies can still follow you.


What’s the difference between first-party cookies and third-party cookies?

So, now we know there are two main types of cookies, first-party and third-party. And, from a technical perspective, there’s not any major difference between the two types of tracking cookies.

Both cookies contain the same pieces of information and can perform similar functions. The real difference between these two cookie types is how they’re created and then used.

The differences can be summed like this:

First-party cookies are stored by the domain you’re visiting directly. They allow website owners to collect analytics, remember settings and carry out other functions to support a good user experience

Third-party cookies are created by domains other than the one you’re actually visiting. They’re used for cross-site tracking, retargeting and advert positioning.




Future of third-party cookies

For years now, third-party cookies have been the cornerstone of paid advertising online, but their days are numbered.

There has been significant growth in users wanting control of their data. This started with ad blockers and questions that led to GDPR regulations. Now, advertisers and marketers have to battle the complete removal of third-party cookies. So, in essence, what they use to track users from paid advertising and how they retarget audiences.


What does the death of third-party cookies mean?

Are you panicking about the death of third-party cookies? Don’t!

There are already solutions in place. Solutions like Ruler could ultimately replace the need for 3rd party cookies.

And remember, third-party cookies were already becoming redundant thanks to Safari and Firefox ad blocking.


What to do if you rely on third-party cookies for cross-site tracking

Online advertisers have to contend with cross-site tracking when it comes to analysing their paid efforts. Third-party cookies have been instrumental in making that job a little easier.

But the death of third-party cookies doesn’t mean you’re left unable to track website visitors.

Marketing attribution tools allow you to track users regardless of ad blocking and third-party cookies. Ruler Analytics allows you to create your own first-party cookies directly on your own domain.


Editor’s Note: Heard of attribution before but not 100% sure on what it can do, how it works or how it can help your business? Read our complete guide to marketing attribution plus learn about the model types available.

It means you can track users through every session and engagement. Plus, even better, it allows you to track your lead sources and attribute your closed sales back to your marketing.

How ruler attribution revenue to your marketing - banner -


Let’s use a quick example.


First-party cookie strategy in action with Ruler

Sara visits your site for the first time via a PPC ad campaign. Ruler begins to track her, noting her source and interactions on your website.

She revisits your site via a Facebook advertising campaign. Again, Ruler tracks her source and her session information thanks to its first-party cookie solution.

tracking customer journeys with Ruler


Sara visits again via an organic session and converts into a lead via a form fill. She’s now converted, so Ruler fires all of the data on Sara over to your CRM so you can see key marketing details.

lead source data with ruler analytics

Sara submitted a form requesting a demo of your product, which she sits two weeks later. There, she closes into £3,000 of revenue. Once the salesperson updates this in your CRM, Ruler fires again, splitting that revenue and attributing it (according to your chosen attribution model) both in Ruler and in your analytics tools.

That means you can log into Google Analytics and see that your PPC ad and Facebook ad both drove revenue.


What to do if you rely on third-party cookies for retargeting

If you’re used to leveraging third-party data, then switching to a first-party cookie only strategy may feel daunting. But, there are instances where first-party cookie data can help you to retarget your most valuable customers.

Integrate your ad tools with Ruler and you’ll be able to attribute your revenue back to your retargeting campaigns. You can use this function to serve ads to a laser-focused group of customers. Perhaps those who only purchase at seasonal times of the year, or those who require renewals on existing contracts.

Make sure to check out Google’s Privacy Sandbox for more information.


Wrapping up

And there you have it… An intro to first and third-party cookies, plus how to tackle the phase-out of third-party cookies that have been an instrumental part of online advertising.

Remember, you can close the loop between your sales and your marketing by using a marketing attribution tool.

As we move away from third-party cookies, we suggest integrating a marketing attribution tool like Ruler to track and measure the impact of your marketing.

Find out more about how Ruler Analytics works by booking a demo with our team. We’ll show you how Ruler can automatically create first-party cookies to track your website users with no need for third-party cookies.

Book a demo Ruler Analytics