Active
Project:
Google Analytics Capture and Display (User / Webform / Ubercart / Comments)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Jan 2014 at 04:39 UTC
Updated:
18 Sep 2014 at 09:18 UTC
Jump to comment: Most recent
Comments
Comment #1
Brian294 commentedComment #2
ilfelice commentedHi,
I am intrigued by this feature, but before I put my vote, could you please be more specific on what it would do?
Comment #3
Brian294 commentedI've started writing the code for this module to get an understanding of the API.
In summary, it leverages the ga_capture_data table that the core module creates. There is a hook in webform that allows me to intercept a webform submission after it has been created. In that hook, I make a reference to the unique webform submission id, and write the google analytics data to my table using a foreign key relationship to the webform submission id.
Once the data is written, web site managers can see this data on the webform submission details screen under a new header called "Google Analytics Data":
http://mywebsite.com/node/##/submission/###
Also, web site managers can write Views to display that google analytics data in direct relationship with the webform submission.
Peace,
Brian
Comment #4
Brian294 commentedIt's output would like similar to this:
https://drupal.org/files/project-images/ga_capture_user_screenshot.png
Comment #5
Brian294 commentedThe Views page would look similar to this:
https://drupal.org/files/project-images/ga_capture_user_views_screenshot...
Comment #6
Brian294 commentedCompleted! Checked into the 7.x-dev branch.
Comment #7
Dret commentedHi,
You said in previous post:
But I can't see anything about Google Analytics Data in submission webform page.
Could be a bug?
Thanks, Bye!
P.S It is possible to see the same data also in the webform standard report called "Table"?
Comment #8
marazmus commentedDo not work with GA 2.x
Comment #9
Brian294 commentedmarazmus, it's not a GA 2.x issue so much as it's a "google" issue. from what I'm reading, google analytics is in the final stages of pushing out "universal analytics" (which GA 2.x is using). they have introduced a different cookie structure that completely departs from the cookie that we're reading from. all information about the visitor is now being processed and stored on google's server, and is no longer available in the cookie. several people, including us, are unsure how we can get campaign information now and google has been silent on any workaround. i am open to suggestions, but at this point, unless we have some way of querying google's server with jquery, i'm not sure how we can get realtime campaign information now.
Comment #10
marazmus commentedBrian, I'm really sorry for this, and thank you for answer, that really helps us.