Questions on query paramaters

Mar 4, 2021 6:37 AM
Link to Post

Thanks for the question Ekanem Paul Ekanem,

Short answer: there's nothing that needs to be done, but it's a good idea to use GA or , if you have access, your web server's access logs to ensure that facebook is rendering the variables in your query string correctly

Pro tip - these days i am using the following in all my campaigns: utm_source=fb__{{site_source_name}}{{placement}}&utm_medium=cpc&utm_campaign={{}}{{}}&utm_content={{}}{{}}&utm_term={{}}{{}}

Detailed explanation:

URL parameters are a standard means of adding variables to the URL by appending to "key value pairs" to the "query string"... Lets break this down a little

A url is structured like protocol://username:password@subdomain.domain.tld/path/to/file.extension#hash?key1=value1&key2=value2

In our case: āš” Protocol ā†’ will be https (Hypertext Transfer Protocol Secure) ā„¹ this is the "language" the web browser talks to the web server with ā„¹ we should always use HTTPS, and redirect http to https with a 301 redirect by our web server

āš” username:password@ ā†’ basic auth ā„¹ many protocols (https, ftp, ssh, etc) accept username login details via "basic auth" - this 1990's hack can come in handy for restricting access to files without, say, building out a whole authentication system.

A 2021 basic auth example: We wrote a script transforming a supplier's inventory API to a custom CSV format, to be automatically imported by our client's e-commerce platform, daily. To secure these sensitive files, we simply added basic auth and used the url with the username and password embedded.

āš” subdomain.domain.tld - this is a standard address that gets routed an IP address