Skip to end of banner
Go to start of banner

Website Data

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Website data is used to add additional data such as a user id. There are four different sources this field can be linked to:

  • URL parameters

  • JavaScript variables

  • CSS selectors

  • Cookies

URL parameter

If you want to collect the URL parameter, choose the URL parameter option and use the name of the parameter. Once added this will collect the value of the parameter.

JS variable

In case you want to use a JS variable, the variable should be globally accessible, so for instance, if user_id is a global variable it will take the value it contains and pass it along as feedback (as a string). The variable can also be an object or array or even a nested object (for instance: test_object.user_id) if the value of the specified variable is an array or object it will be encoded into a JSON string. Basically, as long as the variable's scope is global we'll be able to pick it up.

CSS selector

For the CSS selector option, you can use a tag, a class, an id or an attribute. If you want to use a class make sure to start with a dot-like this: .my-class. If you want to use an id you should use a hash like this: #my-id. It will add the entire element where the class, id, attribute or tag is available.

Cookie name

The cookie option works similarly to the previous options. Just use the cookie name and the value will be added to the website data in your feedback results.

The results

The additional website data will be added to the feedback as soon as feedback is submitted by your website visitor.

The website data will be available in the feedback results section found under ‘Reporting’ > ‘Feedback inbox’.

You can also use these variables in your chart builder to combine your website data with other feedback elements such as an NPS or Customer Satisfaction score.

For a more detailed article on website data, please have a look at the following article: How do I add additional website data to a feedback result?

  • No labels