Skip to content

aMember Plugin Info

Eric Fung edited this page Jan 3, 2014 · 1 revision

I have had these notes for a while (created Oct 15, 2012), so hopefully they are still up to date:

http://www.amember.com/forum/threads/kissmetrics-plugin-for-amember-saas-style.15658/

These are the PHP variables to refer to certain fields:

  • Member Emails -> {$user.email}
  • Revenue -> {$payment.amount}
  • Plan level (aka Product) -> {$payment.product_id}
  • Member ID -> {$payment.member_id}

Examples

I presume this is how to use them.

<script type="text/javascript">
  _kmq.push(['identify', '<?php echo $payment.member_id ?>']);
  _kmq.push(['record', 'billed', {'Billing Amount':'<?php echo $payment.amount; ?>'}]);
</script>
Clone this wiki locally