Custom conversion tracking

Go to Settings → Customize → Advanced in your Memberful dashboard and paste your tracking codes into the Successful order analytics code box.

You can add as many tracking codes as you like. See examples below for Facebook Ads and Twitter Ads.

Configure checkout

These tracking codes will be output on the order complete page whenever a customer successfully completes an order.

Please note that all the Order and Member variables listed in the email templates documentation are also available to use in your tracking snippets.

Track new Memberful orders in Facebook Ads

You must replace all 3 instances of <FB_PIXEL_ID> with your real Facebook Pixel ID in the code below.


fbq('init', '<FB_PIXEL_ID>');
fbq('track', 'PageView');

fbq('track', 'Purchase', {
    content_name: '{{ order.item_name }}',
    value: '{{ order.total_without_currency_symbol }}',
    currency: 'USD'

<img height="1" width="1" border="0" alt="" style="display:none" 
src="<FB_PIXEL_ID>&amp;ev=PageView" />
<img height="1" width="1" border="0" alt="" style="display:none" 
src="<FB_PIXEL_ID>&amp;ev=Purchase&amp;cd[value]={{ }}&amp;cd[currency]=USD" />

Track new Memberful orders in Twitter Ads

You must replace all 3 instances of <TWITTER_TAG_ID> with your real Twitter website tag ID below.

<script src="//" type="text/javascript"></script>
<script type="text/javascript">twttr.conversion.trackPid('<TWITTER_TAG_ID>', { tw_sale_amount: {{ }}, tw_order_quantity: 1 });</script>
<img height="1" width="1" style="display:none;" alt="" src="<TWITTER_TAG_ID>&p_id=Twitter&tw_sale_amount={{ }}&tw_order_quantity=1" />
<img height="1" width="1" style="display:none;" alt="" src="//<TWITTER_TAG_ID>&p_id=Twitter&tw_sale_amount={{ }}&tw_order_quantity=1" />

Can't find what you're looking for? We'd love to help! 💪

Send us a message through the orange chat bubble in the lower right corner of the page. You'll hear back within a few hours Monday - Friday. 😀


General +-

Quick start guides +-

How to +-

CMS Integrations +-

Email Newsletters +-

Discussion Forums +-

Course Builders +-

WordPress +-

Development / API +-