I need to automate web analytics and for that I need to trigger "Google Tag Manager" GTM script from java code. e.g.
- User goes to https://www.etsy.com/
- User looks for script of GTM which is dataLayer
(window,document,'script','dataLayer','GTM-KWW5SS');
- I can goto chrome console and type dataLayer, press ENTER key to see the values
How can I do this from Java code ?