Thank You Page Receipt?- thanks.html

Discussion in 'Templates customization' started by microlinx, Dec 4, 2005.

  1. microlinx

    microlinx Member

    Joined:
    Oct 26, 2004
    Messages:
    268
    Is it possible to add the member's name, address, amount paid and username & password to the thanks.html page so it can be printed right after payment?

    I am finding that with more people using agressive spam filtering that many members are never even getting the signup emails. The result is a chargeback nightmare!

    I would like to provide a better "receipt" style page which can be printed.

    I have customized thanks.html but I am unsure if this info can be displayed reliably for the user.

    Also, it would be nice in a future version if somehow there was a way to generate a report to tell the admin if there are accounts that have never been logged in to. With thousands of members, it is nearly impossible to do this manually.
    Maybe set a flag when someone signs up, then clear the flag on the first login. If no login occurs, a message could be displayed or a report generated to display those accounts.

    Thanks
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It has been implemented in aMember Pro v 2.3.8 - just upgrade and you will get it.
  3. skippybosco

    skippybosco Guest

    Google Analytics?

    What about fields like address/city/state/zip? Or custom added fields created using the "Add field" option?

    Google Analytics supports the following fields:

    [order-id] <- Got this from {$payment.payment_id}
    [affiliation] <- would like this to be a custom added field
    [total] <- Got this from {$total|string_format:"%.2f"}
    [city] <- Would like this to be the users city (as populated during signup) tried using {$user.city}
    [state/region] <- Would like this to be the users state (as populated during signup) tried using {$user.state}
    [country] <- Would like this to be the users country (as populated during signup) tried using {$user.country}

    Any help would be appreciated.
  4. skippybosco

    skippybosco Guest

    I probably should have been more specific in my last post. I am using Google Analytics on my site to track usage and sales. I am able to get the basic information about transactions to work on the thankyou page such as order-id, cost, etc. I am hoping, however, to extend this to include user information such as city, state, country along with custom added fields added through the Amember interface.

    Is the user data such as this exposed on the thank you page?

    Frank
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Yes, of course
    {$member.city}
    {$member.state}
    {$member.country}

    {$member.data.added_field} - if added as "common" field
    {$member.added_field} - if added as "sql" field
  6. skippybosco

    skippybosco Guest

    Google Analytics example

    Thanks Alex. Worked like a charm.

    For those that are looking to integrate the receipt page with Google Analytics, here is an example of working tags:

    Code:
    <body onLoad="javascript:__utmSetTrans()"> 
    
    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">
    
    UTM:T|{$payment.payment_id}|{$member.data.referral}|{$total|string_format:"%.2f"}|0||{$member.city}|{$member.state}|{$member.country}
    {foreach from=$products item=p}
    UTM:I|{$payment.payment_id}||{$p.title}||{$p.price}|1 </textarea>
    {/foreach}
    </form>
    This code goes into your thankyou.html file and the google account data goes into your header.html.
  7. bgetting

    bgetting New Member

    Joined:
    Jan 28, 2006
    Messages:
    11
    Didn't work for me.

    I didn't see where the member address and such was included on the thank you page (thanks.html).

    I also tried adding them by placing:

    {$member.city}

    on the template. Nothing came out. I would like to include the billing address, city, state, zip, and name on the thank you page. Could you post an example of how to do this?

    I am using version 2.3.9 PRO.

    Thank you.
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    There is different billing address (which is only filled for "real" credit card processors), and an address from signup form. Which one do you need and which payment processor(s) do you use?
  9. bgetting

    bgetting New Member

    Joined:
    Jan 28, 2006
    Messages:
    11
    Interesting.

    I would like to get whatever billing address, city, state, name, etc. was used to bill the card.

    We are using Authorize.Net AIM

    Thanks again, you are on fire today. I'm down to almost no questions.
  10. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Try
    {$member.data.cc_street}
    {$member.data.cc_city}
    {$member.data.cc_state}
    {$member.data.cc_zip}
    {$member.data.cc_country}
  11. fishnyc22

    fishnyc22 New Member

    Joined:
    Mar 22, 2006
    Messages:
    29
    Hey SkippyBosco...Thanks for posting this info.

    I'm looking to do something similar to what you have set up here. Do I have to put any special smarty tags or anything around the GA js code?

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">_uacct = "UA-XXXXXX-1"; urchinTracker();</script>

    Also, did you only track the thanks.html page or did you also track all amember pages? is that necessary? Still trying to figure GA out, but seems pretty cool(and free!).

    Google say to put the js at the bottom of the page. Did you mean to put the js code above into the header? Or were you referring to the onLoad function?

    Thanks again.

    Fish
    ><>
  12. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    I'm also interested in using GA for tracking from a/b split landing pages on.
    Having a bit of difficulty though implementing it, especially using conversion, a/b split, and funnel features.
    Anyone here using those?
  13. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Fish, just add it to
    amember/templates/footer.html
    before closing </body>
    No other changes should be required.
  14. fishnyc22

    fishnyc22 New Member

    Joined:
    Mar 22, 2006
    Messages:
    29
    Awesome. Thanks alex.
  15. fishnyc22

    fishnyc22 New Member

    Joined:
    Mar 22, 2006
    Messages:
    29
    Just wanted to follow up. when I was going to the Update CC info page, I was getting a dialog box that said:

    "This page contains both secure and no-secure items."

    I believe its becuase I had this code:
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">_uacct = "UA-XXXXXX-1"; urchinTracker();</script>

    I think I solved it by changing the http:// to https://
  16. jamplay

    jamplay New Member

    Joined:
    Aug 29, 2006
    Messages:
    4
    *Bump*

    I have the code in amember/templates/thanks.html okay. However, what did you set as your goal URL within Google Analytics?

    I need to track for both authorize_aim & paypal_r signups. Should I simply put
    https://www.jamplay.com/amember/templates/thanks.html? That is NOT what the users (actual URL in the browser) sees upon signup success, so I'm not sure of the proper route to take here?

    Any ideas?

Share This Page