diff --git a/posts/drafts/remove-tracking-params-from-links.md b/posts/drafts/remove-tracking-params-from-links.md index 3a7c6f6..b91ea11 100644 --- a/posts/drafts/remove-tracking-params-from-links.md +++ b/posts/drafts/remove-tracking-params-from-links.md @@ -206,6 +206,319 @@ parts of a url: })(); +## Understanding Query Parameters + +Query parameters are the part of a URL that comes after the `?`. They consist of key-value pairs that pass data to the page. Let's break down how they work: + + + +
+
+ ?size=medium&color=light%20blue&utm_source=facebook&fbclid=abc123xyz +
+ +
+
Structure
+
+ + ? Delimiter + Marks the start of query parameters in a URL +
+
+ + Key + The name of the data being passed +
+
+ + = Assignment + Connects each key to its value +
+
+ + Value + The actual data being passed +
+
+ + & Separator + Separates multiple key-value pairs +
+ +
+
Parameters in this example
+
+
+ size=medium + Useful parameter — tells the page which size to select +
+
+ color=light%20blue + Useful parameter — tells the page which color variant to show +
+
+ utm_source=facebook + ⚠️ Tracking parameter — tells the site you came from Facebook +
+
+ fbclid=abc123xyz + ⚠️ Tracking parameter — Facebook's click ID to track your activity +
+
+
+ + + explain what each part does explain why a website would want to use query parameters