Wiki source code of ONEcount Cookies
Version 2.1 by melanie@one-count_com on 2016/11/09 15:35
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | ---- | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | //ONEcount uses first-party cookies to track users. The cookies are set in the ONEcount domain and on the customer's site(s).// | ||
| 6 | |||
| 7 | //Cookies on the ONEcount domain are called Central Domain Cookies (CDC). Those on the client's site are called Local Cookies (LC).// | ||
| 8 | |||
| 9 | //Below is a list of the cookies and their description~:// | ||
| 10 | |||
| 11 | (% class="western" %) | ||
| 12 | == **Central Domain Cookies** == | ||
| 13 | |||
| 14 | These cookies are set on the ONEcount domain. | ||
| 15 | |||
| 16 | **~_~_ocgt**: This is the global token. It's used to track users across all sites where the ONEcount widget is deployed. The value is a 64-character hash. This cookie is set under [[onecount.net>>url:http://onecount.net||shape="rect"]] domain. | ||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | **~_~_ocid**: set when a user is logs in on one of the Customer's sites. The value is a 64-character hash that represent sthe user in that customer's installation of ONEcount. It's set under **client**-[[reg.onecount.net>>url:http://reg.onecount.net||shape="rect"]] domain. (ie: if client is **foo**, then the cookie will be set under **foo**-[[reg.onecount.net>>url:http://reg.onecount.net||shape="rect"]]) | ||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | **~_~_ocusername**: Similar to ~_~_ocid, it's set when the user logs in on the client's system. The value, is the user's **username** on that client's system. The domain for this cookie **client**-[[reg.onecount.net>>url:http://reg.onecount.net||shape="rect"]]. | ||
| 25 | |||
| 26 | (% class="western" %) | ||
| 27 | == **Local Cookies** == | ||
| 28 | |||
| 29 | These cookies are set on the customer's site(s). If the customer has multiple sites, these cookies will be set as first-party cookies in each domain. | ||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | **~_~_tempcookie**: used track users on the client's site. The value is the same as **~_~_ocgt** from the central domain. It's set under the client's site domain. | ||
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | **~_~_ocid**: set when a user is logged in on the client's site. The value is the same as **~_~_ocid** from the central domain. It's set under the client's site domain. | ||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | **~_~_ocusername**: set when a user is logged in on the client's site. The value is the same as **~_~_ocusername** from the central domain. It's set under the client's site. | ||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 | **cookieValid**: this is a daily cookie. It's set on the first visit of the day if **~_~_ocid** is present. It's used as a flag that can be used to determine whether **~_~_ocid** is still valid or not. | ||
| 46 | |||
| 47 | |||
| 48 | |||
| 49 | **realReferer**: used to preserve the original referer when a redirect to [[onecount.net>>url:http://onecount.net||shape="rect"]] happens for setting the Central Domain Cookies. This can be passed to Google Analytics or other platforms. | ||
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | **_gcna**: this represents the visit id. The value is a combination of the **~_~_ocid** and **~_~_tempcookie** cookies as well as the visit timestamp and the visit counter. | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | **_gcnb**: used as part of the visit id generation process. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | (% align="CENTER" %) | ||
| 64 | |||
| 65 | \\ | ||
| 66 | |||
| 67 | (% align="CENTER" %) | ||
| 68 | |||
| 69 | \\ |