Google Analytics gotcha with java properties files

The unique id given by Google Analytics comes with dashes in it. Refactoring your GA id’s into java properties files will silently kill the variable substitution due to the id’s hyphens. Escape the hyphens to solve the problem.

UA-7341234-1 (will not work)

UA\-7341234\-1 (works)

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *