• Resolved jaredmaxsnider

    (@jaredmaxsnider)


    Thank you for your plugin. Just had a quick question regarding tracking virtual pageviews. We have a multipage form (GravityForms) and we are sorting out how to appropriately implement GA to track each “page” of the form even though its all loaded from the same URL. We are trying out multiple options and exploring the best way to do this, but we are currently using your plug-in so I wanted to ask if GTM was able to work with this functionality. Thank you so much in advance for any and all insight.

    https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I’ve found this documentation about Gravity Form’s multi page feature, especially about the page break component:

    https://docs.gravityforms.com/page-break/#advanced

    Here you can enter a custom CSS class for each page break. Question is how this will be rendered in the HTML code but this can give you an opportunity to catch clicks on Next buttons using the click listeners inside GTM. Using this, you can create one more more trigger that catch clicks on Next buttons and attach GA pageview tag(s) to those trigger(s) to fire a virtual pageview.

    Does this answer your question?

    Thread Starter jaredmaxsnider

    (@jaredmaxsnider)

    THANK YOU! This was the breadcrumb that led me to a solution. For others with a similar question what I did was add the class to the Page Break (which appends a class to the wrapper for the GravityForms form step) and set Google Tag Manager as follows:

    My CSS Selector after setting the Page Break class:
    .gform_page.page-break-class input.gform_next_button

    Accompanying Google Tag Manager trigger:
    Click Element Matches CSS Selector .gform_page.page-break-class input.gform_next_button

    Thank you again @duracelltomi !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tracking virtual pageviews?’ is closed to new replies.