Hi Have a form open in a pop up form. How can i add a google analytic to this ?
A aje Member Oct 26, 2015 #1 Hi Have a form open in a pop up form. How can i add a google analytic to this ?
cheesegrits Support Gopher Oct 26, 2015 #2 You'd have to use Google Tag Manager, and handle it as a virtual event. Here's a decent tutorial on coding for the GTM. http://www.lunametrics.com/blog/2014/09/10/fire-virtual-pageview-google-tag-manager/ You'd probably want to run that code on the fabrik.form.loaded event, like ... Code: Fabrik.addEvent('fabrik.form.loaded', function(form) { // your code here }); ... in a ./components/com_fabrik/js/form_X.js file, or maybe the list_X.js. But the specifics of how to handle the GTM is outside the scope of Fabrik support. -- hugh
You'd have to use Google Tag Manager, and handle it as a virtual event. Here's a decent tutorial on coding for the GTM. http://www.lunametrics.com/blog/2014/09/10/fire-virtual-pageview-google-tag-manager/ You'd probably want to run that code on the fabrik.form.loaded event, like ... Code: Fabrik.addEvent('fabrik.form.loaded', function(form) { // your code here }); ... in a ./components/com_fabrik/js/form_X.js file, or maybe the list_X.js. But the specifics of how to handle the GTM is outside the scope of Fabrik support. -- hugh