tag-manager
tag-manager copied to clipboard
Make pre-configured Variables fully configurable
When selecting a default variable like {{ClickDestinationUrl}}
there is no way to edit the configuration as allowed by the Advanced Settings available to custom variables. The option to assign a default value and lookup tables to pre-configured variables is not provided.
For example, say I wanted to convert the destination URL to a social media name using a lookup table...
This is currently not possible with pre-configured variables, nor is there a way to use variables like
{{ClickDestinationUrl}}
which are associated with actions as custom variables. In other words, no such option exists when choosing from custom variable types...
Hi @9joshua . Thank you for taking the time to create this issue. You're talking about the pre-configured variables, right?
It seems like being able to use them right out of the box without any configuration is kind of the point, so I don't know if we're going to change that.
That being said, I believe there's an option. You could create a Custom JavaScript variable, use a JavaScript Function like function () { return {{ClickDestinationUrl}}; }
, and then use the advanced settings as you mentioned.
Thank you @snake14
Your solution does work...
I think being able to extend pre-configured variables without the need to use custom JavaScript variables would be useful. I understand the simplicity of having pre-configured variable, but it would be great if, optionally, they also had flexibility. Your solution does this, it is just not clear how it can be done without an explanation. I can create an FAQ for this, but still hopeful we may be able to have the option for advanced settings for pre-configured variables in the future.
Thank you @9joshua . A FAQ would likely be helpful if you get a chance to create one. I can leave this issue open and let the Product team determine whether it's something they'd like to prioritise.