- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
12-07-2022 05:31 AM
Hi there,
simple question :
It's possible to insert a variable as a parameter of base url in Generic Tag? Not as a query string and not editing the template.
If i used @@variable@@ it returns a variable like query string
I would like something like this:
site.com/v1/tag/@@variable@@/
Thanks in advance
Solved! Go to Solution.
12-08-2022 08:17 AM
@die_rnd From the docs:
This tag supports dynamic value substitution, which allows you to reference data layer variables directly in the Base URL, HTTPS URL, or Query String configuration fields.
12-09-2022 12:38 AM
Hi @TealiumJustin thanks for the answer!
I had read the documentation but if i use my variable surrounded by @@ it returns a query string in my base url.
Instead using attribute as a prefix it an empty string. Like this:
12-09-2022 03:04 AM - edited 12-09-2022 03:05 AM
12-09-2022 07:37 AM
@die_rnd All data mappings are added as query string parameters. Your first configuration was correct, but because the variable was also mapped, it appeared in the query string. I updated the documentation to clarify the behavior of mappings.
12-09-2022 07:43 AM
12-12-2022 05:55 AM - edited 12-12-2022 06:17 AM
Hi @TealiumJustin i have another doubt!
I had to change the type of extension. Now the situation is this :
So, i have solved removing the prefix js_page on tag configuration and renaming the variable.
Sorry @TealiumJustin for numerous answers, so i hope it will help for everyone.
Thank you
Copyright All Rights Reserved © 2008-2023