How do URL-parameters work?

Let's start with a simple example everybody knows:

https://www.google.com/

The URL can be broken into several different elements:

First element: The Protocol

The protocol determines how your web browser should communicate with the web server when fetching a web page. The most common used protocol is http which stands for 'HyperText Transfer Protocol' - http://

If we want an encrypted connection we use 'HyperText Transfer Protocol Secure' - in other words https:// (notice the additional 's' added to the http).

Second element: The Domain name

A domain name is a unique reference that identifies a specific web site on the internet. In this case: www.google.com. The domain name tells us which server is being contacted with the request.

URL Parameters

Now, Parameters are snippets of information found in the query string of a URL. An example could be adding a parameter to Google. Like this

https://www.google.com?q=facebook

We have added the parameter 'q' and set it equal 'Facebook'.

The first parameter is always described with a question-mark (?) and then ParameterName=Value.

In this case the ParameterName is 'q' and the value is 'Facebook'.

When we load the URL:

https://www.google.com?q=facebook

It tells Google to pre-populate the search field with the search-term 'Facebook'.

Give it try and see what happens.

Therefore, we can actually send information to the website about who we are, what to do, or whatever comes to mind, using URL parameters.

We can also add second, third or fourth parameters by separating them with an ampersand-character (&), so they can be understood individually.

Example:

https://www.google.com?q=facebook&Type=SocialNetwork

With this example we are sending two parameters to Google when the page is requested:

q=facebook

Type=SocialNetwork

However, Google will ignore the second parameter since it isn't Google-approved. 'Type' is made up as an example.

In other words:

We can ship any type of parameter to any website - but we can't force the website in question to process or save the parameter. So it is important to use only approved parameters and in an accepted format!

So the next time you see something like this:

www.MyURL.com/?utm_source=Newsletter10&utm_medium=Email ...

...it is actually someone using URL-parameters to send information into Google Analytics.

Google Analytics accepts parameters named utm_****

In this example three parameters is being shipped to the website www.MyUrl.com/

utm_source=Newsletter10

utm_medium=Email

It tells Google Analytics to store information about the origin of any person clicking the link.

- For example that they got the link from Newsletter10 and the medium used was 'email' 

Pretty clever.

We use the same method when requesting tracking-pixels.

We add t-codes to tell the system what project the impression data should be associated with?

And we use cache-buster parameters to ensure that each impression is logged.

 

 

 

How did we do?

Getting started with AudienceReport API

How often will I be asked to log in through the two-step verification process?

Contact