paullangtree / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
2 stars 0 forks source link

Invalid value for the field sessionControl #766

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Web Tracking (analytics.js)

Issue summary:
The sessionControl field does NOT accept the string values "start" and "end".
Here is the debugger message : "Expected a boolean value for the field: 
"sessionControl". but found: "string".

Steps to reproduce issue:
1. Create a standard tracker
2. Send a pageview with the field sessionControl
ga("send", "pageview", {sessionControl: "start"});

Expected output:
Used to control the session duration. A value of 'start' forces a new session 
to start with this hit and 'end' forces the current session to end with this 
hit. All other values are ignored. 

See documentation 
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-r
eference#sessionControl

Actual results:
It returns the following warning message : "Expected a boolean value for the 
field: "sessionControl". but found: "string".
The hit is normally processed without any new session started.

Notes:
If I put a boolean value for the sessionControl, there is no more warning 
message and the hit is sent with the URL parameter sc=1/0 but I don't know what 
it does.

Original issue reported on code.google.com by benja...@descazal.fr on 26 Oct 2015 at 12:48