Campaign parameters are lost when HTTP is redirected to HTTPS
ID:
Fixed
Published on 8/16/2017
•
Last update on 12/31/2019
Summary
Redirecting HTTP to HTTPS removes parameters not recognized by VTEX.
If a store with a URL (in HTTP protocol) indexed in external sites (Facebook, Google, blogs etc), configures this URL to use the HTTPS protocol in VTEX, customers who access this link (in the external site) will be redirected, in VTEX, from HTTP to HTTPS.
This redirection removes unrecognized parameters (of the querystring) which are normally very important for tracking campaigns.
Update: problem solved
Using the new VTEX CDN, the original parameters are retained upon redirection between pages.
Simulation
- Create a directory (folder) to use the HTTPS protocol. Check out the article Changing the HTTP or HTTPS protocol for pages on the site on how to apply this setting.
- In the store, access this directory (folder) using the HTTP protocol and passing some parameter to the QueryString. E.g.:
http://{{AccountName}}.vtexcommercestable.com.br/blackfriday?gclid=123
- VTEX will redirect from HTTP to HTTPS, but the parameter "gclid" in the previous example will not also be redirected, i.e. the page will be loaded without this parameter.
Workaround
Modify the URLs in all the external sites, changing the HTTP link to HTTPS. Since in this case there will be no redirection, the problem will not arise and the parameter will be loaded correctly.