title: How to convert this string into separate string objects
body: <p>New to Google Tag Manager and not sure how to do this. On my thankyou page, let's say there is:</p>
  
  <pre><code>var purchased =  "product1;product2;product3"      
  </code></pre>
  
  <p>How would I separate each string in 'purchased' so that I have something like this (product), so then Tag Manager can understand there are 3 unique strings:</p>
  
  <pre><code>   var product = {"product1"}, {"product2"}, {"product3"}
  or var product = {"product1", "product2", "product3"}
  </code></pre>
  
  <p>I tried these but it wasn't exactly what I needed:</p>
  
  <pre><code>var products = purchased.split(';');
  var products = purchased.split(';').map(e =&gt; e);
      // both of these return ["product1, product2, product3"]
  </code></pre>