Highlighted

JavaScript-Code Extension

Silver Contributor
Silver Contributor

Hi everybody,

 

I'm trying to do a little testing and debugging and stumbled upon the JavaScript Code-Extension. Before doing more sophisticated things with it, I just wanted it to send a little message. So I set the scope to "All Tags", added no condition and simply put a "console.log('Test');" in the code field. I was expecting it to send the string "Test" to the browser's console but it didn't. Am I missing something or am I using the extension in the wrong way?

 

Thanks and best regards,

 

sangmister

2 REPLIES 2
Highlighted

JavaScript-Code Extension

Silver Contributor
Silver Contributor
Sorry - I was a bit too impatient. After a few minutes, it worked. Seems as though functions are not really available right after klicking "save".
Highlighted

JavaScript-Code Extension

Tealium Employee
Any changes you make can take up to 5 minutes to be available in your site. This is due to the Multi-CDN architecture we use at Tealium:

https://community.tealiumiq.com/t5/Getting-Started/The-New-Multi-CDN/ta-p/13701