Can anyone confirm that this is compatible to catch social media interactions with pages like +1 or Facebook likes that is reported in the new version of Google Analytics?

CommentFileSizeAuthor
#9 ga-social-tracking.txt1.4 KBtoodlepip

Comments

hass’s picture

Status: Active » Fixed

If somethingis missing feel free to explain what and how tracking should work and what you expect how it works. I'm not good in reading minds.

introfini’s picture

This can be done in two ways: 1) on the google analytics module side, or on 2) the social integration module side.

1) the google analytics module adds an option to track each one of the social networks (I suppose not ;-) or just the "important" ones (facebook, twitter,?)

2) add an issue to each drupal module that does integration with those social networks to add that option for this new feature of google analytics http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html

Note: Out of the box, Google Analytics provides integrated tracking with the Google +1 button, so you don't need to do anything on the Drupal side.

sgtsaughter’s picture

So far I dont think this is supported. @hass I think the OP is referring to a new plugin by google analytics that adds a few more reports from social networking plugins.

Here is the how to set up the this plug in
http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.htm...

Here is an article of what it is for anyone that doesn't know what it is.
http://mashable.com/2011/06/30/google-analytics-social-plugin/

I too would like to see this integrated into the google analytics module.

Thanks.

hass’s picture

Version: 6.x-3.3 » 7.x-1.x-dev
Category: support » feature
Status: Fixed » Active

Thanks for sharing these links. I wasn't aware of this stuff. Someone need to write patches for this.

tanc’s picture

Here is some more information on how to implement: http://analytics.blogspot.com/2011/07/social-plugin-tracking-in-google.html

hubrt’s picture

+1

davidzz’s picture

subscribing

carvalhar’s picture

+1

toodlepip’s picture

StatusFileSize
new1.4 KB

Hiya - just added this to our site using code suggestions from Google Analytic's documentation. I think the Javascript works OK - although any feedback, much appreciated - and should be fairly easy to integrate into the GA module. As its tracking specific, I'd suggest it was included in the google_analytics module rather than the other social modules.

N.B. We're running D6 - so this works for Drupal 6, I haven't seen the D7 version but guessing there's no much difference.

I've blogged the code and instructions here:
http://www.toodlepip.co.uk/blog/2011/08/adding-social-interaction-analyt...

The code is also attached for reference. Hope it's useful.

sgtsaughter’s picture

Hey Toodlepip,

Thank you for taking the time to create this code. I'll be implementing this to my sites as soon as I get into the office today. How long did it take your google analytics to start tracking and displaying results of social networks from this code?

I also agree that it should be included in a google_analytics module update if it does in fact work.

Thanks again!

castelar’s picture

+1

Trying toodlepip's code now.

olax’s picture

Yes, it would be great to have this included in the Analytics module.
Subscribe.

achton’s picture

So what were the results, sgtsaughter & castelar? Very interested in hearing about your findings, and whether there is basis for building a patch for the GA module.

tribe_of_dan’s picture

I tried doing as per Toodlpips blog but looking at my page source it doesn't seem to be showing up. I'm not sure why.

From: http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html

Best Practices for Integration

Many sites add social buttons by using content management plugins. If you are the author of such plugins, we highly recommend you integrate Social Plug-in Analytics to automatically record these interactions.

dc_marc’s picture

I too am trying to do this. When I paste the code found in the new version of analytics (minus the script tags), I get the message:

"Validation error, please try again. If this error persists, please contact the site administrator."

Rather than fiddling with custom JS code, it would be great if the module just worked to include at least +1, Fb, and Tw. Don't know how difficult that might be. I am using 6.x-3.3, btw.

reubenavery’s picture

+1

remkovdz’s picture

Will this feature be included in the Google Analytics module any time soon? Essential?

Thanks!

hass’s picture

Title: Social media tracking » Google Analytics integration
Project: Google Analytics » Facebook Like Button

My understanding of the integration is that I'm not able to do anything about this in ga as the module does not provide any social network integrations itself. The modules like http://drupal.org/project/fblikebutton need to implement an event tracking call if someone hits the "i like" button. Moving queue.

henryme’s picture

If we are browsing in a secure connection, do we have to try facebook login proxy?

torotil’s picture

Including GA tracking like described on http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html is possible once we support using the XFBML or HTML5 version of the like button. Then we can use the create.edge event handler. So this is basically blocked by #1487902: Support for different button formats

duvahazard’s picture

Hello toodlepip, your site is not working. Is there a mirror with these instructions elsewhere or does someone on this thread know where to paste this code for Social Tracking in Google Analytics module?

Thanks for your help in advance.

remkovdz’s picture

I'm trying the tip on post #9 now, but every time I put some Custom Javascript Code in either of the fields (before or after the snippet) and hit the Save button, Drupal confirms the configuration has been updates but... the Custom Javascript Code fields are empty..? In other words: the settings aren't saved.
Any idea?

hass’s picture

Must be a bug in your webserver or mod_security, etc.

charlietoleary’s picture

Hi all,

I have created a sub-module for Google Analytics that deals with social tracking.

Sandbox here.

it is currently in the project application queue

robinmofo’s picture

Hi all,

We are currently testing the sandbox project on our dev environment, whilst the alternative method of advanced custom JS snippets may work; we need to ensure that issues are managed from a central point, i.e. Drupal issue queue and versioning.

Is there any reason why the sandbox project cannot be added as a patched, sub module within the existing GA module?

Otherwise, the GA Social Tracking module should get full project status - which is currently being blocked by this issue.

Full Project application ticket: http://drupal.org/node/1570606

lliss’s picture

Status: Active » Closed (won't fix)

This really isn't part of the fblikebutton module and since this module uses the older iframe style behavior it can't support click events.