GTM data layer eventCallback function

后端 未结 4 587
猫巷女王i
猫巷女王i 2021-01-07 01:59

So i have Ecommerce code setup in GTM data layer, but after that is sent to Analytics i want the page to be redirected so i know i should be using eventCallback but it is no

4条回答
  •  误落风尘
    2021-01-07 02:06

    i think i found a solution, i just added this ('event' : 'datalayerReady') at the end of the data layer:

    'event' : 'datalayerReady',
    'eventCallback': function() {
      document.location = "https://www.paypal.com/something";
    }
    

提交回复
热议问题