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 So it seems like the # makes the GA-tagging incorrect. Any idea?
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!