Lucas Moura Posted July 10, 2019 Share Posted July 10, 2019 I've seen other articles, with this question, but none really solved it. Is there a script to implement a visitor counter I sawthe article ID number20939 when Sean shows how to execute a script on initial load, but i'm stuck there. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted July 10, 2019 Share Posted July 10, 2019 You can use that script being executed on intial load to update a document property where you can keep the count and then save the analysis file. So each time you reopen the analyis, the script executes and increases the counter. To update a document property you can just do the following count=Document.Properties["myCounterPropertyName"] count=count+1 Document.Properties["myCounterPropertyName"]=countDo you face any issues with implementation in the article Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now