latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Tracking Sales

Home Forums Community Forum Tracking Sales

This topic contains 7 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 1 month ago.

Topic Author Topic
Posted: Monday Nov 26th, 2012 at 11:41 pm #32657
jorge
Username: jorgitoz

How do I set up my Google AdWords tracking codes if…

I have two products and I offer the second product at a discount using one time offers and then at regular price…

Right now I have a conversion tracking code for my first product under API/Tracking>Sign Up Tracking Codes

How would I set up tracking for the second product so I know if was an upsell or a regular sale?

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… is this not possible unless I use PayPal Pro?

Thanks!

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Tuesday Nov 27th, 2012 at 7:39 am #32689

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. :)

Posted: Tuesday Nov 27th, 2012 at 8:37 am #32700
jorge
Username: jorgitoz

Hmmm… maybe I know much less than I thought about this… let’s take care of the first part…

Can you give me an example of how I would use the %%item_number%%… how would this look like… I have this tracking code:

<!-- Google Code for Product B Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXXX;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "XXXXXXXXXXXXXXXXXX";
var google_conversion_value = 99.97;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/XXXXXXXXXX/?value=99.97&amp;label=XXXXXXXXXXXXXXX&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

Where would I add the Item Number??

Thanks for your patience :)

  • This reply was modified 4 years, 1 month ago by  jorge.
Posted: Wednesday Nov 28th, 2012 at 7:32 am #32767

I’m not sure, I’m not experienced with Google Analytics. But if GA has a variable you can use to identify the product in some way, you could enter the item number as its value.

Supposing the [hilite mono]google_conversion_id[/hilite] is the one to use, then you’d do:

[hilite code]var google_conversion_id = %%item_number%%;[/hilite]
Posted: Wednesday Nov 28th, 2012 at 1:40 pm #32796
jorge
Username: jorgitoz

Ok… but if I have 2 or more products and I set up both tracking codes under Dashboard -› s2Member® -› API / Tracking -› Signup Tracking Codes wouldn’t that count as sales for both products?

Posted: Thursday Nov 29th, 2012 at 1:04 am #32864

But if they’re different products, then the item number would be different for each, there wouldn’t be overlap, right?

Posted: Thursday Nov 29th, 2012 at 12:11 pm #32918
jorge
Username: jorgitoz

Actually I just figure it out…

I can’t change the google conversion id since that’s assigned by Google, but I can create different ‘thank you’ pages for each product and place the code there and use the success=’thankyoupage’ variable in the buttons…

Posted: Friday Nov 30th, 2012 at 6:52 am #32977

Great. Glad you figured it out! Thanks for the update. :)

Viewing 7 replies - 1 through 7 (of 7 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.