0
Declined

GTM: Place selected variable in the field where the cursor is instead of at the end of existing text.

Nick Guebhard 8 months ago in Tag Manager updated by Stéphane Hamel 7 months ago 3

This is the end goal:  


{{variable 2}} {{variable 1}}


If you have a variable in a field already, e.g. 

{{variable 1}} 

and then you want to add a variable into the field before the existing one where your cursor is:

| {{variable 1}}

when you select the variable you want to add, GTM doesn't insert the variable where your cursor is, it places it after your existing variable, e.g.:

{{variable 1}}{{variable 2}}

It annoys the hell out of me!

Answer

Answer
Declined

Ok, I see what you mean now. I'm afraid this isn't something I can fix easily and it's quite a marginal use case, so I will reject this suggestion for now and continue the work on additional features.

Under review

That's odd - I tried to reproduce the problem and I can't. If I type {{ it expands to show the list of variables, and when I pick on it ads it where my cursor is. I was even able to brake my code by inserting a variable mid-way into another variable.

I should have been more specific.  It's when I click on the lego brick and then it opens up the Variables screen and select from there.  Maybe that's the answer... type {{ and select from within the drop-down.

Answer
Declined

Ok, I see what you mean now. I'm afraid this isn't something I can fix easily and it's quite a marginal use case, so I will reject this suggestion for now and continue the work on additional features.