Avoid Google Analytics 307 Internal Redirect

I was just tinkering with GA and spotted Internal Redirect in Network tab of Chrome Dev Tools

307 internal redirect

Changing http to https solves it.


Author: Michal Zuber

Full stack developer, biker and rollerblader. Owner and developer at https://nevilleweb.sk/ Co-founded http://neville.sk/ Blog at https://michalzuber.wordpress.com/

7 thoughts on “Avoid Google Analytics 307 Internal Redirect”

  1. What if GA script is sent with GTM and you cannot change http to https?
    Or is there a way to change within GTM http to https for the google-analytics js?

  2. Hi You can use GA function

    _gaq.push([‘_gat._forceSSL’]); for GA classic
    ga(‘set’, ‘forceSSL’, true); for Universal analytics

    to explicitly command the GA to create all its request for HTTPS protocol regardless of the protocol of hosting site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s