Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4113684
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:21:26+00:00 2026-05-20T22:21:26+00:00

How does Varnish caching affect third-party cookies set by Omniture and first-party cookies set

  • 0

How does Varnish caching affect third-party cookies set by Omniture and first-party cookies set by Google Analytics?

So far I’ve seen opposing opinions, some people say that because the tracking stats are created by JavaScript (which is true), that stripping these Cookies from the request won’t affect GA or Omniture.

However here they are saying that these softwares set various cookies to track recurring visitors, and so stripping these cookies from the request would essentially count every user as a new visitor.

I don’t want my users to count every time as a new visitor. I am not sure either that these JavaScript embeds have the ability to calculate if the page is being served to a first time or recurring visitor. Any links to offical GA or Omniture documentation is deeply appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:21:26+00:00Added an answer on May 20, 2026 at 10:21 pm

    Google Analytics sets cookies through javascript on your domain. See How Google Analytics uses cookies :

    Google Analytics uses only first-party
    cookies. This means that all cookies
    set by Google Analytics for your
    domain send data only to the servers
    for your domain.

    For varnish usage, this means that you can cache page responses because personal cookies are not set through Set-Cookie headers but generated by javascript equal for everybody. The cookies will however be sent with requests to your domain, and the current default-vcl says:

    sub vcl_recv {
    
      ..
    
      if (req.http.Authorization || req.http.Cookie) {
        /* Not cacheable by default */
        return (pass);
      }
    }
    

    It says it won’t do a cache lookup if cookies are sent. So in your vcl_recv you should either ‘unset req.http.Cookie’ or do a lookup regardless of req.http.Cookie .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't quite understand how Google Analytics cookies work with Varnish. Do pages that
I'm currently working on a Varnish (v3) set up, but I was wondering if
Does anyone know of a set of power-saving guidelines for ALSA anywhere? For example...
Does Google force employees who have offers from Facebook to leave immediately?
Does anyone know how to call google play from web to install an app
First please forgive me for total lack of understanding of Varnish. This is my
Does anyone know if there is a way to generate different code in the
Does COUNT(*) have any significant impact for MySQL performance if query already has GROUP
Does anyone have a translate function for x/y positions after rotation in javascript? for
Does anyone know of a free tool, similar to what is built into Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.