In order to create a Dynamic Key Result (https://help.gtmhub.com/en/articles/1581651-how-to-define-dynamic-key-results) and insight needs to be built out with specific HTML tags.

Here is an simple example of an insight ready to create a dynamic key result and the HTML code behind it

<div>
    <h1>Total Sales</h1>
    <br>
    <metric field-name="total_sales" name="Total Sales" class="bigger-2x tr">{{data.total_sales}}</metric>
</div>


Without that <metric></metric>  tag, you would not be able to create a dynamic key result from that data point. 

Within the <metric>  tag you'll need two attributes:

  1. field-name="" is the name of the output field. It should be the same as the field name returned by SQL. 
  2. name="" is the string that will appear in the Key Result form

Repeat for all data points needed to create a dynamic result. 

Pro Tip: 

Use the HTML snippets for pre loaded HTML code 


Did this answer your question?