Shows the number of donors related to a specific referrer code
By default, shows the number of donations for the related refCode. Receipts where either the conversion code or the referrer code match will contribute to the total. The refCode is taken from the page front matter (i.e. donorCountStat).
{% include stats/donorCount %}The refCode can also be overridden when the widget is included.
{% include stats/donorCount refCode='wmgives' %}It is possibly to set up the stats tracker to link to multiple ref/conversion codes.
{% include stats/donorCount refCode='wmgives,ggad_15,ggad_18' %}By default, we now use GlobalGiving branded colors. This can be overridden with the backgroundColor paramter. The color can be the hexcode, e.g. #2d95de for very particular shade of blue, or a HTML short name like red.
WARNING: When setting the widget fontColor, this will affect all of the stats widgets on the page. The following example uses an undesirable hack to prevent the color change leaking to the rest of the page.
{% include stats/donorCount backgroundColor='#2d95de' %}
{% include stats/donorCount backgroundColor='red' %}By default, the text in the banners is white. If you need to change this (e.g. you are using a very light colored background, you can do that with the fontColor parameter. The color can be the hexcode, e.g. #2d95de for very particular shade of blue, or a HTML short name like red.
WARNING: When setting the widget fontColor, this will affect all of the stats widgets on the page. The following example uses an undesirable hack to prevent the color change leaking to the rest of the page.
{% include stats/donorCount fontColor='#2d95de' backgroundColor='pink' %}
{% include stats/donorCount fontColor='red' backgroundColor='pink' %}