templates/facebook_pixel/track.html.twig line 1

Open in your IDE?
  1. if (typeof fbq === 'function') {
  2.     fbq('track',
  3.         '{{ event.type }}', {
  4.             {% if event.contentType is not empty %}
  5.                 content_type: '{{ event.contentType }}',
  6.             {% endif %}
  7.             {% if event.contentIds is not empty %}
  8.                 content_ids: '{{ event.contentIds|join('; ') }}',
  9.             {% endif %}
  10.             {% if event.value is not empty %}
  11.                 value: '{{ event.value }}',
  12.             {% endif %}
  13.             {% if event.currency is not empty %}
  14.                 currency: '{{ event.currency }}',
  15.             {% endif %}
  16.             {% if event.couponCode is not empty %}
  17.                 couponcode: '{{ event.couponCode }}',
  18.             {% endif %}
  19.             {% if event.actionNumber is not empty %}
  20.                 actionnumber: '{{ event.actionNumber }}'
  21.             {% endif %}
  22.         });
  23. }