georgep Posted April 19, 2016 Report Share Posted April 19, 2016 Wonder if anyone has an answer idea for this. We are trying to track page views of a website with an embedded Caspio report. In essence we are trying to track the number of people who visit the page. This report is just read only - we have used localization to remove its update button. Our idea was to have a second datapage on the webpage which would run some basic js that would increment a count every time it was submitted - we had though we would use the autosubmit script to run the function, as so: setTimeout('document.getElementById("caspioform").submit()',1); However issue we have is that if we include the autosubmit script the function simply starts looping. We were wondering if the fact that we have two datapages was confusing things. That said if do have two how could we differentiate and just get the second one to run once when the webpage loads. Anyone done something similar or got any ideas? Thanks george Quote Link to comment Share on other sites More sharing options...
svitlanataran Posted April 19, 2016 Report Share Posted April 19, 2016 Hi George, Consider using Google Analytics for this purpose. There are many, many customizations and reports there, and of course you will be able to track number of people who visit the page. You can sign up for a free account here. You will receive a few lines of code that must be added to your web page headers. Quote Link to comment Share on other sites More sharing options...
georgep Posted April 19, 2016 Author Report Share Posted April 19, 2016 Thanks for reply. Unless you know otherwise I need the number of pageviews to be held within Casio. I am not aware you can pass this info across to Capsio but perhaps you can - if you know how please do advise. In basic terms we are looking to increment a counter held in a table each time a particular page is viewed. I know you can get php counters for websites etc but I need the count held in capsio. Sorry if I did not explain this clearly. Thanks for reply and if you know how we could do this please advise. We got a second datapage to do the count but ran into problems with the autosubmit which went into a loop. The main datapage we are trying to count pageviews on is a details page with its update button removed in localization. George Quote Link to comment Share on other sites More sharing options...
Aurora Posted April 21, 2016 Report Share Posted April 21, 2016 Hi George, If I understand you right and you use update button, you use Details Page. There is an option to count visits: http://howto.caspio.com/faq/reports-datapages/how-to-count-the-number-of-times-a-record-has-been-viewed/ A. Quote Link to comment Share on other sites More sharing options...
georgep Posted July 17, 2016 Author Report Share Posted July 17, 2016 Thanks Aurora. Sorry I should have thanked earlier. Do appreciate the help. George Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.