So i currently have the authorization for the embed api in another file that's path is specified into two script tags in the html header. The authorization part I just turned into it's own function "authorizeUser()" (js), and when the body of the page loads, I initiate the activate user and it works fine for my stats page. Now for this page, where I'd like to insert new web properties, I changed the scopes of the gapi.analytics.auth.authorize() like your post said to, and still put its path in between <script> tags, then when the body loads, i expected it to the authorize the user by the same mechanism. Furthermore, I created a button on this new page, where when you click it, it activates the function "insertProperty(accountID, url, name)". (For now, I hardcoded these parameters into the function just to see if it would work, but later i would expect them to fill this in previously and then it will automatically be passed to the function as variables stored). When the button was clicked though, I saw no change on my GA account for a new web property. Any suggestions? One thing I was not so sure about when coding this for the first time was the format the url should be in, because if I use
http://example.com, the // in javascript is the signal to comment, and appropriately comments out the rest....
Sorry for the late response.