1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

form google analytic

Discussion in 'Professional Support' started by aje, Oct 26, 2015.

  1. aje

    aje Member

    Level: Community
    Hi
    Have a form open in a pop up form. How can i add a google analytic to this ?
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    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 (Text):

    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
     

Share This Page