nican VIP
Total posts: 392
12 Mar 2018 11:36

Hello, could you tell me if in the Javascript code action the [PRICE] placeholder is replaced just by numbers?

I want to insert the Facebook action script like this

<script>
  fbq('track', 'Purchase', {
    value: 10,
  });
</script>

and I think I shoudl insert it as follows

  fbq('track', 'Purchase', {
    value: [PRICE],
  });

but it will only work if [PRICE] is being replaced by only numbers (no currency sign or anything else)

thank you

Last Modified: 08 Apr 2018


nican VIP
Total posts: 392
19 Mar 2018 09:39

Ok, I tested this and it the placeholder [PRICE] does not work for facebook because it insert th eprice in this format

0.00

while it seems that Facebook only accepts numbers (dot or commma are not allowed)


Sergey
Total posts: 13,748
04 Apr 2018 11:08

Try this

value: "[PRICE]",

nican VIP
Total posts: 392
08 Apr 2018 09:26

Nope, is still renders "X.XX" where X are numbers, but Facebook seems not to accept the dot between them. Anyway this is not a big deal, I can just insert manually the subsription price there instead than a placeholder

thanks

Powered by Cobalt