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 API not working w/ Google Analytics

Home Forums Community Forum Tracking API not working w/ Google Analytics

This topic contains 2 replies, has 3 voices. Last updated by  Melissa Shanhun 3 years, 8 months ago.

Topic Author Topic
Posted: Thursday Aug 9th, 2012 at 11:29 am #21636

I am trying to use the Tracking API to push eCommerce updates to Google Analytics, so I can track membership purchases, I followed some advice on : http://www.primothemes.com/forums/viewtopic.php?f=4&t=14625

I put the following code in the Tracking API under “Signup Tracking Codes”:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25797839-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
  '%%subscr_id%%',           // order ID - required
  'istandardproducers.com',  // affiliation or store name
  '%%initial%%'          // total - required
]);

_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

I have received purchases since putting in the code, but they are not showing up in the eCommerce section of Google Analytics.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Friday Aug 24th, 2012 at 11:38 am #22985

Did you get this to work yet? I’m needing the same thing.

Posted: Friday May 10th, 2013 at 3:53 am #49677

Ok my issue is that this is only working with memberships, not with posts/pages.

Can you please advise how we can get the eCommerce tracking to work with them?

Thanks

Melissa

Viewing 2 replies - 1 through 2 (of 2 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.