I am trying to set a top-up event on each stage on the funnel . This is my code below. I saved the extension to Dev and tested but can see no result. Could someone have a look and tell me what can be wrong.
Not sure about tagging_page var. I can see it in the UDO but it is not in the data layer in the Tealium interface. I guess it should be a default var...
//SET TOPUP_EVENT FOR CHECKOUT FUNNEL
if(a === 'view'){ //Ensure it's not a link
if(b['dom.pathname'] === '/fast-payment/'&& b.tagging_page === landing_ctn-check){
b.topup_event = 'Topup Start';
} else if(b.page_name_full === 'personal > My Account > Top up > fast-payment > topupinput'){
b.topup_event = 'Topup Input';
} else if(b.page_name_full === 'personal > My Account > Make Payment > fast-payment > parenttcc > fa=action_tcc_intermediate'){
b.topup_event = 'Topup Checkout';
} else if(b.page_name_full === 'personal > My Account > Make Payment > fast-payment > paymentconfirmation > fa=action_tcc_response'){
b.topup_event = 'Topup Preconfirmation';
}
}