Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stief Dirckx 43 posts 76 karma points
    Sep 17, 2013 @ 16:20
    Stief Dirckx
    0

    Surface controllers and GA funneling

    On our website we have several services that visitors can use. Each service consists of several steps and we want to monitor these steps using GA funneling.

    To set up the funneling each step has to have a unique URL for Google to track. With each URL you can monitor on which step you loose visitors in the process.

    We developed each service using a surface controller. This is a sample:

    1. Start: website.com/startservice/
      This is a regular doucment using a specific template
    2. Select item:  website.com/startservice/category-4/
      The user selected a category to filter the data
      This is an altTemplate on the previous document
    3. Register:  website.com/startservice/
      The user selected an item and has to register to get it
      This page is rendered using a surface controller action calling a view
    4. Confirmation:  website.com/startservice/
      After registering the user gets a thank you message on the initial start page
      The surface controller uses RedirectToCurrentUmbracoPage to return to the initial page and the message is added to the TempData object

    As you can see, steps 1, 3 and 4 all have the same URL so GA can't see any difference between these steps.

    Any ideas how to make these URL's unique between each step?

    Is this an alternative for RedirectToCurrentUmbracoPage? In the source code of this function so much is done I'm not realy sure it would be this simple.

    return Redirect(string.Format("{0}?confirmation", CurrentPage.NiceUrl()));
  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Sep 17, 2013 @ 17:21
    Ali Sheikh Taheri
    0

    how about adding a query string like step=1 and so on? I think GA will count them as different stage.

    and the return would be something like this:

    return this.Redirect(CurrentPage.Url + "/?step=2")
    
  • Stief Dirckx 43 posts 76 karma points
    Sep 17, 2013 @ 20:57
    Stief Dirckx
    0

    That's what I thought also, that could be a solution for the 4th step.

    But what about the 3rd step? That's being called by a action returning a view. Don't know if i can add paramters to that.

Please Sign in or register to post replies

Write your reply to:

Draft