Template tag to install your Facebook Pixel Code account in your templates (https://www.facebook.com/business/help/www/651294705016616/)
- run
pip install django-facebook-pixel-code
- add
'facebook_pixel_code'
to yourINSTALLED_APPS
setting. - set
FACEBOOK_PIXEL_CODE_ID
to your Facebook Pixel Code Id. - In your templates (probably in your base template) you
{% load fpc_tags %}
and then{% fpc %}
between the<head>
and</head>
tags. - Profit