I added a history change on a multi page form which is working correctly
To view go here:
https://devmaidbrigade.wpengine.com/tn/nashville/bq/start/
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
})