Using Puppeteer to automate your google analytics testing
Testing your analytics setup regularly can help you prevent uncomfortable situations with your boss or client when there's been another change on the site and suddenly all your campaigns and goals have zero conversions. We will look at how to test the actual requests that are being sent to Google Analytics, Facebook, or any other place you have your tags pointed at.
Analytics and tag testing with Cypress
One thing that's often overlooked in setting up your analytics is making sure it keeps working. When you add new tags or your developers deploy new versions it's easy to forget about your site tracking until the revenue in your ecommerce reports drops to zero. That's usually the point where accusations fly back and forth past the office chairs and the boardroom starts asking uncomfortable questions. So let's set up some tests for your analytics and tag management.