Add View Counter to Dynamic Page

Hi @plomteuxquentin , thanks for the article. The setTimeout delays the execution of the viewEvent function. In a way, it makes it execute once when the page loads.

Removing the setTimeout makes the insert execute twice and adds 2 views instead of one.