Google Universal Analytics

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/11/2014 8:55:12 PM
Gravatar
Total Posts 190

Google Universal Analytics

I've had a number of clients looking to use the newer Google Universal Analytics. From what I've been following Google is migrating everyone off of the various old scripts and moving to this new version. Google has sent out emails to all their analytics users asking them to upgrade their accounts.... which has led to some confusion. I'm not 100% sure if it's out of beta or not, but definitely on the way.

https://support.google.com/analytics/answer/2790010?hl=en-GB

I know we can override the <portal:mojoGoogleAnalyticsScript ID="mojoGoogleAnalyticsScript1" runat="server" /> and manually place the code. Just mentioning it here because it's something people are starting to ask for. Not urgent, but at some point a setting in the API Key area that lets site admin choose what version of analytics to use might be a decent idea. I don't think you could just force the new code as users have to manually update their accounts (until the mandatory switch in a year or two) and if the user's account wasn't updated then it would cause problems.

1/12/2014 2:01:33 PM
Gravatar
Total Posts 18439

Re: Google Universal Analytics

Hi Eric,

This is already implemented in our source code repository and I'm using it already on this site and our demo site. I've updated the article here with some notes about it just now. Note that whether you migrate now or later when they force you to migrate, the old code snippets still work, they are just deprecated, and some new features of Universal are only available by using the new snippet. So no data will be lost and migrating should be seemless as long as you don't change to the new code until after migration has completed.

Best,

Joe

1/12/2014 6:31:51 PM
Gravatar
Total Posts 190

Re: Google Universal Analytics

Great news! That's perfect, thanks.

4/9/2014 4:15:35 PM
Gravatar
Total Posts 190

Re: Google Universal Analytics

I don't think the implementation of Google Universal Analytics is 100% correct. Google may have changed their code recently since this is kind of new...

If we look here:
https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad

There's a line not included in the mojoPortal code.
ga('require', 'displayfeatures');

Currently we can't get a site to validate as accurate to Google, and we believe from our research it's the displayfeatures line causing the problem.

I know we could just override the mojo tags.... but I try to avoid overriding mojo functions when possible, just cleaner.

Thanks,

4/10/2014 9:58:35 AM
Gravatar
Total Posts 18439

Re: Google Universal Analytics

Hi Eric,

I do not think there is anything wrong about our implementation of Universal Analytics, I've been using it on this site and others for quite some time now and it is working just fine.

The code fragment you are referring to is something we can add support for but it is not related to validating your site and is not required, it is for integration with advertising platforms such as doubleclick and will make UA also track the doubleclick cookie in addition to the analytics cookie.

I just implemented support for it so it will be in the coming release but you will have to enable it from the layout.master file by adding EnableDisplayFeatures="true" on the <portal:AnalyticsAsyncTopScript.

As per this article, if you do enable it you should update the privacy policy of the site to note that additional tracking is happening for advertising purposes not just for traffic analysis. Since enabling it has privacy implications the default will be false.

If you are having trouble with Universal Analytics I do not think it has anything to do with this.

Best,

Joe

4/10/2014 11:23:23 AM
Gravatar
Total Posts 190

Re: Google Universal Analytics

I suspect you are right and there's another reason the account is validating. We'll keep looking at it.

Thanks for making that addition. I've had other clients looking for the displayfeatures as well.... you know marketers, they LOVE that kind of stuff, like crack!!!

8/9/2014 12:07:54 PM
ABM
Gravatar
Total Posts 34

Re: Google Universal Analytics

Just an FYI. The displayfeatures is also required to enable demographics and interest and interest tracking. Thanks for implementing this, Joe!

You must sign in to post in the forums. This thread is closed to new posts.