Hi, I got a question. I want to get the Google An...
# e2e-testing
g
Hi, I got a question. I want to get the Google Analytics
dataLayer
object using Cypress. For now, I can use
cy.window.its('dataLayer')
to get the data, but in my test cases, there are a lot of button clicks with routing to other pages. The dataLayer object will be refreshed. Therefore, my question: is there any way to get the data after button clicks but before routing to the designated page?