Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Move tracking snippet to top of page and load async #476

Merged
merged 1 commit into from
Mar 21, 2017

Conversation

carl-mastrangelo
Copy link

This has two main benefits:

  1. The tracking snippet needs to be in in order to use
    Google Search Console, which is the only way to see what
    search terms ended up directing users to grpc.io. Without it,
    the search query shows up as the infamous "(not provided)".

  2. Page loads are faster. The analytics page suggests
    putting it in the . Also, it suggests page loads are
    faster if using a modern browser. Checkout our Google
    Analytics for grpc.io shows an overwhelming number of users
    with Chrome, Firefox, Safari. For IE users (a small percent),
    most are using version 11 which supports async js.

cc: @LisaFC

This has two main benefits:

1.  The tracking snippet needs to be in <head> in order to use
    Google Search Console, which is the only way to see what
    search terms ended up directing users to grpc.io.  Without it,
    the search query shows up as the infamous "(not provided)".

2.  Page loads are faster.  The [analytics][1] page suggests
    putting it in the <head>.  Also, it suggests page loads are
    faster if using a modern browser.  Checkout our Google
    Analytics for grpc.io shows an overwhelming number of users
    with Chrome, Firefox, Safari.  For IE users (a small percent),
    most are using version 11 which supports async js.

[1]: https://developers.google.com/analytics/devguides/collection/analyticsjs/
@jtattermusch
Copy link

LGTM.

@ejona86 ejona86 merged commit 944422d into grpc:master Mar 21, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants