![]() ![]() We recommend you declare a "username" key on every page view, if available, since it receives special treatment, particularly in Spy. In other words you can declare the "username" property when they login, and something else later on when they complete a desired action, such as upgrading their account. An unlimited number of key/value pairs can be declared, but we ask that you please keep it reasonable.Ĭustom data is attached at the visitor level, so it can be aggregated over multiple page views. When you view your visitors list, if you logged a "username" ( lower case, one word) key, that value will be displayed in place of their IP address or organization/hostname, breathing life into your visitors and allowing you to quickly identify who is who. When a user is logged in, you can attach their username and other information (email etc) to their visitor session with this property. ![]() This is particularly useful if your website has an account system that your users login to. This data will be stored in our database and accessible whenever you request the details of this session, whether that's through the website itself, the API, third party widgets, or otherwise. The visitor property allows you to add your own custom data to a visitor session, such as a username or email. IMPORTANT!Logging "Personal Data", such as a username or email address, requires disclosure in your site's privacy policy, and depending on the "legitimate interest" of the data, consent may be required as well. This is so that your logic for outputting this data doesn't have to be all in the same place, and so that you don't accidentally overwrite the entire object with a later call to it.Įach of these methods are shown in the examples below, and each accomplish the same end result: add a few session variables, change the session timeout to 20 minutes, and customize the page URL and title.Ĭlicky_custom.href = '/some/page?some=query' Which one you choose is up to you, although we do recommend the "one at a time" method. You can declare clicky_custom and the properties you want to use with a single command, or you can just define clicky_custom as a generic JSON object and add the properties one at a time later. Automatically set if visitor privacy is on, but you can manually set as well. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |