Hi Folks,
I'm integrating my store with web analytic tool. I put the following code under product.liquid file to track an event when someone view my product.
<script type="text/javascript">
var PID = {{product.title}};
_fxm.events.push(['_fxm.ecommerce.productview', PID ]);
</script>
Above code is unable to read actual product value. It works fine when I hardcode PID value.
So i think problem actually lies when we read product title here in the code. Please help