How do I add the meta tag to verify my site for google analytics?

Here are the instructions to verify my site on google analytics:



I've tried putting this tag in a few places, such as in the banner, but it hasn't worked. Should I pursue another method to verify the site?
4 people like
this idea
+1
Reply
  • Hi Daniel,

    To install Google Analytics on your site:

    1. Copy your tracking ID (i.e. "UA-123123-1")
    2. On your site, go to Admin toolbar > Settings
    3. Paste the tracking ID in the tracking ID field
    4. Save



    The code should become immediately available, and Google Analytics should detect it within 30 minutes.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated kidding, amused, unsure, silly

  • I’m frustrated
    Hi,
    For some reason nothing similar seems to work for Google Webmaster Tools, not even the alternate verification method using Google Analytics. Probably we are not using the asynchronous tracking code or the code is not in the , or we have no edit permission for the Analytics web property. (Though if the latter is up to me to set up, I don't think I revoked my own permissions.) See https://www.google.com/webmasters/ver...

    Note that the recommended method of adding a specified HTML page does not work either, probably because the extra stuff breaks the verification, even if I created (as needed) http://scholar.harvard.edu/sandor/goo...

    Thanks for any help with this (and perhaps my other questions that are gathering dust lately),

    Laszlo
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • I’m anxious
    Also, the tracking code needs to be changed to use it with demographic and other breakdowns (if enabled in my GA account), please let me know when and how you or I can do this. Thanks!

    To implement Display Advertising features for Universal Analytics, insert the bold line into your existing tracking code between the 'create' and 'send' commands, as seen in this example:
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Can you elaborate a bit about what you are trying to do ? Why do you need to verify the site ? You could see most analytics in your google analytics page https://www.google.com/analytics
    Also, see http://goo.gl/njhbKy
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated kidding, amused, unsure, silly

  • Ferdi, I see you are still waiting for more details on the other thread too, after 8 months?! I hope I can be more useful.

    Did you check out the links I pasted? One is about linking my webmaster tools account with my GA account. That needs one more verification, and I could not get it working.

    The second update is about enhanced views of site visitors by demographics, interests etc, which requires newer code (though the link ominously says it is about display advertising).

    Can you let me know which link wasn't as helpful as it should? Thanks!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Joe (Official Rep) July 15, 2014 14:54
    We should consider some things:

    Would modifying the tracking code to capture more detailed demographics information obligate site administrators to modify their site privacy policies? If so, do we have documentation or guidance on how to add this information?

    Also, is capturing this information appropriate for this platform? What are the use cases for it?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • 1
    László, both links are useful.

    It would be helpful to understand what you are trying to achieve. Are you simply interested on "Demographics" ? That is the only thing I can see in google analytics that requires update in the code (as of July 15, 2014).



    Or you are trying to do something else ?

    Btw, it looks like the reason you cant verify you site with GA tracking code is because we are not printing ga code in the 'head' https://support.google.com/webmasters...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • I’m confused
    Joe, if I may (i.e. if it is not intended for internal team discussion and policy review), I think it is eminently useful for me to see how many senior faculty check out my personal site when I am on the job market, and how many of the visitors are anxious grad students obsessing with each other and the market. (Seeing here means guessing from age ranges, of course, nothing precise and personal.)

    I am a bit surprised if this would imply more stringent/embarrassing/controversial site privacy policies than most public websites. I would have thought everybody does this, apart from perhaps the EFF proudly opting out. Maybe some Law School people will want to opt out, or OK, maybe you want to make this opt in at Harvard. But why not that, at least?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • By the way, I had 7 questions in the last 5 days, I wonder what is the difference between ones that generate these impressively quick responses and the ones that do not. Maybe they are just not interesting or hard to answer. But if they go unnoticed for some reason, here is the link to all: https://getsatisfaction.com/people/la...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • 1
    Please correct me if I am wrong however I believe in order to activate the demographics feature in GA you need to have the capability to actually edit the GA tracking ID 'Script' in order to add events and / or customize it to collect additional information above the basic standard features built-in to GA.

    To enable Demographics you have to change your tracking 'script' to allow for 'display advertising' collection by adding the line item:

    ga('require', 'displayfeatures'); to the script,

    see below:

    this is from the following page: For Example, for Universal Analytics here: https://support.google.com/analytics/...

    Currently it appears that OpenScholar doesnt have the capability to display, imput or edit the ID Script, and only the UA-ID code can be entered.

    I think that in order to create demographics collection that the open scholar developers would need to engineer into the 'settings' page in open scholar, an additional field that people could add the full tracking 'script' so that it could be customized for various purposes.

    ideas ?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • OK, I see that this is a bit less innocent a change, and that people could object to the updated privacy policy.

    That said, if OS does anything about it, I still think it is enough to allow people to opt in, as the change is a standard one-liner (so they need to switch between two versions of the UA script). Allowing more customization is a different issue for another day, but it does require more coding.

    Also, I am not sure why OS did not upgrade to using UA anyway. There are no other benefits?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • dorian (Official Rep) July 22, 2014 16:51
    Hi Laszlo, That is a good question. We'll do some research.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated kidding, amused, unsure, silly

  • I’m thankful
    1
    Hi Dorian, Laszlo and others on this thread -

    To come full circle, i think Laszlo's original question for this thread was how to upload the Google verification code for Google Webmaster Tools in order that Google can verify that oneself is the actual site owner / administrator.

    When you visit Google Webmaster Tools, in order to gain access they require that one upload to one's site a .html file which contains a derivative of the following text:

    google-site-verification: google391c29btcf7q16d2Q.html

    you then click a 'verify' button in Google Webmaster Tools and Google then queries this file on one's site to verify that oneself has the administrative capabilities to edit the site, and then one is deemed a 'webmaster' ! and then get to use their toolbox.

    You can read more about it here - https://support.google.com/webmasters...

    The challenge for OpenScholar developers I believe, is that there is no functional way to upload a .html file to the site (import file function doesn't work and adding the code to a custom text / html widget doesn't work either, i tried.)

    The alternative is to add a meta-tag into the 'head' section of one's home page like this:

    meta name="google-site-verification" content="391c29btcf7q16d2Q"

    but you cant do this either in OpenScholar because there's no way for users to edit the backend HTML of the site.

    Long story short, many OpenScholar users such as ourselves would be eternally grateful to the OS Gods on High if they could jerry-rig a way that an administrator could verify the site with Google Webmaster Tools in order to make use of its powerful features. This is easy to do if your building a pure html website, but being unable to access the back-end code, were left to whatever options OS provides us.

    Google's Webmaster Tools is crucial for any developer whom is interested in understanding deeply, Marketing and SEO and how individuals participate and interact with content on their site.

    Separately -

    - Full Tracking Script - If there is interest by the OS developers here to work on this, adding an additional 'field' under the settings page that users could paste in the full Google Analytics tracking script (in addition to the already currently existing Tracking ID field) that was discussed above, to enable Event Tracking and Demographics would be a great. This is not possible with only the Tracking ID. https://support.google.com/analytics/...

    - Privacy - Yes there are privacy disclosures to be be made, the standard how-to here: http://hwp.harvard.edu/create-privacy... could be re-written slightly to explain that if collecting demographics 'insert the below 2 paragraphs' must be added to the privacy policy blurb, and then spell-out a clear example-sample that could be copy and pasted into peoples policy pages. I advocate for full disclosure, respecting people's privacy and informed consent is important. Here is the link to Google's requirement: https://support.google.com/analytics/...

    - Google UA - Yes lets migrate to Google's Universal Analytics, if possible. - https://support.google.com/analytics/...

    - Webmaster Tools Verification File - Yes lets add an additional field on the settings page to upload a Google Webmaster Tools verification .html file (after you upload it, it stays there, you dont remove it).

    Ideas ?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • dorian (Official Rep) July 30, 2014 20:44
    Thanks Brian, for your helpful post. I'm going to change this Question to an Idea under consideration.
    In summary, this ticket covers many things:
    1. ability to upload the Google verification code
    2. ability to have full tracking script 
    3. education to users about additional information to be inserted in privacy pages
    4. upgrade to Google UA
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • I’m anxious
    Great. Any chance to make a move on this before this year's academic job market opens?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • 1
    Here are instructions to help OS admins make the changes on the backend. I followed these instructions to get the Google Web Master Tools Meta tag option to work.
    https://www.drupal.org/node/1411428

    I changed these template.php files to get it to appear. Not sure which one was the one that did it.
    profiles/openscholar/themes/hwpi_basetheme/template.php
    profiles/openscholar/themes/os_basetheme/template.php
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi Michael,

    Did you do this in a Drupal 7 site assuming it could be done in Open Scholar or did you successfully complete this in an existing Open Scholar site ?

    if so, which Open Scholar website ?

    And how did you get access to the backend files to edit, update and replace ?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • 1
    Brian,
    Those instructions are for a site developer. You need direct access to the file system to achieve it. If you only have access to the web interface then you cannot get this done. Pass the instructions on to the people with the file level access.
    I have a standard OpenScholar site running on Drupal 7.
    Best,
    -Michael
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • 1
    Hi Mike,

    Thanks for offering up a solution. I think some of the OS developers are working hard on a few analytics upgrades and this may be one solution to help get them started.

    For the end users - I vote for a simple 'upload file' button to be created under the settings tab that users may upload their google webmaster tools verification file to verify their site. Somewhat similar to the Favicon upload field thats there currently.

    There are a number of other analytics topics the developers are working on, and your suggestion sounds like a great contribution twoards that end Michael.

    Any staff developers want to offer their thoughts on this topic ?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi Everyone,

    Just wanted to add that I'd like to be able to track outbound links on my website, which I can't do because I'd need event tracking capabilities as mentioned above. (Dorian, we talked about this in person a few days ago. I mentioned that I have a bunch of widgets with links to commonly-sought Harvard information, but I wasn't sure whether or not these links were actually utilized by visitors to my site.)

    Cheers,
    Jennifer
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi all,
    Here is a new thing that I would also try for my site, but it only works with verified sites.
    https://www.google.com/webmasters/too...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated kidding, amused, unsure, silly

  • Hi All,

    Is this still being actively considered? I have a user that's very interested in using Google Webmaster Tools with their OpenScholar site.

    Thank you for all your great work. :-)
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated kidding, amused, unsure, silly

  • This reply was removed on 2016-07-25.
    see the change log
  • This reply was removed on 2017-03-06.
    see the change log
  • This reply was removed on 2017-03-06.
    see the change log
  • This reply was removed on 2017-04-24.
    see the change log
  • This reply was removed on 2017-05-30.
    see the change log