Hi Jorge.
How would I set up tracking for the second product so I know if was an upsell or a regular sale?
Wouldn’t the [hilite mono]%%item_number%%[/hilite] replacement code be enough to differentiate one product from the other in your tracking? [hilite path]Dashboard -› s2Member® -› API / Tracking -› Signup Tracking Codes[/hilite]
Also, how can I set up tracking so I can use goals inside Google Analytics. It seems that I lose traffic source when they go to PayPal
Maybe you could add the traffic source as a custom value in the shortcode, and then use it in the tracking with the custom value replacement code.
Custom Replacement Codes can also be inserted using these instructions:
[hilite mono]%%cv0%%[/hilite] = The domain of your site, which is passed through the `custom` attribute in your Shortcode.
[hilite mono]%%cv1%%[/hilite] = If you need to track additional custom variables, you can pipe delimit them into the `custom` attribute; inside your Shortcode, like this: [hilite mono]custom="cristian.websharks-inc.net|cv1|cv2|cv3"[/hilite]. You can have an unlimited number of custom variables. Obviously, this is for advanced webmasters; but the functionality has been made available for those who need it.
This example uses cv1 to record a special marketing campaign:
( The campaign ( i.e. christmas-promo ) could be referenced using [hilite mono]%%cv1%%[/hilite] )
[hilite mono]custom="cristian.websharks-inc.net|christmas-promo"[/hilite]
Also: Knowledge Base » Using variables in a shortcode
I hope that helps. :)