Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Page won't load after snippet insert

I just installed the code for Google Analytics through an HTML snippet in iWeb, which i put on each page then published the site. But after i did so, my website won't load at all, and i cannot figure out why. Any ideas?

Posted on Mar 12, 2013 2:20 PM

Reply
10 replies

Mar 12, 2013 2:53 PM in response to Wyodor

Hmm, that's interesting, how did you gather that? This actually has happened before the more i think about it, i hope it won't be for too much longer because i would like to setup Analytics more. Do you think if i upgrade to my own domain it would help with this or no? But for the time being, until i do my own, is there anything i can do? I did support a helpdesk ticket with them

Mar 12, 2013 3:00 PM in response to Wyodor

Well, here's the HTML Snippet with your code :


http://mkstudios.comxa.com/MK_Studios//Home_files/widget2_markup.html


Google will analyze the widget page, not the page you ceate in iWeb.


Use my method or change the lines in the code by adding the word parent :


var ga = parent.document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == parent.document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = parent.document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

Mar 12, 2013 3:10 PM in response to Wyodor

How did you get into my page to know where the widget was? I still can't get in via Cyberduck to change anything. I did find add the parents onto the sections you said to, but do i add that to each page, or jsut the home page? I do have another Google ID file in there outside of my public_html folder, but that's for the Google webmaster tools.


Since you have a site through them too, does this ever happen to you? Looks like iWeb won't connect to the server so this won't be up and running until this fixes itself, i wish there was something i could do.

Page won't load after snippet insert

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.