But here is what I am trying to figure out right now:
So, what I have done in my .WBS file, in my WB project, just now is gone to the page of my website called
"masterpage1"
This page is set to NOT PUBLISH, but it is a "Master Object" that is called on every page of my website. So I now went to that Page, and, using the top-ribbon, I clicked
"Page" >> "Google Analytics" >>
I cleared out the line that says
"
Code: Select all
<!-- Insert Google Analytics code here -->
there, and simply pasted the Google Analytics code for my property, that I get when I log in to Google Analytics and click
"Options" >> "Tracking Info" >> "Tracking Code"
And literally just copy/pasted that entire snippet in place of the
"
Code: Select all
<!-- Insert Google Analytics code here -->
I then went to that same "masterpage1" and deleted-out the old way I was doing it, where I was using an HTML object to paste the Google Analytics snippet in an "HTML Object", on the page, in WB.
Then, I published my entire project, meaning, re-published every page of my website that calls the "masterpage1" page *which is set to not-publish* , but which also follows that method that @ColinM told me, which had me put the snippet into the Page >> Google Analytics location.
Am I to expect this is the best way to do this?
Because now, when I am in my .WBS file, and I now go to the individual pages of my website, and I use the top options
Page >> Google Analytics
Certainly, those all still say
"
Code: Select all
<!-- Insert Google Analytics code here -->
since I was thinking that @ColinM was saying that I only need to do it in the one spot, in the "masterpage1" Page >> Google Analytics spot?
Under this setting, when I visit my pages right now, I am not seeing myself show up as "Live Traffic", like I was, previously, whenever I was using an HTML Object on every page, to have the Google Analytics code.
Are my two options:
1) either now start publishing "masterpage1" Master Object, since it now has this Google Analytics Code in the Page >> Google Analytics location?
2) keep not-publishing "masterpage1" Master Object, but then go through and Manually paste-in the Google Analytics snippet one-by-one, page-by-page, doing the Page >> Google Analytics option for every page of the website?
Or is there something else I am missing?