How we set cookies

Cookies

Each cookie we use is described below. Symplify only sets first party cookies. First-party cookies are cookies whose domain is set to the second-level domain (i.e. .yoursite.com). We don't set any third-party cookies.

Website ID, Project ID, Variation ID and Goal ID are often used as keys in our cookies. They are referred to as WID, PID, VID and GID in the documentation below. 

sg_cookies

A JSON object with a lot of different pieces of information:

  • Project allocation
  • Project run history
  • Project views
sg_cookies = {
    WID: {              // one object for each website visited
       pmr: PID         // currently previewed project
       pmv: VID         // currently previewed variation
       
       rf: string       // referrer
       sc: number       // secure cookies (off/on)
       lv: number       // website last visited timestamp
       pv: number       // nr of page views for website
       pv_p: {
        PID: number     // nr of page views for projects
       }
       tv: number       // nr of total visits for website
       tv_p: {
        PID: number     // nr of total visits for projects
       }
       
       visid: string    // visitor id
       commid: string   // communication id
       
       aud_p: PID[]     // projects where audience has been true
       PID_ch: 1 | -1   // 1 if project is allocated, -1 if null-allocated
       PID: VID[]       // allocated variations per project
    },
    _g: number          // cookie generation
}

 

sg_cs_object

Session cookie. Removed after 30 minutes since last visit.

sg_cs_object = {
    WID: {                  // one object for each website visited
        phbs_PID: boolean   // whether popup project has been seen by user
        ga_queue: PID[]     // activated projects not yet sent to analytics
        hsak_PID: boolean   // whether project has sent symplify event to analytics
    }
}

 

sg_cf_object

sg_cf_object = {
    WID: {                  // one object for each website visited
        phbs_PID: boolean   // whether popup project has been seen by user
        gs_PID: {
            GID: number     // nr of times goal has been satisfied
        }
    }
}

 

sg_session_p

Used for analytics.

sg_debug

Used to select a logging level.

sg_optout

If this is set to "1", the SDK doesn't starts.

sg_optin

If the website has a stricter privacy setting, the SDK does not start unless this cookie is set to "1"

Local Storage

sg_ls_object

Used to store some bigger pieces of information:

  • Detailed page view info
  • Visitor geodata
  • Per page interaction stats (e.g. scrolling)
  • Revenue data

Session Storage

sg_preview.config.PID

Used to cache preview config.

sg_domain_test

A temporary cookie used to check the highest domain to set the cookies on. I.e. if your URL is "https://www.yourdomain.com/" the cookies will be set on ".yourdomain.com". 

cookiecookie

A temporary cookie used to check if cookies can be set and read in the current browser. It helps determine whether the browser has cookie support or if cookies are disabled.

lpv_WID

Used by VR to store last page visited.

tabId

Used by VR to store current tabId.

 

Was this article helpful?
0 out of 0 found this helpful