History Change in multiform not being detected in GTM

I added a history change on a multi page form which is working correctly
To view go here:
Type in 37013

However when I go to GTM to test the trigger with the condition the gtm.historyChange event is not met
FYI - This gtm.historyChange event does get triggered when using the old custom CF7 forms

I think it’s something with gform_post_render

jQuery(document).on('gform_post_render', function(event, formId, currentPage) {

    //...Works Correctly
    if (Number(currentPage) === 2) {
        history.pushState({}, null, createNewUrl('home-config/'))
    if (Number(currentPage) === 3) {
        history.pushState({}, null, createNewUrl('result/'))
    //...More Code

in order to get this working I pushed to the dataLayer

    if (Number(currentPage) === 2) {
        window.history.pushState({}, null, createNewUrl('home-config/'))
        window.dataLayer = window.dataLayer || [];
            'event': 'gtm.historyChange'

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.