Ive had a few problems with it in the past few hours, so I thought Id share my findings so you wont have to search for it.
With the new GA and SWFAddress 2.4, the GA tracking through SWFAddress doesnt work anymore. Thats because the ‘pageTracker’ that SWFAddress uses no longer exists. All you would have to do to make it work is to add the following line at the end of the GA script:
var pageTracker = { _trackPageview: function (url) {_gaq.push (['_trackPageview', url ]);}};
This creates that ‘pageTracker’ that SWFAddress needs to track through GA. So now it looks like this:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'xx-xxxxxxxx-x']);
_gaq.push(['_trackPageview']);
(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);
})();
// Tracker for SWFAddress
var pageTracker = { _trackPageview: function (url) {_gaq.push (['_trackPageview', url ]);}};
</script>
And thats it! Hope that helps someone some day 
i didn’t know that ,thanks Dutch man 
Thank you Emroni. Appreciate it!
- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Community Moderator
- Author was Featured
- Bought between 10 and 49 items
- Referred between 200 and 499 users
- Has been a member for 4-5 years
- Won a Competition
Hi thank you for the fix, I would like to blog it do you have anything against that ? 
Youre all very welcome
Nothing against that Kuba, go ahead 
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 5-6 years
- Referred between 100 and 199 users
- Sold between 50 000 and 100 000 dollars
thanks for the info !
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 100 000 and 250 000 dollars
- Exclusive Author
- Author was Featured
- Item was Featured
- Beta Tester
- Has been a member for 3-4 years
- Spain
Thanks Emroni. Good to know.
Same here!
Thanks
Look like a good hack, however I would be hesitant to mess with GA code per Google’s terms of use policies. I would love to know your thoughts on this subject.
^ Well, its not really messing with their code. All you do is add a line so you can use their code, your not changing anything. What this line does is make sure that SWFAddress can use the GA code, nothing wrong with that.
