1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

URL with # in it

Discussion in 'Google Analytics' started by Josefin, Dec 30, 2016.

  1. #1
    Hello!

    I have a page where we have # in some of the URLs, when adding a UTM-tagging on the URL the data is not registrered correctly in GA.

    Example:
    URL: domain/bilar/car1#bygg?utm_source=facebook&utm_medium=social&utm_campaign=campaignDec16

    In analytics it's registred as:
    /bilar/car1#utm_source=facebook&utm_medium=social&utm_campaign=campaignDec16
    SEMrush
    So it seems like the # makes the GA-tagging incorrect.
    Any idea?
     
    Josefin, Dec 30, 2016 IP
    SEMrush
  2. Dana C. Beck

    Dana C. Beck Active Member

    Messages:
    152
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    63
    #2
    Yes I've seen this problem before. Here is Google's solution:
    "The answer is Google has provided a syntax for working around this problem. It’s known as the “hash bang” syntax. By putting an exclamation point immediately after the hash sign, you're telling Google that the fragments are not used for traditional scroll positioning but instead for loading separate content variations that should be crawled. Remember, if you’re not using this special syntax, analytics reporting systems like Google Analytics may not be configured to track clicks on fragment links in your site. To ensure tracking works, either structure your content with distinct URLs or configure your Google Analytics code to also track fragment clicks."
    If you want to see the whole article, you can go here: https://www.oho.com/blog/explained-60-seconds-hash-symbols-urls-and-seo
    Enjoy!
     
    Dana C. Beck, Dec 30, 2016 IP
  3. SEO.Student.15

    SEO.Student.15 Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #3
    Awesome! thanks for the sources
     
    SEO.Student.15, Jan 2, 2017 IP
  4. Dana C. Beck

    Dana C. Beck Active Member

    Messages:
    152
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    63
    #4
    You are most welcome, glad I was able to help.
     
    Dana C. Beck, Jan 13, 2017 IP