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.

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.

<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');

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

fbq('track', 'Purchase', {
    content_name: '{{ order.item_name }}',
    value: '{{ order.total_without_currency_symbol }}',
    currency: 'USD'
});
</script>

<noscript>
<img height="1" width="1" border="0" alt="" style="display:none" 
src="https://www.facebook.com/tr?id=<FB_PIXEL_ID>&amp;ev=PageView" />
<img height="1" width="1" border="0" alt="" style="display:none" 
src="https://www.facebook.com/tr?id=<FB_PIXEL_ID>&amp;ev=Purchase&amp;cd[value]={{ order.total_without_currency_symbol }}&amp;cd[currency]=USD" />
</noscript>

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="//platform.twitter.com/oct.js" type="text/javascript"></script>
<script type="text/javascript">twttr.conversion.trackPid('<TWITTER_TAG_ID>', { tw_sale_amount: {{ order.total_without_currency_symbol }}, tw_order_quantity: 1 });</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=<TWITTER_TAG_ID>&p_id=Twitter&tw_sale_amount={{ order.total_without_currency_symbol }}&tw_order_quantity=1" />
<img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=<TWITTER_TAG_ID>&p_id=Twitter&tw_sale_amount={{ order.total_without_currency_symbol }}&tw_order_quantity=1" />
</noscript>

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. 😀

Home

General +-

Quickstart guides +-

Plans +-

Settings +-

How to +-

WordPress +-

Other website builders +-

Email newsletters +-

Community forums +-

Course builders +-

Affiliate tracking +-

Analytics +-

Custom development / API +-