indeedeng / django-ptrack

Tracking pixel library for Django
Apache License 2.0
40 stars 17 forks source link

how to use it with emails? #13

Open kalsky opened 4 years ago

kalsky commented 4 years ago

Hi

Can you add some more information in the readme about how to use it for emails? If I understand correctly, I can do something like:

from ptrack.templatetags.ptrack import ptrack
img_tag = ptrack(key1='aaa',key2='ccc')

and then I can add the img_tag to the email body. Is there a different way to do that?

russelljk commented 3 years ago

Are you using Django templates to render your emails? If so you can use the same instructions as the readme describes here: https://github.com/indeedeng/django-ptrack#using-ptrack