I
I
inkShio2018-06-20 16:13:11
Facebook
inkShio, 2018-06-20 16:13:11

How to fix encoding in Facebook Pixel?

Installed this miracle on the site.
Website in utf-8.
I do so.

<script>
  var pageData = {
    "title": "<?=$pageData_title();?>", // Вывод заголовка
    "category": "<?=$pageData_category;?>" // Вывод категории
  }
</script>

Sending it all to facebook pixel
fbq('track', 'ViewContent', {
    content_name: pageData.title,
    content_category: pageData.category
  });

And I get that in facebook pixel writes everything in unicode.
5b2a52546b7b6896657550.jpeg
Can you tell me how to fix this issue? Googled, tried some options, but so far without results.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-06-20
@Sanasol

this is normal json string

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question