A simple example of using Puppeteer to test your analytics setup See https://www.dumky.net/posts/using-puppeteer-to-automate-your-google-analytics-testing/ for the context and details of the design of this code.
dumkydewilde/analytics-testing-puppeteer
A simple example of using Puppeteer to test your analytics setup
JavaScript