Frequently Asked Question #307. How do I use Google Analytics and Google Webmaster Tools with my journal?
Please note that verification code approval from the search system can arrive after some time (normally less than a day, mostly just several hours). Your account must be available for search systems indexation, in other case the meta-tags will not be found in the code of your journal's pages and you will not be able to verify your membership in the affiliate program.
Every LJ user regardless of their account type can adjust Google Analytics to his or her journal. If you want to implement Google Analytics in your journal or community, you need to use your Google Analytics account. If you do not have one yet, you can read instructions about how to get it here. Google Analytics functions by having LiveJournal include a small script on each journal page for which statistics are tracked when the user has enabled this feature. The script appears on all pages under your subdomain (exampleusername.livejournal.com for a user named "exampleusername"). This includes, but is not limited to, your journal, your profile, your friends page, and individual entry pages in your journal (including Friends-only and Private entries). Such personification is enabled by the «web property ID». You can read more about it at Google Support.
LiveJournal automatically implement the tracking code in each page of your journal or community. All you need to do is indicate your web property ID (you get one from Google Analytics) in your Account Settings. [Implementing Google Analytics] Implementing Google Analytics
Create a new profile for your journal in Google Analytics account settings, indicating its address in «site URL» field: (https://exampleusername.livejournal.com).
Get a «web property ID»:UA-XXXXXXX-YY.
Go to the «Extensions» tab of the Account Settings page. If you are implementing Google Analytics for a community with Professional package of service, you should firstly switch to the community's account: you should choose this community from the dropdown menu in the «Work as user:» field and press «Switch».
Enter the web property ID «Enter your web property ID obtained from Google» and save changes.
You can make sure that the data collection is going on by doing this:
Log in to your Google Analytics account.
Open the "Reports" section.
In the reports list choose "Real time" and then "Browse".
Open any page from your journal in the new tab.
Go back to the Google Analytics reports and make sure your visit was recorded.
Press «Add site» and enter your journal's address (https://exampleusername.livejournal.com).
On the next page choose «Alternative tools» tab and then «add meta-tag».
Copy the «content» attribute from the field provided. It should look like this: NpZKSK2ATV3LTYIxsX4t78X0L_AI6bIA5BuhOMy4MCM
Paste the «content» attribute on the Account Settings page on the «Extensions» tab in «Google webmaster tools» field and save changes. If you are implementing Webmaster Tools for a community you should firstly switch to the community's account: in the «Work as user:» field choose this community from the dropdown menu and then press «Switch».
Click «Submit» on the Google Webmaster page. If you receive congratulaations from Google and message «submission successful», you can use the service. If you have pasted the «content» attribute in LiveJournal settings and Google wouldn't sumbit your account, try again in the next several hours.
Additional information on implementing the Webmaster Tools may be found at Google Support.
Information about the visitor, such as browser statistics, browser referer data, and presumed location based on IP address, is gathered by the script and sent directly to Google Analytics.
If you need help locating the Google Analytics Web Property ID or the Google Webmaster Tools meta tag content value, or viewing or interpreting your reports, please see the Google Analytics and Google Webmaster Tools documentation or technical support.