For example: stackexchange,com/questions/108587/missing-google-analytics-accounts-from-ga-ios-app-keyword1-keyword2
These keywords will be related to the website as a whole. Is it a good practice? Do you think I can get penalized? Thanks.
Some search engines won't like that you're using "keyword stuffing" to try to rank high. For this reason, don't get too carried away with keywords. In fact, try avoiding the same word twice in the URL.
Rather than use dozens of keywords, use a format that is short and that makes sense, and that is friendly with many browsers. I think Microsoft Internet Explorer has a limit of 2048 characters for a URL (or was that apache, I forget). But nevertheless, keep URLs short and sweet so they are easy to remember.
So what stackexchange did was create a major category called questions then in that category, created some ID number as a category, and in that created the question itself. Therefore the URL may be the following:
But using this URL will make users wonder if the site make sense:
If it were my site, I'd break it down into categories all the more:
The above example would suggest that I'm accessing a page about a question regarding missing accounts found under analytics which is found under google.