Hello,
To find the code you need refer to Google site http://www.google.com/analytics/ .
Royal theme is recognized by search engines.
How to add your site to search engines you can read here:
https://en.support.wordpress.com/search-engines/
Also you can refer to SEO specialists for more information.
Regards,
Eva Kemp.