Closed (won't fix)
Project:
Webform
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
27 Jun 2008 at 15:37 UTC
Updated:
11 Jun 2024 at 12:23 UTC
Great mod, thanks much!
I noticed that the Google analytics code is inserted in the $closure in the webform. On submission however, the $closure is empty.
Comments
Comment #1
jdblank commentedI also noticed that the GA tag is missing on the form submission page so our goals in Google Analtyics do not work. Is there a fix in the works?
Comment #2
quicksketchThat's strange, I wonder what Webform could be doing to cause such a problem. I don't have time currently to look into this specific problem. Any patches or suggestions would be appreciated.
Comment #3
izkreny commentedMaybe this can help: Integrate your module with Google Analytics.
Comment #4
quicksketchUnless a patch is provided, this problem will remain unfixed. I'm moving to won't fix as I have no intention of correcting it. Patches accepted of course.
Comment #5
mrfelton commentedsee #442846: Google analytics code doesn't appear on webform confirmation pages for some more information on this...
Comment #6
pgilmore commentedI've encountered the same problem and found that the drupal_get_js() is called twice the first time before the html is rendered on submission, thus not printing out the _trackEvent method.
I solved it this way, but it fells a bit like a hack so if someone has a better solution please enlighten me.
This stores the js-call in a session that is the printed out once the hook_init is called which it is on loading of the form.
Thanks!
Comment #7
lane.angelique commentedIn the Google Analytics settings (/admin/settings/googleanalytics)
Under "Page specific tracking settings", node/*/* is being excluded.
This is why the $closure variable is blank.
Comment #8
mo6Please note that the Piwik analytics module has the same default configuration for "Page specific tracking settings", so webform confirmation pages are not tracked by default by Piwik. Removing the offending line 'node/*/*' enables tracking of webform confirmation pages, which is useful for tracking goals.