Code Checking in Code Editor

thebenrobb

Employee

15-08-2017

From SarahEOwen

I REALLY, REALLY like in DTM that when I make a silly mistake - like forget the ending " in my console.log() in the below screen shot - that I am warned and notified of the line of code that is causing an issue (see screen shot 1 below).

But, it looks like this wonderful feature is not in Launch (see screen shot 2 below)

Screen Shot 1 :: DTM Saving Me

1279599_pastedImage_0.png

Screen Shot 2 :: Launch Not Saving Me

I put the same typo here -- missing the closing " in my console.log() -- but there is no warning. I can save this action and then save the entire rule.

1279600_pastedImage_9.png

6 Comments (6 New)
6 Comments

jimbSprint

21-08-2017

We wrote a Chrome plugin to do better syntax and code checking in DTM.  I was hoping to retire it with launch, but the current editor needs a lot of improvement, most notably Sarah's request to do syntax checking at the very least.

Also, those of us who have obtained a certain level of maturity would REALLY appreciate the ability to make the font less tiny.

jeromerichard

22-08-2017

Would much prefer the code validation occur in the code editor itself, rather than fail on build - we get errors, but at that point i or another user might have made a heap of changes, so tracking this down will be challenging, especially as the message in Chrome seems to go beyond the screen, see screenshot below.

Please, please add code validation to the custom code console

1284069_pastedImage_0.png

lisab93192642

30-08-2017

So agree here!  Highly complex tools such as Tag Managers are often intimidating to "non-coders" and Business Users.  It took me over a year to get my division to use Ad Hoc/Discover and the balance of the company refuses to use it because it appears to convoluted.  The beauty of DTM and Launch is that a Business User should be able to easily employ the tool.  If the script does not fail until build, the troubleshooting could be extremely time consuming for the implementer, and DEV resources can be difficult to come by.  I say this as a non-coder myself.

SarahEOwen

16-09-2017

Aaronius9er9er9er​ you are AMAZING!!!

There are real-time checks:

1300194_pastedImage_0.png

There are warnings that make me a better coder:

1300195_pastedImage_3.png

And I'm sure you have more goodness in there for us too!

THANK YOU SOOOOOOOOOOOOOOOOO MUCH

brandon_pack

Employee

13-10-2017

This has been released to the Beta Environment.  Great suggestion!  Thanks for help us improve the product.

msawlor

23-07-2018

You can turn this feature "off" using comments around your custom code. 


/* jshint ignore:start */


//Code which causes warnings you don't care about here

/* jshint ignore:end */