Cookie Cutter Plugin

Parse and split non-secure first-party cookies. Once value(s) are extracted, they can be written to the parameter(s) that appear on every event passed to Oracle Infinity when persist is set to true or upon page load if persist is set to false.

Plugin options

The plugin is loaded with the following properties available to be set via the configuration object:

Parameters Sub-parameter Description Data Type Default
enable   Enable or disable the plugin Boolean false
readCookies   It contains an array defining the cookies to look for and assign to tag parameters 'cookies' describes the cookie and the parameter mapping Array NA - Check below for the example configuration
  cookie 

There are two formats for cookies, multi-value and single value:

  • multi-value cookie such as ORA_FPC=id=123:ss=456:lv=798

    "cookie":{"cookie_name":{"cookie_value1":"parameter for value1","cookie_value2":"parameter for value3"}}
  • single value cookie such as ORA_FPC=abc

  • "cookie":{"cookie_name":"parameter"}

   
  options

parseOn

parseOn sets the character that separates the values in a multi-value cookie. If the cookie is ORA_FPC=id=123:ss=456:lv=798 the parseOn would be ':'

   parseOn:":"
    parseLV

parseLV sets the character to start the Left Value of the expression. If the cookie is ORA_FPC=id=123:ss=456:lv=798, the parseLV would be '='

   parseLV:'="
    persist

persist causes the parameters to be sent on every hit. If 'persist' is false the data is only sent on the page load

"options": { "parseOn": "$", "parseLv": ":", "persist":true }
   persist:true

Example configuration

{
  "readCookies": [
    {
      "cookie": {
        "TEST": "ora.cook_a"
      },
      "options": {
        "persist": true
      }
    },
    {
      "cookie": {
        "ORA_FPC": {
          "id": "ora.c_id",
          "ss": "ora.c_ss",
          "lv": "ora.c_lv"
        }
      },
      "options": {
        "parseOn": ":",
        "parseLv": "="
      }
    },
    {
      "cookie": {
        "ELOQUA": {
          "GUID": "ora.elq.vid",
          "FPCVISITED": "ora.eloqua_flag"
        }
      },
      "options": {
        "parseOn": "&",
        "persist": true
      }
    },
    {
      "cookie": {
        "utag_main": {
          "_ss": "ora.u_ss",
          "_st": "ora.u_st",
          "v_id": "ora.u_vid",
          "_sn": "ora.u_sn",
          "ses_id": "ora.u_ses_id"
        }
      },
      "options": {
        "parseOn": "$",
        "parseLv": ":",
        "persist": false
      }
    },
    {
      "cookie": {
        "WTPERSIST": {
          "elqCid": "ora.elq.cid"
        }
      },
      "options": {
        "parseOn": "&",
        "parseLv": "="
      }
    }
  ],
  "enable": false
}

Learn more

Infinity Module Plugins