Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Mitch Fanning
Mitch Fanning
3,253 Points

GA tracking code not detected on my Amazon s3 hosted site

  • I have a working static site hosted Amazon s3.

  • I've called the primary bucket "www.mysite.com" and have a secondary bucket called "mysite.com" which is being redirected to my primary.

  • My "naked" domain is currently being forwarded to: www.mysite.com with a 301 redirect (forward only) via Godaddy (I've tried fwding to s3 endpoint and it doesn't work)

  • I've also set up a CName (alias). Host name: "www" pointing to my amazon endpoint "mysite.com.s3-website-is-east-1.amazonaws.com"

  • I've added the GA Tag Manager code just after the <body> tag in all of the pages I want to track and have properly configured a tag in Google Tag Manager.

  • I've also waited 24 hours and GA still says my GA code in not installed.

I've searched the web and haven't not come across anything helpful other than this post on stackoverflow http://bit.ly/1nXpRT1.

I have a feeling the issue is with the godaddy and the redirect (the middleman) but I've tried every scenario I can think of and nothing seems to work.

Can it be done?


I'm not quite sure if you can track pages with GA on pages that are forwarded. Is it possible to provide a link? Also, I would go with an A name record over CNAME.

1 Answer

The only thing I can suggest is to maybe compare your setup to this tutorial.