• If the website buero-albers.de is called up for test purposes with the UTM parameters? utm_source = test & utm_medium = test, the page view is correctly assigned in the real-time view of Google Analytics (Universal Analytics, integrated via the Google Tag Manager). If events are triggered on this page, they are also assigned correctly.
    If I change to one of the sub-pages via a menu item, events triggered there are assigned to the source (direct) / (none). The attribution to the original source / medium is apparently lost with this change.
    In order to exclude sources of error in tracking, a completely new GTM container was created in which only universal analytics and a generic click trigger were used. Cookie consent can thus be excluded as a source of error. The Buttonizer plug-in was paused for the test scenario.

    By switching to one of the other pages, the information on the source seems to be lost in the event of an event and is always evaluated as a direct call.

    Perhaps you still have ideas or hints as to what could cause these errors in the current configuration?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t believe this is an error but expected behaviour.

    When you move to a new page the utm parameter are lost. this is the way web pages work.

    There are a variety of ways of adding them back on, but personally I have not tried any as it hasn’t been an issue for me.

    A couple of ideas for solutions spring to mind
    1. use htaccess to rewrite parameters
    2. use javascript to detect and add back parameters

    Moderator bcworkz

    (@bcworkz)

    A menu pick is a direct call, so there should be no expectation that earlier parameters would be inherited. If you want them inherited anyway, they have to be passed in some way to the new page. One way to do so would be through one of the filters applied in wp_nav_menu(). Add the current parameters to all child page links in the menu. Other ways to pass values between requests is by saving them to a cookie or PHP session variable. The GTM code then needs to be modified to grab the values from where they were stored or set by PHP in the new page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Analytics’ is closed to new replies.