We need to push events to GTM. Typically this is done via JavaScript using the datalayer as described here using:
<a href="#" name="button1" onclick="dataLayer.push({'event': 'button1-click'});" >Button 1</a>
What I want to know is:
- Whether the above is possible using the REST API for this as also asked in the SO post?
- Is there any client side session info (eg IP address, browser etc.) captured using the JS approach as part of the GTM call?