Learn business growth with Google Analytics 4 Forums Google Analytics 4 Successful Tracking of Google Analytics Events with Selenium Using C# Reply To: Successful Tracking of Google Analytics Events with Selenium Using C#

  • Brett

    Member
    15 June 2023 at 3:25 am

    It seems like you’re trying to capture Google Analytics events from the network logs of a website, but you’re running into a problem where the events don’t appear when you automate the process with Chrome, despite appearing when you track them manually. You’ve already turned on your network and performance logs, which was a good initial step. The issue might be related to the settings or it could require more advanced modifications. The code you shared takes a look at the performance logs, scanning for messages that contain both “https://analytics.google.com/g/collect” and the specific Google Analytics event. If the event isn’t found, it returns false. One possible solution could be to double-check whether the events should in fact be part of the performance logs, as well as to validate if the URL and event string you’re using are absolutely correct.