Google Tag Manager Parse Error. Primary Expression

前端 未结 2 901
花落未央
花落未央 2021-01-22 04:25

I am trying to save this Custom Javascript Variable within Google Tag Manager and return this error each time:

Error at line 2, character 4: Parse error. primary express

2条回答
  •  忘掉有多难
    2021-01-22 04:56

    To fix the issue in Google tag manger, I simple re wrote the code to be :

    function() {
      return document.querySelector(".no-display > input[name=product]").value;
    }
    

提交回复
热议问题