Closed (won't fix)
Project:
Facebook Like Button
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2011 at 20:20 UTC
Updated:
22 May 2013 at 12:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedIf 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.
Comment #2
introfini commentedThis 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.
Comment #3
sgtsaughter commentedSo 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.
Comment #4
hass commentedThanks for sharing these links. I wasn't aware of this stuff. Someone need to write patches for this.
Comment #5
tancHere is some more information on how to implement: http://analytics.blogspot.com/2011/07/social-plugin-tracking-in-google.html
Comment #6
hubrt commented+1
Comment #7
davidzz commentedsubscribing
Comment #8
carvalhar commented+1
Comment #9
toodlepip commentedHiya - 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.
Comment #10
sgtsaughter commentedHey 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!
Comment #11
castelar commented+1
Trying toodlepip's code now.
Comment #12
olax commentedYes, it would be great to have this included in the Analytics module.
Subscribe.
Comment #13
achtonSo 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.
Comment #14
tribe_of_dan commentedI 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
Comment #15
dc_marc commentedI 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:
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.
Comment #16
reubenavery commented+1
Comment #17
remkovdz commentedWill this feature be included in the Google Analytics module any time soon? Essential?
Thanks!
Comment #18
hass commentedMy 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.
Comment #19
henryme commentedIf we are browsing in a secure connection, do we have to try facebook login proxy?
Comment #20
torotil commentedIncluding 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
Comment #21
duvahazard commentedHello 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.
Comment #22
remkovdz commentedI'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?
Comment #23
hass commentedMust be a bug in your webserver or mod_security, etc.
Comment #24
charlietoleary commentedHi 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
Comment #25
robinmofo commentedHi 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
Comment #26
lliss commentedThis really isn't part of the fblikebutton module and since this module uses the older iframe style behavior it can't support click events.