title: remove $ from dataLayer total - google tag manager
body: <p>I have this datalayer on my completion checkout page. everything is working it fires fine. All is well for Adwords. however another ad words tracking script isn't passing the value back to the website. I believe it's because the $ sign. how can i trim the dollar sign off of the summary.total_formatted?    </p>
  
  <pre><code>&lt;script&gt;
  dataLayer.push({'subtotal':'&lt;%= summary.total_formatted %&gt;'});
  &lt;/script&gt;
  </code></pre>
  
  <p>I was thinking something like this here,</p>
  
  <pre><code>dataLayer.push({'subtotal':'&lt;%= summary.total_formatted %&gt;'[0].innerHTML.trim().replace('$','')});
  </code></pre>
  
  <p>but this is wrong gives me an arrow with the trim actually. what is the best way to handle this so the price is pasted back to the 3rd party website. I just want to exclude the $ sign to test this. </p>