Highlighted

How can I create a Data Source for a query string parameter that contains an hypen in its name?

Silver Contributor
Silver Contributor

I need to read a query string parameter called "bl-retailer" but TealiumIQ won't let me create a Data Source because the hypen is not a valid character.

 

How I can work around this limitation without asking web developers to change the parameter name?

 

2 REPLIES 2
Highlighted

How can I create a Data Source for a query string parameter that contains an hypen in its name?

Employee Emeritus

@giacomo_ritucci

Here is how I would get around this.

1) Create a Data Source called bl_retailer

 

tmp-dash-1-20160113T224355.png

 

2) Add a Set Data Value Extension to pull in the value.

b['qp.bl-retailer'] || '';

dash-2-20160113T224624.png

 

By using JS Code, you can pull the value from the Tealium JSON object and by scoping bl_retailer to Before Load Rules, you can use it in Load Rules as well as any ohter extensions or tags.

 

Let us know how this works out for you.

 

Brian

Highlighted

How can I create a Data Source for a query string parameter that contains an hypen in its name?

Bronze Contributor
Bronze Contributor
not sure if this is still applicable, running into a similar issue?.... but instead of data source. i'm needing to create a udo variable for qp./resort-listing?partnerid
can i use the steps outlined above?