queryStringRaw( )

queryStringRaw() : string;

Returns

The unmodified query string passed in a deep link.

The query string is everything after the ? character.

Default value: ""

Components of this query string are URL encoded. To decode these components you can use the decodeURIComponent JavaScript function. In general we recommend using the queryStringParameter(...) function as it handles parsing and decoding of the querystring automatically.

Example

Assuming the deep link zappar://ZID?myname=Zap%20Bot&myfriend=Mark&myfriend=Connell launched this experience with ZID being the deep link of this experience we can access the query string as follows:

let decodedQueryString = decodeURIComponent(Z.device.queryStringRaw());
// "myname=Zap Bot&myfriend=Mark&myfriend=Connell" is returned and would need to be manually parsed
zapcode branded_zapcode i