[#79] fix issue: unset google analytics id leads to publication error
add useful function