I need to add tracking code to the "Thanks" page to track conversions. Ideally, I'd prefer to use my own Thanks pages for different products. Anyone have any ideas how I would do this?
You need to edit /amember/application/default/views/thanks.phtml First please have a look here http://www.amember.com/docs/Themes_and_Templates about how you can modify template so it will nto be overwrited on update. In thanks template you can use something like this in order to display separate text for different products: <?php if($invoice->getItem(0)->item_id ==1) : ?> Test for product 1 here <?php endif; ?>
Too complicated for me.... I don't know php. Can I copy all templates over and select a user theme and it will still look the same? Can I add tracking code snippet to thanks.phtml?
Perhaps one can make the "thanks.phtml' do a redirect to a specific product thanks page? I could then put tracking code on the page redirected to. Is that feasible?
Sure, but anyway will require modifications in php code. This is really better to use example that I gave you above.
OK. So I'd have several of these... one for each product? <?php if($invoice->getItem(0)->item_id ==1) : ?> Text for product 1 here <?php endif; ?> <?php if($invoice->getItem(0)->item_id ==2) : ?> Text for product 2 here <?php endif; ?> Is that it? Can I use html? Will it style as per my website css?
Yes, you can enter any HTML instead of "Text for product 1 here" and it will be styled as any of your aMember pages.