Skip to content

Instantly share code, notes, and snippets.

@fravelgue
Created December 4, 2020 11:49
Show Gist options
  • Save fravelgue/16855575bf5cdeb452462d8660788b2c to your computer and use it in GitHub Desktop.
Save fravelgue/16855575bf5cdeb452462d8660788b2c to your computer and use it in GitHub Desktop.
Multiples Facebook pixels in Shopify. In theme.liquid, replace {{ content_for_header }} with this code
{% assign fb01 = '"ORIGINAL_FB_PIXEL"' %}
{% assign fb02 = '"ORIGINAL_FB_PIXEL","SECOND_FB_PIXEL"' %}
{% comment %}{{ content_for_header }}{% endcomment %}
{{ content_for_header | replace: fb01, fb02 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment