Hi guys,
Have any of you ever encountered this problem?
Thanks
Hi. Did you set up any Variables in your Tag Manager? Can you show your current setup?
The first function does not look correct. How are you passing the URL? Instead of passing it as argument, you could simply define it inside the function via {{ Page Url }} or window.location.href.
Just noticed one more thing. You should not define names for those functions. Use just:
function() {
// your logic here
}
Thanks Kuba, I solved the console error message for the second function by using the DOM element variable from Piwik instead of the JS function even though the function works to get rid of the error. No more errors thanks again and this topic can be closed.