2
1
0

I was wondering how one can set up Google analytics for Maestro forms?

I've previously used these instructions for my composer forms (Google Analytics Virtual Page Integration). But it requires the use of a business rule, which doesn't appear to be available in Maestro.

    CommentAdd your comment...

    2 answers

    1.  
      3
      2
      1

      Form Options > Analytics

      Set the appropriate tracking ID and base URL in there, and the form will provide load, page change events automatically. If you want to do anything further than that in a business rule, you have access to the global "ga" object and all it's standard Google methods. We are discouraged from doing field-level stuff though, as that will be better handled by Insights.

       

      1. Adam Kaplan

        I followed these instructions and was blocked by the Content Security Policy in my Smart Form.

        I see this message in the console.

        And can verify that the header is being set on page load.

        Is there a place to white list the google analytics script?

      2. Ben Warner

        A search of the Avoka Knowledge Base will yield the answer you seek:

      CommentAdd your comment...
    2.  
      2
      1
      0

      If you do need to run any business rules on page change you can do this by:

      1. Select the Page Controller (the container for all your pages in the structure tab)
      2. Click Create Rule and select 'Page change'
      3. Add your script

       

       

        CommentAdd your comment...