I have researched the APIs and would like to code this feature.

Comments

Brian294’s picture

Version: » 7.x-1.x-dev
Issue summary: View changes
ilfelice’s picture

Hi,

I am intrigued by this feature, but before I put my vote, could you please be more specific on what it would do?

Brian294’s picture

I'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

Brian294’s picture

Brian294’s picture

Brian294’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Completed! Checked into the 7.x-dev branch.

Dret’s picture

Status: Closed (fixed) » Active

Hi,

You said in previous post:

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/###

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"?

marazmus’s picture

Do not work with GA 2.x

Brian294’s picture

marazmus, 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.

marazmus’s picture

Brian, I'm really sorry for this, and thank you for answer, that really helps us.