Mobile app version of vmapp.org
Login or Join
Berryessa370

: Can Google Analytics code snippet be placed in the footer rather than the head on Angular sites? As per common practice, UA-codes should always be placed on head section of the website. But

@Berryessa370

Posted in: #AngularJs #GoogleAnalytics

As per common practice, UA-codes should always be placed on head section of the website.

But in this case, our web developers would like to place the ua-code on the footer of the site coz "it's an angular site".

Does placing the UA-code on footer of an angular site works like a normal site that has the UA-code on the head section?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

You won't be able to get some features, such as real-time reporting, or Google Webmaster Tools verification, unless the code sits within the <head>. The whole point of the asynchronous code is that it loads and works while the rest of the page is loading. There is no UX risk from placing it within the , and it is best-practice to do so. source: Google Analytics Support

When troubleshoting Google Analytics, the most common tracker setup mistake and the first thing to verify is if the code is right after the tag. source: Google Analytics Support

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme