jmpate / ot-cmp-gcm-template

OneTrust CMP Template
Apache License 2.0
2 stars 4 forks source link

Use EncodeUri() if part of the URL path or EncodeUriComponent() if used as a URL parameter #1

Open philpott opened 2 years ago

philpott commented 2 years ago

https://github.com/jmpate/ot-cmp-gcm-template/blob/94c333a0642b1f7ba00442df40662548bfafc5f9/template.tpl#L143

When reviewing your template we've noticed that it is using parameters to build a url. It's a best practice to use [EncodeUri()](https://developers.google.com/tag-manager/templates/api#encodeuri) if part of the URL path or [EncodeUriComponent()](https://developers.google.com/tag-manager/templates/api#encodeuricomponent) if used as a URL parameter.