|
|
Setting the Placement URLThe Placement URL (known as the PUR) is the URL of the location that the widget is installed. This is an import piece of data as the PUR is used to provide detailed domain level analytics. When using the container the PUR is captured automatically for the "seed" location and all installation, because the container is the first to load. Since the kernel is not the first to load, we are unable to determine the PUR in some cases. To maintain detailed analytics you must pass the PUR to the kernel URL as a query string; _cs_pur=[URL]. The value of _cs_pur must be valid (i.e., http://example.com is valid, but example.com will be ignored) and URL encoded. For example when loading the kernel in AS3: var purVal:String = "http://www.example.com"; When using the kernel's sharing services, the PUR is automatically set for all destination shared using the menu. However, for the "seed" location you will need to set the PUR. Setting the PUR for the "seed" location can be done by adding a Flash var to the embed code, for example: <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# Here your widget would use the Flash var purVal and set this as the value of _cs_pur for the kernel. You should update your widget code to only send the _cs_pur when the purVal is set, for example: if(purVal != "") This will prevent setting the PUR to an empty value when nothing is passed in via the Flash var. If analytics are important to you and you are using the In-Widget APIs then you need to set the PUR for your seed location. This will provide the best analytics. |