Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


To trigger a data layer, a wildcard [*] should can be used. This wildcard will iterate over items in array until it finds the key. In this example, the form appears if the in the data layer a key is ‘products’ and this contains the value ‘shoes’.


The values you set in in the conditions are stored as a String. This has some implications if you want to check for a Boolean value in the variable on your page.

To iterate with a wildcard through the items in the array from the last item the wildcard [*LAST] can be used. This can be useful for datalayers with events in SPA’s.

JS Variable if the condition is true