Hostname in Google Anyltics Push

This article explains how to add the hostname to the google analytics expert push.

Why would I do this?

A lot of google analytics properties are set up with a filter to remove all events where the hostname is empty or not equal to the website's one.

This could lead to lost call events and therefore should be prevented.

How to set the hostname up?

To setup the hostname in my push I open the control panel and navigate to "Configuration" -> "Integrations 2.0" and pick my analytics push.

After selecting the push I see a modal which asks me whether I want to link the push or to edit it. I pick "edit". 

In the push configuration I select the get parameter "dh (Document Host)".

After clicking the magnifying glass icon the DDD Viewer opens as modal and I pick the hostname with "LASTNOTEMTPY" attribution.

After that I click the "add" button and save my push configuration.