nsc_Visitor.getLandingPageParams()

Returns the Javascript object (a set of key-value pairings) where keys are the names of the landing page query string parameters.

Example

If the address of the page the visitor started browsing the site from looks like this:

http://www.somedomain.com/somepage/?utm_source=somesource&utm_campaign=54321&someparam=34

requesting "nsc_Visitor.getLandingPageParams()" will return the following structure:

{
    utm_source      : "somesource",
    utm_campaign    : "54321",
    someparam       : "34"
}
Please note! All parameter values are strings. It is the case even if they constitute numeric values. To carry out arithmetic operations, values will need to be cast to numeric types.

See also


All rights reserved. Copyright © 2017 Netrox SC
Host CMS