@walterodibi Could you explain what’s the point of having a setTimeout on this feature?
setTimeout(viewsEvent,100);
Also, I believe there might be a problem because your code will execute 2 times on each rendering, therefore increasing the number of views twice.
It will insert once In backend rendering and once in frontend rendering: read the following articles for more details: