Mobile app version of vmapp.org
Login or Join
Sherry384

: URL fragments (hash) append to page title automatically I am facing an issue (in IE): my url fragments (hash) will automatically add to the page title in my pageview (dt), but it only happens

@Sherry384

Posted in: #GoogleAnalytics #GoogleTagManager #InternetExplorer

I am facing an issue (in IE): my url fragments (hash) will automatically add to the page title in my pageview (dt), but it only happens in IE.

I have used the setTimeout as below, but the pageview still has fragments in the title, but the virtual pageview will not have this issue, yeah, only the first pageview.

$(window).load(function(){
setTimeout(function(){
window.document.title = MetaData.meta.title;
}, 1000);
});


I am trying to determine if I can overwrite the default page title value in pageview or not. If it can, how?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sherry384

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

Yes, it's possible to overwrite the page title. You just need to write a JS function to parse the title string (eg. split by #) and then to return that value into the "title" field in GTM:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme