I don't think that code will work. Like Navarro said create the citation first, then copy the book's url from the browser address and paste that after the citation. If you want to get fancy you could make it pretty like this:
Author. ''[http:// url from address bar
then put a space
Title of book]'', city, state: publisher, date, page.
Example:
Balch, Galusha B. ''[https://books.google.com/books?id=Z7YwAAAAMAAJ Genealogy of the Balch Families in America]'', Salem, Massachusetts: E. Putnam, 1897, pg. 15.
It will look like this:
Balch, Galusha B. Genealogy of the Balch Families in America, Salem, Massachusetts: E. Putnam, 1897, pg. 15.