Support » Plugin: s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members) » Google Analytics & Specific Post/Page Tracking Codes

  • Hello everyone,

    How do I properly enable the Google Analytics e-commerce tracking for the purchase of specific post/page access (not the usual subscription tracking)?

    I have tried the following code, but I am not successful:

    <script type="text/javascript">
      var _gaq = _gaq || [];
        '%%txn_id%%', // transaction ID - required
        '%%cv0%%', // affiliation or store name
        '%%amount%%' // total - required
        '%%txn_id%%', // transaction ID - required
        '%%item_number%%', // SKU/code - required
        '%%item_name%%', // product name
        '%%amount%%', // unit price - required
        '1' // quantity - required
      _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers

    Any ideas?


  • The topic ‘Google Analytics & Specific Post/Page Tracking Codes’ is closed to new replies.