title: How do I pass parameter string in a URL to a standard event in a Facebook pixel?
body: <p>I am using teachable.com to sell courses and want to track conversions with the Facebook Ads pixel.</p>
  
  <p>Typically you add something like this to the thankyou page:</p>
  
  <pre><code>&lt;script&gt;
  fbq('track', 'Purchase', { 
      currency: 'USD', 
      value: 18.00, 
      content_name: 'courseName' 
      content_category: 'courseCategory 
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But because my customers can use coupon codes the value is often different.</p>
  
  <p>Now the thankyou URL contains the final_price parameter:</p>
  
  <pre><code>http:/mycoursesite.com/courses/plug-n-play-routine-basic/purchased?purchased=113315&amp;purchased_course_id=77235&amp;purchased_list_price=1500&amp;final_price=0&amp;currency=EUR&amp;payment_method=coupon&amp;user_id=884307&amp;email=bj%40stagebound.de&amp;purchased_at=1469815636&amp;is_recurring=false&amp;sale_id=2210078
  </code></pre>
  
  <p>I've tried something like this, but it doesn't work:</p>
  
  <pre><code>&lt;script&gt;
  fbq('track', 'Purchase', {
      currency: '$currency',
      value: $final_price,
      course: '$purchased_course_id'
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to get the final_price value into the facebook pixel value parameter?</p>