Automatic Analytics Trigger

demonstration of how to automatically trigger events and mutations with automatic-analytics-trigger lib

Click event example:

When you click on the button bellow you will see a simulation where data layer object will be incremented by your click. This occurs because the button has the data-analytics-click attribute.


                    

                    

Show mutation example:

When the element with data-analytics-show attribute is displayed the simulated data layer will be incremented. You can use this to know when an alert is added to your page like the example bellow.