Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
We need to add virtual pageviews for ours webforms. Is it possible with webform?
Regards
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedWhat is a virtual page view? Do you mean some sort of thumbnail of the webform data entry form? Webform doesn't display anything like that.
I also recommend that you update to, at a minimum, the latest 7.x-3.x, and as soon as possible, 7.x-4.x. The 3.x branches are now receiving only critical bug fixes.
Comment #2
javi.wroom CreditAttribution: javi.wroom commentedHi, thank you for your reply.
I want to modify onsubmit parameter. For example:
<form action="xxx" method="xxx" onsubmit="ga('send', 'pageview', {'page': '/new-register','title': 'New Register'});">
So, through Google Analitics I could see a tracking of it...
Regards
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedWe don't provide programming support, but I'd suggest you look at hook_form_webform_client_form_alter() to make whatever modification you need, including adding javascript as needed. Good luck.