Reputation: 13
I'm new to Sitecore. I have a question about saving a value for a visitor in Sitecore. I want to save a value for the visitor, the next time the visitor comes to the website I want to retrieve this value.
I tried to use Tracker.Visitor.Tag, but this is session scoped. In the next visit the tags are gone.
Is it possible to save visitor specific information to the Sitecore database?
Thank you!
Upvotes: 0
Views: 940
Reputation: 31435
There's nothing particularly special about Sitecore databases for non-authenticated users. Since your users are anonymous, think of it as a standard ASP.NET feature, so you can use session or cookies to persist something. The Sitecore databases really store CMS-driven content, and if necessary, data about specific users in the Core database, however these are authenticated users (built on top of ASP.NET Membership).
One thing to consider is how you want to use this information (perhaps you can elaborate at a higher level of what you're trying to accomplish?). The reason I say this is that if you update a component with user-specific data, if the component caches the HTML output in Sitecore, it will not change per user unless you cache by the exact criteria for which you deem to be a "unique user." This would require a bit of extra work to cache and "Vary by Params" where those params are your custom criteria.
E.g.
Upvotes: 1